Create Loyalty Check-in
Creates a loyalty check-in for an online order against a given receipt. Requires menu items and parameters to be sent.
- 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: stringUser
- Agent requiredFor details, see User Agent.
- 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: stringclientrequired
Client key of the business
- Type: stringexternal
_uid requiredUnique ID generated by your system. We use this to prevent duplicates in case the same transaction gets triggered twice.
- Type: stringpayablerequired
Amount paid after applying discounts and adding any taxes or service charges. For example, if the order amount is $10, the values of the
receipt_amountandsubtotal_amountparameters will be $10. If a $2 discount is applied,subtotal_amountbecomes $8. However, if there are $3 service charges and $1 tax, the value of thepayableparameter becomes $12 (10 – 2 + 3 + 1 = 12). - Type: numberFormat: doublereceipt
_amount requiredOrder amount before taxes, calculated as the sum of all item amounts minus any discounts. This is the amount used to calculate loyalty points/visits. The value of this parameter should match
subtotal_amount. For example, if the order amount is $10, bothreceipt_amountandsubtotal_amountwill be 10. If a $2 discount is applied, both will be 8. - Type: stringreceipt
_datetime requiredTimestamp of the receipt as per ISO 8601, in YYYY-MM-DDThh:mm:ssZ format
- Type: stringstore
_number requiredThe location where the check-in occurred, as configured in the Punchh platform via Store Locations > All Store Locations. This is generally provided by the business.
- Type: numberFormat: doublesubtotal
_amount requiredOrder amount before taxes (sum of all item amounts minus any discounts). Same as
receipt_amount. For historical reasons, include this parameter along withreceipt_amountin the API request. - Type: stringtransaction
_no requiredReceipt number or transaction number on the receipt. In case of redemption associated with the order, the same transaction number must be sent for both check-ins and redemptions.
- 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.
- Type: stringcc
_last4 Last 4 digits of credit card number
- Type: stringenumchannel
Channel through which the check-in was requested. Possible values are:
online_order,pos,web,mobile,dashboard,chatbot,kiosk.values- pos
- web
- online
_order - mobile
- dashboard
- chatbot
- kiosk
- Type: stringemployee
_id ID of the employee who took the order. In case of a system order, it can be a system-generated ID.
- application/json
- 400
Sending missing/incorrect params, bad encoding etc
- 401
Sending invalid credentials
- 412
Sending invalid Signature
- 422
Sending invalid Entity
Invalid JSON body
{
"first_name": "FIRST_NAME_GOES_HERE",
"last_name": "LAST_NAME_GOES_HERE",
"checkins": 2,
"points": 22,
"checkin": {
"created_at": "2015-11-26T10:57:06Z",
"external_uid": "EXTERNAL_UID_GOES_HERE",
"checkin_id": 7415394,
"pending_points": 0,
"pending_refresh": false,
"points_earned": 11,
"bar_code": "BARCODE_GOES_HERE"
}
}