Skip to main content
PATCH
Update multiple inventory levels

Authorizations

Authorization
string
header
required

Bearer token authentication

Headers

Idempotency-Key
string

Optional client-generated key (UUID recommended) that makes a resend safe. Inventory changes sent as available_delta and unavailable_delta apply again on a second request, so a client that resends after losing a response should send the same key. The key is bound to the exact request that first used it and to the user, for up to 24 hours. The key must be 1 to 255 printable ASCII characters, or the request answers 422. A blank key is treated as absent and the request runs unguarded. Resending that request unchanged replays the first response with X-Idempotent-Replayed: true and applies nothing. A different request under the key answers 422, and a resend while the first request is still running answers 409.

Body

application/json

Request payload

inventory_levels
(object | null)[] | null

Response

Success

inventory_levels
object[]

Inventory levels that were updated.

errors
object[]

Per-level failures.

meta
object

Response metadata.