/inventory
Update the available inventory used by Purple Dot for exporting pre-orders.
Request:
sku
- The SKU for which inventory level is being updatedavailable_units
- The number of units of the SKU available
The request indicates the total number of units available, not the change since the last call, and is therefore idempotent.
Response:
201 Created
- Indicating the update has been receivedsku
- The SKU for which the inventory level was updatedavailable_units
- The new number of units available
Examples:
curl --request POST \
--url 'https://www.purpledotprice.com/admin/api/v1/inventory' \
--header 'Content-Type: application/json'
--header 'X-Purple-Dot-Access-Token: <access_token>'
--data '{"sku": "foo", "available_units": 1}'
{
"data": {
"sku": "foo",
"available_units": 1
}
}
Last updated