Ordering Meta
Retrieves information about the base redeemable
Query Parameters
- Type: stringfilterrequired
Send "base_redeemable" to get metadata about the redeemable
Headers
- Type: stringx
-pch -digest requiredThe signature for the API call
- Type: stringContent
- Type requiredSet this header to application/json.
- Type: stringAuthorizationrequired
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. - Type: stringUser
- Agent requiredFor details, see User Agent.
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
Body
application/json
- Type: stringclientrequired
Client key of the business
- Type: stringauthentication
_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.
Responses
- application/json
- 400
Sending invalid credentials
- 412
Sending invalid Signature
Request Example for get/api/auth/ordering_meta
curl 'https://SERVER_NAME_GOES_HERE.punchh.com/api/auth/ordering_meta?filter=base_redeemable' \
--header 'x-pch-digest: SIGNATURE_GOES_HERE' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--header 'User-Agent: Punchh/OnlineOrder/1.0/Web/BrowserVersion/OS_Type' \
--header 'Accept: application/json' \
--data '{
"client": "CLIENT_GOES_HERE"
}'
{
"base_redeemable_name": "Punch Card = FREE Adult Buffet or Carryout 1-Topping Pizza ",
"base_redeemable_description": "You just earned yourself an awesome reward! Now, you get to choose a FREE Adult Buffet or your favorite Carryout 1-Topping Pizza. Either way, you win.\n*To redeem, use your Punch Card Reward when ordering online or through the MyAcme App.",
"base_redeemable_image": "IMAGE_URL_GOES_HERE",
"base_redeemable_properties": null
}