Inventory Items
Delete Inventory Item
This endpoint deletes an existing inventory item.
DELETE
/v1/inventory_items/:id
Bearer*
Body
idrequired
string
The ID of the inventory item to delete.
Response
id
string
The ID provided in the data tab may be used to identify the return
object
string
The object type
success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
curl --location --request DELETE 'https://api.stateset.com/v1/inventory_items/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "ii_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "ii_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "inventory_item",
"deleted": true
}
curl --location --request DELETE 'https://api.stateset.com/v1/inventory_items/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "ii_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "ii_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "inventory_item",
"deleted": true
}