Migration Look-up
Returns the details of a user identified in the migration data provided by a business
Headers
- Type: stringx
-pch -digest requiredThe signature for the API call
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- Type: stringAccept
- Language Preferred language
- Type: stringUser
- Agent requiredUsed to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.
Body
- Type: stringclientrequired
OAuth client ID provided by the business
- Type: stringcard
_number Membership number (any unique identification number) of the user from the old loyalty program used for the look-up. It can be made mandatory or optional from the Punchh platform.
- Type: stringemail
Email address of the user from the old loyalty program used for the look-up. It can be made mandatory or optional from the Punchh platform.
- Type: stringfirst
_name First name of the user from the old loyalty program used for the look-up. It can be made mandatory or optional from the Punchh platform.
- Type: stringlast
_name Last name of the user from the old loyalty program used for the look-up. It can be made mandatory or optional from the Punchh platform.
- Type: stringphone
Phone number of the user from the old loyalty program used for the look-up. It can be made mandatory or optional from the Punchh platform.
Responses
- application/json
- application/json
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/migration_lookup \
--request POST \
--header 'x-pch-digest: {{$$.env.signature}}' \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
--header 'Content-Type: application/json' \
--data '{
"client": "CLIENT_GOES_HERE",
"card_number": "CARD_NUMBER_GOES_HERE"
}'
{
"email": "test@example.com",
"first_name": "FIRST_NAME_GOES_HERE",
"last_name": "LAST_NAME_GOES_HERE",
"phone": 1111111111,
"zip_code": "94040",
"address": "ADDRESS_GOES_HERE",
"birthday": "1999-01-01",
"anniversary": "2013-07-13",
"marketing_pn_subscription": true,
"marketing_email_subscription": false
}