get https://app.ecwid.com/api/v3///deleted
Get a list of products, orders, customers and coupons that have been deleted from a store
There are 5 endpoints: deleted products, orders, customers, discount coupons, and product reviews.
GET https://app.ecwid.com/api/v3/{storeId}/products/deleted?from_date={from_date}&to_date={to_date}&offset={offset}&limit={limit}
GET https://app.ecwid.com/api/v3/{storeId}/orders/deleted?from_date={from_date}&to_date={to_date}&offset={offset}&limit={limit}
GET https://app.ecwid.com/api/v3/{storeId}/customers/deleted?from_date={from_date}&to_date={to_date}&offset={offset}&limit={limit}
GET https://app.ecwid.com/api/v3/{storeId}/discount_coupons/deleted?from_date={from_date}&to_date={to_date}&offset={offset}&limit={limit}
GET https://app.ecwid.com/api/v3/{storeId}/reviews/deleted?from_date={from_date}&to_date={to_date}&offset={offset}&limit={limit}
Please, note that we keep the data about deleted items for 6 months only.
Access scopes
Requires the following access scope: read_store_profile
Response
Each endpoint returns the information about the batch, the removed items IDs, and the deletion dates in JSON object format.
Field | Type | Description |
---|---|---|
total | number | The total number of found items (might be more than the number of returned items) |
count | number | The total number of items returned in this batch |
offset | number | Offset from the beginning of the returned items list (for paging) |
limit | number | Maximum number of returned items. Maximum allowed value: 100 . Default value: 10 |
items | Array{removedItem} | The removed items list with IDs and dates |
removedItem
Field | Type | Description |
---|---|---|
id | number | Item ID. Depending on the request, that is products ID, customer ID, order number or coupon ID. |
date | string | Item deletion date |