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 of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Unique request identifier

  • Punchh customer token, on a brand integrated with Punchh. Authorization carries 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

required
application/json
  • Promo code as configured in Punchh.

Responses

  • The code was applied. Re-fetch loyalty promotions to show it.

  • The code was rejected.

Request Example for post/dlc-service/loyalty-coupons
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"
}'
No Body