/stores/{storeId}/inventory/stockUp to 500 changes, each naming a listing by listingId, SKU or barcode: a delta adds to or takes from its stock (a sale at the counter is -1), a quantity sets it. Stock never goes below 0 (that row fails with insufficient_stock); at 0 a listing is sold out, and it's back on sale when stock returns. Copies an accepted hold sets aside are already out of the stock. Send an Idempotency-Key, so a retried delta isn't applied twice.
collector.adjustInventoryStock()store:inventory:writeIdempotency-KeyX-Request-IdstoreIdstring (uuid)requiredobject
adjustmentsarray of objectrequired1–500 items
listingIdstring (uuid)skustringYour own stock-keeping code. One listing per SKU in a store.
1–80 characters
barcodestringThe digits under the bars, with the add-on: "75960608936900311", or spaced "759606 08936 9 00311". A UPC with its 2- or 5-digit add-on, an EAN-13 or an ISBN.
6–40 characters
deltaintegerAdd to the stock (positive) or take from it (negative).
-100000–100000
quantityintegerSet the stock to this.
0–100000
200OKA result for each change, in order.
A result for each stock adjustment, in order.
adjustedintegerrequiredunchangedintegerrequiredfailedintegerrequiredresultsarray of objectrequiredindexintegerrequiredstatusenumrequiredadjustedunchangedfailedidstring (uuid) or nullrequiredquantityinteger or nullrequiredThe stock now.
previousQuantityinteger or nullrequiredlistingStatusenum or nullrequiredactivehiddensold_outarchivederrorobject or nullrequiredlisting_not_found, ambiguous_listing, insufficient_stock, invalid_quantity, invalid_barcode…
codestringrequireddetailstringrequiredinvalid_requestinvalid_jsoninvalid_idempotency_key
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
invalid_idempotency_key: The Idempotency-Key isn’t 1–255 visible ASCII characters.
unauthorized: Not signed in (no session or token, or an expired one).
not_found: Nothing at that address.
idempotency_in_progressstore_inactive
idempotency_in_progress: The first request with this key is still running.
store_inactive: The store is closed or suspended, so its books can’t be listed for sale.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
idempotency_key_reused: This key was used for a different request.
rate_limitedtemporarily_blocked
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
internal: Something went wrong on our side (quote the requestId).