Create Online Redemption (Redemptions 1.0)
Redeems a card, reward, redeemable, or discount specified in the discount_type parameter against a receipt.
NOTE: When processing a redemption, DO NOT include the query parameter in the API request. Use this parameter only to check for possible redemptions.
- 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
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
User - Agent requiredFor details, see User Agent.
- 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: string
cc _last4 Last 4 digits of credit card number
- Type: stringenum
channel Channel through which the redemption was requested. Possible values are: online_order, pos, web, mobile, dashboard, chatbot, and kiosk.
pos web online _order mobile dashboard chatbot kiosk
- Type: string
client requiredClient key of the business
- Type: stringenum
discount _type requiredAny one of these values: card_completion || reward || redeemable || discount_amount || redemption_code || subscription. For details, see Getting Started With Online Ordering APIs.
reward card _completion redeemable discount _amount redemption _code subscription
- Type: string
email Email address of the user (required to be sent only in case of coupons and promos)
- Type: string
employee _id Employee ID
- Type: string
employee _name Employee name
- Type: string
external _uid Unique ID generated by your system. We use this to prevent duplicates in case the same transaction gets triggered twice.
- 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: boolean
query Include this parameter only if you want to make a possible redemptions call. The parameter value must be true. If you want to process a redemption, do not include this parameter in the request.
- 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: object
200 - Type: string
campaign _name Name of the campaign through which the guest received the offer
- Type: string
category Category returned for redemption requested where values can be:
redeemable,processed,expired,invalid,unassigned. Consider redemption valid only when the category is returned asredeemable. - Type: string
max _applicable _quantity Maximum quantity that can be discounted. Note: This parameter will be returned for offers related to Price Rollback.
- Type: array Menu Items (Array Object)[]
qualified _menu _items 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: object
qualifying _conditions The object lists all qualification criteria (both receipt-level and line-item) for submitted offers that failed while processing the redemption. This object is returned in the response only if the option to return the qualifying conditions for Redemption 1.0 APIs is enabled for the business in the Punchh platform. See the
dataobject under Get Qualification Criteria Response in Platform Functions for descriptions of the parameters inqualifying_conditions. - Type: integer
redemption _amount Total redemption amount that can be applied on the order
- Type: string
redemption _code Redemption code associated with redemption
- Type: integer
redemption _id Unique ID associated with the redemption. Save this in your system for future reference.
- Type: string
status Message that explains if the customer's redemption was successfully completed or not
401 Sending invalid credentials
412 Sending invalid Signature
422
{
"status": "string",
"redemption_amount": 1,
"category": "string",
"qualified_menu_items": [
{
"item_name": "string",
"item_qty": 1,
"item_amount": 1,
"menu_item_type": "string",
"menu_item_id": 1,
"menu_family": "string",
"menu_major_group": "string",
"serial_number": "string"
}
],
"redemption_id": 1,
"redemption_code": "string",
"max_applicable_quantity": "string",
"campaign_name": "string",
"qualifying_conditions": {}
}