Bin
List Bin Entries
Retrieves a list of resources moved to the bin. The following resources can be moved to the bin:
- campaigns
- vouchers
- products
- SKUs
To use this endpoint, you must have the following permissions:
- vouchers.read
- campaigns.read
- products.read
get/v1/trash-bin
Query parameters
limitinteger
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
order'id' | '-id'
Orders the bin entries according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order.
starting_after_idstring
A cursor for pagination. It retrieves the results starting after a result with the given ID.
Filters for listing bin entries.
Response
Returns the list of all the bin entries matching the query parameters.
Example response
{
"data": [
{
"id": "tbe_0e8213a0a78020ec64",
"created_at": "2024-03-27T19:24:26.142Z",
"deleted_by_user_id": "user_lNTg47u7Ip0Smgcm1k3ShHuUdH4qToNc",
"resource_id": "v_ZUFwkglCEWaEfXqkJYd3uogTEEHEEU8S",
"resource_type": "voucher",
"resource_name": "BLCKFRIDAY_2024",
"resource_parent_id": "camp_snn0eQL0PYWl5b6lY6HQNPfb",
"object": "voucher"
}
]
}