List User Offers

​

Headers

  • The signature for the API call

  • Advertises which content types the client is able to understand

  • Preferred language

  • Used to authorize the request with access_token. It should be supplied as Bearer ACCESS_TOKEN_GOES_HERE.

  • Set this header to application/json.

  • Used to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.

Body

application/json
  • OAuth client ID provided by the business

Responses

  • application/json
Request Example for get/api2/mobile/offers
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/offers \
  --header 'x-pch-digest: {{$$.env.signature}}' \
  --header 'Accept: application/json' \
  --header 'Accept-Language: en' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
  --data '{
  "client": "CLIENT_KEY_GOES_HERE"
}'
{
  "pinned_message": "",
  "rewards": [
    {
      "becomes_available_at": "2016-05-17T05:23:29-07:00",
      "campaign_type": null,
      "created_at": "2016-05-24T00:52:48-07:00",
      "description": "Free with the purchase of an entree.",
      "reward_image_url": "IMAGE_URL_GOES_HERE",
      "name": "Dessert",
      "read_at": null,
      "reward_properties": "order-ahead",
      "store_numbers": [],
      "franchisee_id": 1234,
      "meta_data": "Tag1, Tag2, Tag3, Tag4, Tag5",
      "reward_id": 5051791,
      "expiring_at": "2016-06-01T02:59:59-04:00",
      "redemption_details": null
    }
  ],
  "notifications": [
    {
      "id": 29133403,
      "kind": "system",
      "message": "Something to cheer you up!",
      "read_at": null,
      "created_at": "2016-05-17T08:23:50-04:00"
    }
  ],
  "coupons": [
    {
      "code": "Z954AC7",
      "image_url": "IMAGE_URL_GOES_HERE",
      "name": "All Sign Up Final Coupon",
      "description": null,
      "start_date": null,
      "end_date": "2016-10-04"
    }
  ]
}