User Input (Object)
- addressType: string
_line1 Address information (part 1) of the user
- ageType: boolean
_verified Whether age is verified or not
- ageType: boolean
_verified _status Whether or not the user has undergone age verification. Possible Values: true, false. The value is set to true if the user's age is verified; otherwise, it is set to false. The response returns this parameter in sign-in, sign-up, and user update APIs if the age verification is enabled for the business in the Punchh platform. Contact your Punchh representative to update this Punchh platform configuration setting.
- allowType: boolean
_multiple Whether multiple check-ins are allowed for the user or not
- allowType: boolean
_push _notifications Whether the user has allowed push notifications or not
- anniversaryType: string
Anniversary of the user, in YYYY-MM-DD format. This field gets updated in the database only if the user did not set it at time of sign-up.
- apnType: string
_token Apple Push Notification (APN) token
- avatarType: string
_remote _url Avatar URL of the user profile image
- birthdayenumconst:YYYY-MM-DD
Birthday of the user, in YYYY-MM-DD format. This field gets updated in the database only if the user did not set it initially during sign-up. Due to fraud protections, guests are permitted to update their birthdays only once. Subsequent attempts to modify the birthday parameter using the API will fail. In such a case, the API returns a 200 response, but the birthday is not updated.
- cityType: string
City where the user lives
- emailType: string
Email address of the user
- externalType: string
_source External source name (third-party IDP). Possible values for external_source are salesforce, customer_id, mparticle, azure, aws_cognito, auth0, and ext_idp. If you are using a different one, please reach out to your implementation manager to add a new value. The values are case-sensitive. This is a required parameter if you want to update the access token for an external IDP user.
- externalType: string
_source _id ID of the customer in the mentioned external source name (external_source), a unique identifier generated by the third-party IDP (GUID format). This is a required parameter if you want to update the access token for an external IDP user.
- favouriteType: string
_locations Favorite locations of the user (comma-separated for multiple locations)
- firstType: string
_name First name of the user
- gcmType: string
_token Google Cloud Messaging (GCM) or FCM token
- genderType: string
Gender of the user. Valid values are "male", "female", or "declined".
- lastType: string
_name Last name of the user
- marketingType: boolean
_email _subscription Whether the user has subscribed to receive marketing emails or not. This is mandatory if Explicit Opt-in is enabled in the Punchh platform.
- marketingType: boolean
_pn _subscription Whether the user has subscribed to receive marketing push notifications or not
- phoneType: string
Phone number of the user
- preferredType: string
_locale Preferred locale of the user
- privacyType: boolean
_policy - profileType:
_field _answers Properties: 3Answers given by the user while filling in the user profile. The user submits answers to profile field questions that are configured in the Punchh platform. A total of 25 answers can be submitted. The keys range from 'upf0' to 'upf24'. If questions have multiple answers, the values should be separated by a | character (pipe).
- secondaryType: string
_email Secondary email address of the user
- stateType: string
State where the user lives
- termsType: boolean
_and _conditions Whether the user has agreed to the terms and conditions to use the app as per the configuration
- titleType: string
Title of the user. Possible values are Mr., Mrs., Miss, Ms., and Dr.
- unsubscribedType: boolean
Whether the user has unsubscribed from marketing email notifications
- userType:
_relations Properties: 4The object contains information about the relationship details of a user, for example, spouse and kid information. If the user account does not have relationship details, the API returns an empty user_relations object in the response.
- workType: string
_zip _code Zip code of the user's office
- zipType: string
_code Zip code where the user lives
{
"address_line1": "ADDRESS_GOES_HERE",
"anniversary": null,
"avatar_remote_url": "URL_GOES_HERE",
"birthday": "1993-01-01",
"city": "Columbus",
"email": "test@example.com",
"first_name": "FIRST_NAME_GOES_HERE",
"age_verified": true,
"privacy_policy": true,
"gender": "female",
"last_name": "LAST_NAME_GOES_HERE",
"state": "Ohio",
"zip_code": "43016",
"allow_multiple": true,
"favourite_locations": "",
"marketing_email_subscription": true,
"marketing_pn_subscription": true,
"profile_field_answers": {
"upf0": "Coffee|Tea|Lemonade",
"upf1": "Pasta|Pizza|Hamburger",
"upf2": "Movies|Music|Sports"
},
"secondary_email": "test@example.com",
"terms_and_conditions": true,
"title": "",
"user_relations": [
{
"relation": "spouse",
"name": "SPOUSE_NAME_GOES_HERE",
"birthday": "1999-01-01"
}
],
"work_zip_code": "",
"preferred_locale": "",
"phone": "1111111111",
"unsubscribed": true,
"allow_push_notifications": true,
"apn_token": "APN_TOKEN_GOES_HERE",
"gcm_token": "GCM_TOKEN_GOES_HERE",
"external_source": "customer_id",
"external_source_id": "11111111111111111111"
}
