Create Loyalty Check-in (OLD)
NOTE: This is an old endpoint. Use this endpoint instead.
Creates a loyalty check-in by store number
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: stringAccept
- Language Set to the language you are using.
- 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: stringaccess
_token requiredSecurity token that identifies the user
- Type: stringclientrequired
Client key of the business
- Type: stringstore
_number requiredStore number of the location where the user is located
Responses
- application/json
- 400
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
}