ESTAGE Support
IdeasMy tickets

Set on-hand counts by SKU

Permission inventory:writeRate limit heavyIdempotent with Idempotency-Key

Sets 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.

POSThttps://api.estage.com/v1/inventory/import

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Body

application/json
rowsarray of objectrequired≤ 5000 items
Show 2 fields
skustringrequired≤ 255 chars
quantityintegerrequired≥ 0

The new on-hand count.

dry_runbooleandefault false

Headers

Idempotency-Keystring≤ 255 chars

Any 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 } }.