POST DLC Service Loyalty Coupons
Unlocks an in-app Punchh promo code for the signed-in customer. Call this when a direct-at-pos code was not accepted on the cart.
The body is { "code": "THECODE" }. A direct-at-pos code is priced on the cart instead, as { "redemption_code": "THECODE" } with no type_id.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringX
- Request - I D requiredUnique request identifier
- Type: stringDlc
- Authorization Punchh customer token, on a brand integrated with Punchh.
Authorizationcarries the PAR Ordering customer token and does not authenticate you to Punchh. Omitting this header falls back to the Punchh token stored for that customer at sign-in, which may be stale.Declared optional because it is conditional, not because it is safe to leave out. It applies only to a Punchh brand, so marking it required would be wrong for every brand without the integration. Where it is needed, see Use Rewards, Offers, Customer Credits, and Promo Codes.
Body
- Type: stringcoderequired
Promo code as configured in Punchh.
Responses
- 200
The code was applied. Re-fetch loyalty promotions to show it.
- 400
The code was rejected.
curl https://api-public-demo.menu.app/api/dlc-service/loyalty-coupons \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"code": "THECODE"
}'
