Register Customer
POST
/store/:storeCode/auth/:method/registerRegister a customer identity and create the customer record. Returns a JWT for subsequent authenticated requests.
For `emailpass`, pass `email` and `password`. Optional profile fields are stored on the customer. The raw response is `{ token }`; the SDK returns the JWT string and stores it for later calls.
Path Parameters
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
methodrequiredstringAuth provider. Example: `emailpass`.
Request Body
emailrequiredstringCustomer email.
passwordrequiredstringCustomer password.
first_namestringCustomer first name.
last_namestringCustomer last name.
company_namestringCompany name.
phonestringPhone number.
Response
Status
200OK
tokenrequiredstringJWT used as `Authorization: Bearer` on later requests.