Migration Look-up

​

Returns the details of a user identified in the migration data provided by a business

Headers

  • The signature for the API call

  • Advertises which content types the client is able to understand

  • Preferred language

  • Used to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.

Body

application/json
  • OAuth client ID provided by the business

  • 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.

  • 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.

  • 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.

  • 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.

  • 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
Request Example for post/api2/mobile/migration_lookup
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
}