Read list of deleted Items

GET /items/deleted

Parameters

All query parameters are optional.

  • cursor: Marks the exlusive starting point of the query, only items after the cursor position will be returned. It is a composite string of the item id and deleted timestamp of the last item in a list. If id is itm_oh0IyIjqvd and deleted is 1701251822771, the cursor will be "itm_oh0IyIjqvd:1701251822771".
  • limit: Maximum number of items to be returned.

Status codes

  • 200 on success

Response properties

  • items: The array of deleted Item objects.

You can see all the Item properties on the GET /items/:id page under "Response properties".

Example response

{
  "items": [
    {
      "id": "itm_oh0IyIjqvd",
      "category": "cat_KaNDv51Gh0",
      "name": "Vodka",
      "vessel": {
        "size": 7,
        "unit": "dl",
        "type": "BO"
      },
      "bundles": [
        {
          "type": "CT",
          "size": 6
        }
      ],
      "price": 750,
      "deleted": 1701267728047
    },
    {
      "id": "itm_xAWy4N9VCg",
      "category": "cat_myTRpvnsNb",
      "name": "Chicken breast",
      "price": 990,
      "price_per": "kg",
      "order_by": "kg",
      "supplier": {
        "id": 1663919969543,
        "reference": "prd-chicken-998"
      },
      "deleted": 1701267728088
    }
  ]
}