Responds with a JSON object: {“message”: “Inventory batch deleted”} on success, or {“error”: “…”} with an appropriate HTTP status on failure.

Errors

Code Description
401 The provided token is invalid
404 Record not found

Examples

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.

Params

Param name Description
id
required

Inventory batch ID

Validations:

  • Must be a Integer

Headers

Header name Description
Authorization
required
Bearer token