Skip to content

Customer Registration

Register a new customer account with Bagisto.

Arguments

NameTypeRequiredDescription
firstNameString✅ YesCustomer's first name
lastNameString✅ YesCustomer's last name
emailString✅ YesCustomer's email address (must be unique)
passwordString✅ YesPassword for the account (min. 8 characters)
passwordConfirmationString✅ YesPassword confirmation (must match password)

Response

FieldTypeDescription
customerCustomerThe created customer object
accessTokenStringJWT token for API authentication
refreshTokenStringToken to refresh access token
messageStringSuccess or error message
successBooleanRegistration success status

Validation Rules

  • Email must be in valid format and unique
  • Password must be at least 8 characters
  • Password and password confirmation must match
  • First name and last name are required
  • Email cannot already exist in the system

Error Responses

json
{
  "errors": {
    "email": ["The email has already been taken."],
    "password": ["The password must be at least 8 characters."]
  }
}

Released under the MIT License.