v1

latestOpenAPI 3.1.02026-08-06911,228852.2 KB
Order and Pay

Get Discounts

Returns a list of discounts for a specific business location.

get/o/op/1/menu/discounts

Query parameters

businessLocationIdinteger required

The unique identifier for the business location.

Example:45454565682155

Response

Load discounts

namestring

The discount name as configured in merchant account.

codestring

The discount code as configured in merchant account.

discountPercentagenumber

The discount percentage, may be fractional. A discount can be a percentage or an amount, but not both.

discountAmountnumber

The discount amount, may be fractional. A discount can be a percentage or an amount, but not both.

Example response

[
  {
    "name": "Free",
    "code": "FREE",
    "discountPercentage": 100
  },
  {
    "name": "Ten Euros Off",
    "code": "TEN_OFF",
    "discountAmount": 10
  }
]