Developers

Inventory

Markdown

Adjust inventory

Increases or decreases a physical product's quantity by a delta, with a reason shown in the merchant's log.

POST/stores/{storeId}/v1/products/{id}/inventory-adjustments

delta is a non-zero integer up to 100,000, and reason is 3 to 240 characters. No If-Match: the delta is applied to the current quantity, whatever it is.

Path parameters

idstringrequired

Headers

Idempotency-Keystringrequired

Request body

deltaintegerrequired
reasonstringrequired

Response

dataobjectrequired
product_idinteger
quantityinteger
beforeinteger
deltainteger
resource_versioninteger
executionobject
Who executed the request: the app, version, installation and store. Field names here are camelCase.
appIdstring (uuid)
versionIdstring (uuid)
installationIdstring (uuid)
storeIdstring (uuid)
requestIdstring (uuid)
generationinteger
routeEpochinteger
appAuthEpochinteger
grantRevisioninteger
metaobjectrequired
request_idstring (uuid)
The request ID; include it in any support request.

Errors

HTTPCodeMeaning
409INSUFFICIENT_STOCKThe quantity is not enough for the decrease.
422PHYSICAL_MANUAL_STOCK_REQUIREDThe product does not use manual stock.

Shared codes are listed in Errors.

    ↑↓ moveEnter openEsc close