Balance Timelines
Gets balance timelines of the user
Headers
- Type: stringx
-pch -digest requiredThe signature for the API call
- Type: stringContent
- Type requiredSet this header to application/json.
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- 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.
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
Request Example for get/api/auth/balance_timelines
curl https://SERVER_NAME_GOES_HERE.punchh.com/api/auth/balance_timelines \
--header 'x-pch-digest: SIGNATURE_GOES_HERE' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--header 'User-Agent: Punchh/OnlineOrder/1.0/Web/BrowserVersion/OS_Type' \
--data '{
"client": "CLIENT_GOES_HERE",
"authentication_token": "AUTHENTICATION_TOKEN_GOES_HERE"
}'
{
"currency": [
{
"actual_earned_currency": 2,
"unredeemed_currency": 0,
"expiration_date": null,
"status": "honored"
},
{
"actual_earned_currency": 1,
"unredeemed_currency": 0,
"expiration_date": "2019-07-17T23:59:59-05:00",
"status": null
},
{
"actual_earned_currency": 10,
"unredeemed_currency": 4,
"expiration_date": "2019-07-17T23:59:59-05:00",
"status": "unredeemed_expired"
}
],
"fuel_discount": [
{
"actual_earned_currency": 0.05,
"unredeemed_currency": 0.05,
"expiration_date": "2019-08-15T23:59:59-05:00",
"status": "unredeemed"
},
{
"actual_earned_currency": 0.5,
"unredeemed_currency": 0.5,
"expiration_date": "2019-08-15T23:59:59-05:00",
"status": "unredeemed"
}
]
}