Applicable Offers (Redemptions 1.0)
Returns all applicable rewards available to the user per the items added to the check
- Type: string
x -pch -digest requiredThe signature for the API call
- Type: string
Content - Type requiredSet this header to application/json.
- Type: string
Accept requiredAdvertises which content types the client is able to understand
- Type: string
User - Agent requiredFor details, see User Agent.
- Type: string
Authorization requiredYou may pass the access_token instead of the authentication_token in Online Ordering endpoints to authorize the request. It must be supplied as
Bearer ACCESS_TOKEN_GOES_HERE. Note: When authentication is performed using Advanced Authentication, you must include theid_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens - Type: string
id -token A token that contains identity information about the authenticated user. It is used to verify the user’s identity and is required only when authentication is performed using Advanced Authentication. This token alone does not grant access to Punchh APIs. To access the APIs, you must include the
id_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens
- Type: string
authentication _token The authentication token of the user. You can retrieve this from the response of a successful sign-in API call or through the SSO process.
- Type: stringenum
channel requiredChannel through which the order was placed. If a channel is defined in the Receipt Qualifier condition under Offers > Qualification Criteria in the Punchh platform, the API returns the list of offers applicable to the transaction after evaluating the value set for the channel. Possible values: online_order, web.
online _order web
- Type: string
client requiredClient key of the business
- Type: array Menu Items (Array Object)[]
This object used in the API request contains one or more menu items added to an order. See How To Send Menu Items to Punchh
- Type: numberFormat: double
receipt _amount requiredOrder amount before taxes, calculated as the sum of all item amounts minus any discounts. This is the amount used to calculate loyalty points/visits. The value of this parameter should match
subtotal_amount. For example, if the order amount is $10, bothreceipt_amountandsubtotal_amountwill be 10. If a $2 discount is applied, both will be 8. - Type: stringFormat: date-time
receipt _datetime requiredTimestamp of the receipt as per ISO 8601, in YYYY-MM-DDThh:mm:ssZ format
- Type: string
store _number Location where the redemption must be redeemed
- Type: numberFormat: double
subtotal _amount requiredOrder amount before taxes (sum of all item amounts minus any discounts). Same as
receipt_amount. For historical reasons, include this parameter along withreceipt_amountin the API request.
- Type: array object[]
200 - Type: integer
discount _amount Discount amount applied to the order for an applicable offer or reward
- Type: array Menu Items (Array Object)[]
menu _items Returns a list of menu items in the API response
- Type: object
reward
401 Sending invalid credentials
412 Sending invalid Signature
422 The given reward can't be applied to the given receipt details
[
{
"menu_items": [
{
"item_name": "string",
"item_qty": "string",
"item_amount": 1,
"menu_item_type": "string",
"menu_item_id": 1,
"menu_family": "string",
"menu_major_group": "string",
"serial_number": "string"
}
],
"discount_amount": 1,
"reward": {
"created_at": "YYYY-MM-DDThh:mm:ssZ",
"end_date_tz": "YYYY-MM-DDThh:mm:ssZ",
"start_date_tz": "YYYY-MM-DDThh:mm:ssZ",
"updated_at": "YYYY-MM-DDThh:mm:ssZ",
"id": 1,
"image": "string",
"status": "string",
"points": 1,
"discount_amount": 1,
"description": "string",
"name": "string",
"redeemable_properties": "string"
}
}
]