v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

List all products purchased by a guest

Provide unique identifier of the guest as guest_id and this API will retrieve the products purchased by the guest.

get/v1/guests/{guest_id}/products

Path parameters

guest_idstring required

Unique identifier of the guest.

Response

200

Example response

{
  "products": [
    {
      "id": "c7436d09-799c-49ae-bcd9-b906c2c89fad",
      "name": "Aha Mask",
      "quantity": 1,
      "sale_by": "Abhishek owner",
      "sale_date": "2018-03-28T21:31:35",
      "price": 50,
      "price_paid": 50,
      "payment_type": "CC Online(Visa)",
      "invoice": {
        "id": "4152fd91-8ab1-471f-ae69-a7ff3b37460f",
        "status": "CLOSED",
        "invoice_number": "69153",
        "receipt_number": "R226",
        "invoice_item_id": "5554f247-28a9-49b3-90de-19953f262ad0"
      },
      "center": {
        "id": "08b5ff61-9cd4-49f8-9ed7-978b52161e89",
        "name": "Zenoti Mobile"
      }
    }
  ],
  "page_info": {
    "total": 20,
    "page": 1,
    "size": 2
  }
}