question

red avatar image
red asked zgreathouse Deactivated edited

Is there a way to fetch deleted inventory items via web api?

If not is there a way to determine if a item is deleted when fetching all inventory items ?
REST APIInventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

zgreathouse avatar image
zgreathouse Deactivated answered zgreathouse Deactivated edited
When an item is deleted from your inventory it is gone and cannot be recovered. A means of checking if an item has been deleted is to filter your request by the item's id, or in the case you don't have the item's id- I recommend filtering by name. If there are no items in the response you know the item no longer exists therefore it was either never made or it was deleted.

Example Endpoint:
/v3/merchants/{ {mId}}/items?filter=name={itemName}

Below is a link to our docs regarding filtering your requests:
https://docs.clover.com/build/web-api/#filtering_collections
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community