Delete Inventory
Product Experience Manager (EP PXM) Only
This endpoint works only with products that are created with the EP PXM Products API.
DELETE
Inventory
https://api.moltin.com/v2/inventories/:productId
Deletes the inventory for the specified product. The product inventory is null and is no longer managed by Elastic Path Commerce Cloud.
If you want to keep managing inventory but have none of the product in stock, set the inventory to 0
instead of deleting the inventory.
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
productId | Required | string | The unique identifier of the product. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token to grant access to the API. |
Request Example
curl -X POST https://api.moltin.com/v2/inventories/f5bd4e59-a95f-4bda-bfe6-0f34f47ac94b \
-H "Authorization: Bearer XXXX" \
Response Example
204 No Content