Create Loyalty Check-in (OLD)

​

NOTE: This is an old endpoint. Use this endpoint instead.

Creates a loyalty check-in by store number

Headers

  • The signature for the API call

  • Set this header to application/json.

  • Advertises which content types the client is able to understand

  • Set to the language you are using.

  • 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
  • Security token that identifies the user

  • Client key of the business

  • Store number of the location where the user is located

Responses

  • application/json
Request Example for post/api/auth/checkins
curl https://SERVER_NAME_GOES_HERE.punchh.com/api/auth/checkins \
  --request POST \
  --header 'x-pch-digest: SIGNATURE_GOES_HERE' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Accept-Language: en' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --header 'User-Agent: Punchh/OnlineOrder/1.0/Web/BrowserVersion/OS_Type' \
  --data '{
  "client": "CLIENT_GOES_HERE",
  "store_number": "3256",
  "access_token": "ACCESS_TOKEN_GOES_HERE"
}'
{
  "id": 5908374,
  "business_id": 576,
  "card_id": "ID_GOES_HERE",
  "location_id": 306093,
  "created_at": "2015-08-26T09:14:50Z",
  "share_message": null,
  "status": "loyalty",
  "verifications_count": null,
  "for_referring_full_name": null,
  "points_earned": 1,
  "points_spent": 0,
  "first_punchh_at_business": true,
  "location_name": "CafeLab",
  "receipt_picture_url": "IMAGE_URL_GOES_HERE",
  "points_available": 1,
  "first_checkin_message": null,
  "pending_refresh": false,
  "current_membership_level": null,
  "scheduled_expiry_on": null,
  "receipt_checkin_message": null,
  "fan_page_id": null,
  "allows_rating": false,
  "survey_url": null
}