Update User Information
Updates details in the user profile, such as first name, last name, birthday, anniversary, or change password.
Note: 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.
- Type: string
x -pch -digest requiredThe signature for the API call
- Type: string
Content - Type requiredSet this header to application/json.
- Type: string
Accept requiredAdvertises which content types the client is able to understand
- Type: string
User - Agent requiredFor details, see User Agent.
- Type: string
Authorization requiredYou 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. Note: When authentication is performed using Advanced Authentication, you must include theid_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens - Type: string
id -token A token that contains identity information about the authenticated user. It is used to verify the user’s identity and is required only when authentication is performed using Advanced Authentication. This token alone does not grant access to Punchh APIs. To access the APIs, you must include the
id_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens
- Type: string
authentication _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: string
client requiredClient key of the business
- Type: User Input (Object)
user
- Type: User (Object)
200 - Type: string
access _token Security token that identifies the user
- Type: string
address _line1 Address information (part 1) of the user
- Type: boolean
age _verified _status Whether or not the user has undergone age verification by Koupon Media. Possible Values: true, false. The value is set to true if the user's age is verified by Koupon Media; otherwise, it is set to false. The response returns this parameter in sign-in, sign-up, and user update APIs if Koupon Media is selected as the age verification adapter for the business in the Punchh platform. Contact your Punchh representative to update this configuration.
- Type: boolean
allow _multiple Whether multiple check-ins are allowed for the user or not
- Type: boolean
allow _push _notifications Whether the user has allowed push notifications or not
- Format: dateenum
anniversary const:YYYY-MM-DDAnniversary 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.
Y Y Y Y - M M - D D
- Type: string
authentication _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: string
avatar _remote _url Avatar URL of the user profile image
- Format: dateenum
birthday const:YYYY-MM-DDBirthday 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.
Y Y Y Y - M M - D D
- Type: string
city City where the user lives
- Type: string
communicable _email Email address where emails should be sent
- Format: date-timeenum
created _at const:YYYY-MM-DDThh:mm:ssZDate/time when the user was created in the system, in ISO 8601 format
Y Y Y Y - M M - D D Thh:mm:ss Z
- Type: string
email requiredEmail address of the user
- Type: string
email _unsubscribe Unsubscribed email address of the user
- Type: boolean
email _verified Whether the email address is verified or not
- Format: dateenum
expiration _date const:YYYY-MM-DDThis value will be returned only if "Account re-evaluation strategy" is set to Guest Inactivity. All other cases return a NULL value.
Y Y Y Y - M M - D D
- Type: boolean
facebook _signup Indicates whether the user signed up using Facebook. This parameter returns true the first time a user signs up using Facebook. For all subsequent logins, it returns a false value.
- Type: string
favourite _locations List of the user's favorite locations
- Type: string
favourite _store _numbers List of store numbers of the user's favorite locations
- Type: integer
fb _uid Unique Facebook ID of the user
- Type: string
first _name First name of the user
- Type: string
gender Gender of the user
- Type: integer
id Unique ID of the user
- Type: string
last _name Last name of the user
- Type: boolean
marketing _email _subscription Whether the user has subscribed to receive marketing emails or not
- Type: boolean
marketing _pn _subscription Whether the user has subscribed to receive marketing push notifications or not
- Type: boolean
migrate _status Whether the user has been migrated or not
mindbody _client _id - Type: boolean
passcode _configured Whether the passcode has been configured or not
- Type: string
phone Phone number of the user
- Type: string
preferred _locale Preferred locale of the user
- Type: Profile Field Answers (Object)
profile _field _answers Answers 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).
- Type: string
referral _code The user's referral code. The user can share this referral code to refer others to join the business loyalty program. When a referred user signs up and enters the shared referral code, this
referral_codemust be passed in theinvite_coderequest parameter when calling the Create New User API. - Type: string
referral _path URL that points to the referred path
- Type: string
secondary _email Secondary email address of the user
- Type: string
state State where the user lives
- Type: boolean
terms _and _conditions Whether the user has agreed to the terms and conditions to use the app as per the configuration
- Type: string
title Title used for the user (e.g., Mr., Mrs., etc.)
- Format: date-timeenum
updated _at const:YYYY-MM-DDThh:mm:ssZDate/time when the user was updated in the system, in ISO 8601 format
Y Y Y Y - M M - D D Thh:mm:ss Z
- Type: integer
user _as _barcode Unique user ID in barcode format
- Type: string
user _as _qrcode Unique user ID in QR code format
- Type: string
user _code - Type: integer
user _id Unique user ID
- Format: date-timeenum
user _joined _at const:YYYY-MM-DDThh:mm:ssZSign-up anniversary date of the user, in YYYY-MM-DDThh:mm:ssZ format
Y Y Y Y - M M - D D Thh:mm:ss Z
- Type: array User Relations (Array Object)[]
user _relations The 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.
- Type: boolean
wants _menu _notifications Whether the user wants to receive menu notifications or not
work _zip _code Zip code of the user's office
- Type: string
zip _code Zip code of the user
401 412 Sending invalid Signature
422 Sending invalid Entity
{
"address_line1": "string",
"anniversary": "YYYY-MM-DD",
"avatar_remote_url": "string",
"birthday": "YYYY-MM-DD",
"city": "string",
"created_at": "YYYY-MM-DDThh:mm:ssZ",
"email": "string",
"email_verified": true,
"fb_uid": 1,
"first_name": "string",
"gender": "string",
"id": 1,
"last_name": "string",
"state": "string",
"updated_at": "YYYY-MM-DDThh:mm:ssZ",
"zip_code": "string",
"allow_multiple": true,
"authentication_token": "string",
"favourite_locations": "string",
"favourite_store_numbers": "string",
"marketing_email_subscription": true,
"marketing_pn_subscription": true,
"passcode_configured": true,
"profile_field_answers": {
"upf0": "string",
"upf1": "string",
"upf2": "string"
},
"referral_code": "string",
"referral_path": "string",
"secondary_email": "string",
"terms_and_conditions": true,
"title": "string",
"user_as_barcode": 1,
"user_as_qrcode": "string",
"user_code": "string",
"user_id": 1,
"user_relations": [
{
"id": 1,
"name": "string",
"relation": "string",
"birthday": "YYYY-MM-DD"
}
],
"wants_menu_notifications": true,
"work_zip_code": null,
"mindbody_client_id": null,
"preferred_locale": "string",
"phone": "string",
"migrate_status": true,
"email_unsubscribe": "string",
"allow_push_notifications": true,
"facebook_signup": true,
"communicable_email": "string",
"access_token": "string",
"expiration_date": "YYYY-MM-DD",
"user_joined_at": "YYYY-MM-DDThh:mm:ssZ",
"age_verified_status": true
}