api/v1/customer/auth/register

You can register a customer using the following URL

POST

/api/v1/customer/auth/register

Request Parameters

ParameterValue / TypeRequired
usernameSTRINGtrue
fb_uuidSTRINGfalse
first_nameSTRINGtrue
last_nameSTRINGtrue
emailSTRINGtrue
address_line_1STRINGtrue
citySTRINGtrue
stateSTRINGtrue
zipINTEGERtrue
phoneSTRING/NUMERICtrue
date_of_birthSTRINGtrue
customer_sexSTRINGtrue
avatar_urlSTRINGfalse
referral_codeSTRINGfalse
signup_location_idSTRING/NUMERICfalse
source_campaign_codeSTRINGfalse

Sample Responses

{
  "status": true,
  "item": {
    "id": "ORwdvb48EQZeJXLBq7nQ",
    "scan_id": null,
    "username": "jbbb",
    "fb_uuid": null,
    "first_name": "Steve",
    "last_name": "Phillips",
    "date_of_birth": "1989-05-01",
    "address_line_1": "Test",
    "address_line_2": null,
    "city": "Oxford",
    "state": "New York",
    "zip": "12754",
    "phone": "123 456 789",
    "customer_description": "",
    "can_text": 0,
    "can_email": 0,
    "can_mail": 0,
    "can_call": 0,
    "last_location_id": null,
    "signup_location_id": null,
    "last_location_visit": null,
    "lifetime_sales": "0.00",
    "customer_added": null,
    "customer_added_source": "",
    "customer_web_source": "",
    "has_used_website": 0,
    "has_used_mobile": 0,
    "customer_sex": "Male",
    "license_number": null,
    "email": "[email protected]",
    "phone_number": "",
    "phone_number_confirmed": 0,
    "two_factor_enabled": 0,
    "lockout_end_date": null,
    "lockout_enabled": 0,
    "created_at": "2017-12-08 19:36:34",
    "updated_at": "2017-12-08 19:36:34",
    "status": 1
  },
  "token":"API TOKEN"
}
{
  "status": false,
  "errorCode": "VALIDATION_EXCEPTION",
  "messages": {
    "email": [
      "The email has already been taken."
    ]
  }
}
{
  "status": false,
  "message": "Failed to register as the referral code used was invalid"
}