Delete Inventory

Permanently deletes the inventory record for a specific product at a specific location.

Warning: This action cannot be undone. Use this endpoint when:

  • A product is discontinued at a location
  • Correcting data by removing incorrect inventory records
  • Cleaning up test data

After deletion, the inventory for this product-location combination will need to be recreated through new inventory events.

SecurityOAuth2-Production or OAuth2-Demo
Request
path Parameters
product-id
required
string

The unique identifier of the product.

location-id
required
string

The unique identifier of the location.

header Parameters
x-api-key
required
string

Your Carriyo API key for authentication.

tenant-id
required
string

Your unique tenant identifier in Carriyo.

Content-Type
string
Default: application/json
Responses
200

Successfully deleted the inventory record.

404

Inventory not found for the specified product and location.

delete/inventory/product-id/{product-id}/location-id/{location-id}
Request samples
Response samples
application/json
{
  • "error": "string",
  • "code": "string"
}