Basic Migration Look-up
Returns the success response for 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: 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 \
--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",
"email": "test@example.com"
}'
{
"response": "ok"
}