This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Subtracts a set number of items from inventory.
You can only call this method when authenticated as a Wix app or Wix user identity.
curl -X POST https://www.wixapis.com/stores/v2/inventoryItems/decrement \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-binary '
{
"decrementData": [
{
"productId": "f007074f-d7a8-a68b-e6c1-7d7c3de021ff",
"variantId": "00000000-0000-0001-0005-9ccb19c4e6f0",
"decrementBy": 2
}
]
}'
{}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.