Tamio

Bulk update stock

POST https://api.tamio.com/v2/products/bulk/update-stock

Updates stock quantities for up to 10,000 products/variants at once.

Body Parameters

products array of object*
JSON
{ "products": [ { "id": "111e4567-e89b-12d3-a456-426614174000", "variant_id": "222e4567-e89b-12d3-a456-426614174000", "stock": 50, "sku": "SKU-12345" } ] }
id string*

Product UUID

variant_id string

Variant UUID if updating a specific variation

stock integer*

New stock quantity

sku string

Product or variant SKU

Responses

200 Operation successful

Operation successful

status integer
400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/products/bulk/update-stock
1const response = await fetch("https://api.tamio.com/v2/products/bulk/update-stock", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 "products": [
9 {
10 "id": "111e4567-e89b-12d3-a456-426614174000",
11 "variant_id": "222e4567-e89b-12d3-a456-426614174000",
12 "stock": 50,
13 "sku": "SKU-12345"
14 }
15 ]
16 })
17});
18const data = await response.json();
Responses
{
  "status": 200
}