v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

List all coupons of a guest

Provide unique identifier of the guest as guest_id and this api will retrieve the coupon history of the respective guest. you can also use pagination by passing page and size query parameters if guest has huge number of records. By default page is set to 1 and size is set to 10. Size cannot be more than 100 which means maximum records per page cannot be more than 100.

get/v1/guests/{guest_id}/coupons

Path parameters

guest_idstring required

Unique identifier of the guest.

Response

200

Example response

{
  "coupons": [
    {
      "id": "6b85de34-572c-426c-acfe-b9ef9cfca7ac",
      "number": "6805",
      "invoice_id": "9f777152-e092-4b4e-bb34-4e2cf41be69d",
      "invoice_number": "3840",
      "reciept_number": "R1486",
      "description": "Cashback 500",
      "issue_date": "2018-06-12T00:00:00",
      "issued_center": "Pike Street",
      "redemption": "Redeemed",
      "redeemed_center": "Pike Street",
      "redeemable_by_all": "No",
      "status": "OPEN"
    }
  ],
  "page_info": {
    "total": 4,
    "page": 1,
    "size": 10
  }
}