Create New User
This API creates a new user account by using phone or email or card (at least one of them).
- Type: string
Authorization requiredThis is a combination of unique API key as well as business key (UUID) as the Authorization header.
For authentication, the location key token must be provided as a parameter.
Using a Loyalty Card
Card numbers are generated in the Punchh platform. By using a card, an end-user can earn loyalty without registering. A business usually distributes physical cards to end-users with a PIN. The cards are scanned by the barcode reader at the POS. Card numbers are usually 16 digits.
- Type: string
address _line1 Address 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 parameter is accepted in the request if Koupon Media is selected as the age verification adapter for the business in the Punchh platform. Contact your Punchh representative to update this Punchh platform configuration setting.
- Format: dateenum
birthday const:YYYY-MM-DDBirth date of the user
Y Y Y Y - M M - D D
- Type: string
card _number Loyalty card number of the user
- Type: string
city City in which the user lives
- Type: string
email Email address of the user
- Type: string
favourite _locations List of favorite locations of the end-user. You can fetch location_name and location_id from the Location Configuration API. The parameter accepts an empty value ("") for the blank favorite locations list.
- Type: string
first _name First name of the user
- Type: string
gender Gender of the user (i.e.,
male,female, ordeclined) - Type: string
last _name Last name of the user
- Type: string
phone requiredPhone number of the user. The phone number parameter accepts various formats, including 1111-111-111, 111-111-1111, or 1111111111.
- Type: boolean
send _compliance _sms Send true in order to trigger a compliance / opt-in SMS for the user. Possible values -
True,true,False,false. Bothterms_and_conditionsandsend_compliance_smsmust be set to "true" for the API to trigger a compliance (opt-in) SMS.
- Type: object
200 - Type: string
address _line1 Address of the user
- Type: boolean
age _verified Is the age of the user verified or not
- 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 Punchh platform configuration setting.
- Format: dateenum
anniversary const:YYYY-MM-DDAnniversary of the user in YYYY-MM-DD format
Y Y Y Y - M M - D D
- Type: string
avatar _remote _url Avatar URL of the user profile image
- Type: Balance
balance Balance Object
- Type: string
birthday Birthday date of the user in YYYY-MM-DD format
- Type: string
city City in which the user lives
- Type: string
created _at Date/time when the user was created in the system in ISO 8601 format
- Type: string
discount _type Discount type. e.g., 'card_completion' || 'reward' || 'discount_amount' || 'redemption_code'
- Type: string
email Email address of the user
- Type: boolean
email _verified Is the email address of the user verified or not
- Type: string
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: string
phone Phone number of the user
- Type: boolean
privacy _policy Has the user agreed to the privacy policy or not
- Type: Rewards Object
rewards - Type: string
selected _card _number - Type: string
selected _discount _amount - Type: integer
selected _reward _id Integer numbers.
- Type: string
state State in which the user lives
- Type: string
updated _at Date/time when the user was updated in the system in ISO 8601 format
- Type: string
user _digest - Type: string
zip _code Zip code of the user
{
"address_line1": "string",
"age_verified": true,
"anniversary": "YYYY-MM-DD",
"avatar_remote_url": "string",
"balance": {
"balance": [
{
"banked_rewards": "string",
"expired_membership_level": null,
"initial_visits": 1,
"membership_level": null,
"membership_level_id": null,
"net_balance": 1,
"net_debits": 1,
"pending_points": 1,
"points_balance": 1,
"signup_anniversary_day": "string",
"total_credits": 1,
"total_debits": "string",
"total_point_credits": 1,
"total_redeemable_visits": 1,
"total_visits": 1,
"unredeemed_cards": 1
}
]
},
"birthday": "string",
"city": "string",
"created_at": "string",
"discount_type": "string",
"email": "string",
"email_verified": true,
"fb_uid": "string",
"first_name": "string",
"gender": "string",
"id": 1,
"last_name": "string",
"phone": "string",
"privacy_policy": true,
"rewards": {
"rewards": [
{
"created_at": "string",
"description": "string",
"discount_amount": 1,
"end_date_tz": "string",
"id": 1,
"image": "string",
"name": "string",
"points": 1,
"redeemable_properties": "string",
"start_date_tz": "string",
"status": "string",
"updated_at": "string",
"type": "string",
"meta_data": "string"
}
]
},
"selected_card_number": "string",
"selected_discount_amount": "string",
"selected_reward_id": 1,
"state": "string",
"updated_at": "string",
"user_digest": "string",
"zip_code": "string",
"age_verified_status": true
}