Register Customer

POST/store/:storeCode/auth/:method/register
publishable key

Register 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
storeCoderequiredstring

Store slug in the URL (first argument to every SDK store method).

methodrequiredstring

Auth provider. Example: `emailpass`.

Request Body
emailrequiredstring

Customer email.

passwordrequiredstring

Customer password.

first_namestring

Customer first name.

last_namestring

Customer last name.

company_namestring

Company name.

phonestring

Phone number.

Response

Status

200OK
tokenrequiredstring

JWT used as `Authorization: Bearer` on later requests.