Delete Stock for Product
DELETEhttps://euwest.api.elasticpath.com/v2/inventories/:product_uuid
Deletes the inventory for the specified product. The product inventory is null and is no longer managed by Commerce. 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.
Request
Path Parameters
product_uuid stringrequired
The unique identifier of the product.
Responses
- 204
- 500
Success. Removes the stock information about the product
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
errors ErrorBody[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred."
}
]
}
{
"errors": [
{
"title": "Internal Server Error",
"status": 500
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X DELETE 'https://euwest.api.elasticpath.com/v2/inventories/:product_uuid' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear