Save Selected Deals

​

Adds the selected deal to the user's account

Headers

  • The signature for the API call

  • You 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.

  • Set this header to application/json.

  • For details, see User Agent.

  • Advertises which content types the client is able to understand

Body

application/json
  • Client key of the business

  • Redeemable UUID of the deal to be saved by the user

  • 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.

Responses

  • application/json
  • Sending invalid Signature

  • Sending invalid Entity

Request Example for post/api/auth/deals
curl https://SERVER_NAME_GOES_HERE.punchh.com/api/auth/deals \
  --request POST \
  --header 'x-pch-digest: SIGNATURE_GOES_HERE' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: Punchh/OnlineOrder/1.0/Web/BrowserVersion/OS_Type' \
  --header 'Accept: application/json' \
  --data '{
  "client": "CLIENT_GOES_HERE",
  "authentication_token": "AUTHENTICATION_TOKEN_GOES_HERE",
  "redeemable_uuid": "REDEEMABLE_UUID_GOES_HERE"
}'
{}