Set on-hand counts by SKU
Permission
inventory:writeRate limit heavyIdempotent with Idempotency-KeySets absolute on-hand counts by SKU (1–5000 rows; a SKU listed twice: the last row wins). Rows whose SKU matches no variant, or more than one, are reported in skipped; the other rows are still written. If any row would drop below the quantity already reserved, nothing is written and the call fails with 422. dry_run: true reports applied/skipped without writing. Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Body
application/jsonrowsarray of objectrequired≤ 5000 itemsShow 2 fields
skustringrequired≤ 255 charsquantityintegerrequired≥ 0The new on-hand count.
dry_runbooleandefault falseHeaders
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
RequestcURL
curl --request POST \ --url 'https://api.estage.com/v1/inventory/import' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "rows": [ { "sku": "TEE-L", "quantity": 12 }, { "sku": "TEE-M", "quantity": 20 } ], "dry_run": true }'
OK
{
"data": {
"applied": 1,
"skipped": [
{
"sku": "TEE-M",
"reason": "No variant with this SKU in the project."
}
]
}
}Example. Errors are
{ error: { code, message, details } }.