Balance Timelines

​

Gets balance timelines of the user

Headers

  • The signature for the API call

  • Set this header to application/json.

  • Advertises which content types the client is able to understand

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

  • For details, see User Agent.

Body

application/json
  • Client key of the business

  • 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
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"
    }
  ]
}