Responds with a JSON object: {“message”: “Inventory batch deleted”} on success, or {“error”: “…”} with an appropriate HTTP status on failure.
| Code | Description |
|---|---|
| 401 | The provided token is invalid |
| 404 | Record not found |
Response (200):
{ "message": "Inventory batch deleted" }
Response (404):
{ "error": "Record not found" }
// invalid id
DELETE /api/shopify/inventory_batches/100
404
{
"error": "Record not found"
}
// valid token
DELETE /api/shopify/inventory_batches/4034
200
{
"message": "Inventory batch deleted"
}
// invalid token DELETE /api/shopify/inventory_batches/4035 401 HTTP Token: Access denied.
| Param name | Description |
|---|---|
|
id
required |
Inventory batch ID Validations:
|
| Header name | Description |
|---|---|
|
Authorization required |
Bearer token |