List Bin Entries
curl --request GET \
--url https://{cluster}.voucherify.io/v1/trash-bin \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "tbe_0eb6515f758ae37126",
"created_at": "2024-05-07T09:15:13.218Z",
"deleted_by_user_id": "user_JjB45t4Rpl4t1n0oMRlj6trzXKsh7FGX7",
"resource_id": "v_JPfnb5ChY1HdNnaMkA0ikra4gIg0dja6",
"resource_type": "voucher",
"resource_name": "Trash-Discount-123",
"resource_parent_id": "camp_ITQtKkrPOxL1a55uSU7tqbCL",
"object": "voucher"
},
{
"id": "tbe_0eb651ca7b8ae37184",
"created_at": "2024-05-07T09:17:02.827Z",
"deleted_by_user_id": "user_JjB45t4Rpl4t1n0oMRlj6trzXKsh7FGX7",
"resource_id": "sku_0eb651c09e0ae37178",
"resource_type": "sku",
"resource_name": "Trash container icy blue",
"resource_parent_id": "prod_0eb651c04395147085",
"object": "sku"
}
],
"total": 2,
"has_more": true,
"more_starting_after": "tbe_0eb651ca7b8ae37184"
}{
"code": 403,
"message": "Missing permission",
"details": "User does not have a required permission to perform this operation.",
"key": "missing_required_permission"
}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.readcampaigns.readproducts.read
GET
/
v1
/
trash-bin
List Bin Entries
curl --request GET \
--url https://{cluster}.voucherify.io/v1/trash-bin \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "tbe_0eb6515f758ae37126",
"created_at": "2024-05-07T09:15:13.218Z",
"deleted_by_user_id": "user_JjB45t4Rpl4t1n0oMRlj6trzXKsh7FGX7",
"resource_id": "v_JPfnb5ChY1HdNnaMkA0ikra4gIg0dja6",
"resource_type": "voucher",
"resource_name": "Trash-Discount-123",
"resource_parent_id": "camp_ITQtKkrPOxL1a55uSU7tqbCL",
"object": "voucher"
},
{
"id": "tbe_0eb651ca7b8ae37184",
"created_at": "2024-05-07T09:17:02.827Z",
"deleted_by_user_id": "user_JjB45t4Rpl4t1n0oMRlj6trzXKsh7FGX7",
"resource_id": "sku_0eb651c09e0ae37178",
"resource_type": "sku",
"resource_name": "Trash container icy blue",
"resource_parent_id": "prod_0eb651c04395147085",
"object": "sku"
}
],
"total": 2,
"has_more": true,
"more_starting_after": "tbe_0eb651ca7b8ae37184"
}{
"code": 403,
"message": "Missing permission",
"details": "User does not have a required permission to perform this operation.",
"key": "missing_required_permission"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Query Parameters
Response
Returns the list of all the bin entries matching the query parameters.
Retrieves a list of the resources moved the bin.
As query results are always limited (by the limit parameter), the has_more flag indicates if there are more records for given filter parameters. This lets you know if you can run another request with a starting_after_id query or a different limit to get more records returned in the results.

