Skip to main content
POST
/
api
/
storefront
/
customer
/
register
Register
curl --request POST \
  --url https://api.example.com/api/storefront/customer/register \
  --header 'Content-Type: application/json' \
  --header 'X-Site-ID: <x-site-id>' \
  --data '
{
  "email": "jsmith@example.com",
  "password": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "phone": "<string>",
  "marketing_opt_in": false
}
'
{
  "customer": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "first_name": "<string>",
    "last_name": "<string>",
    "phone": "<string>",
    "marketing_opt_in": true,
    "email_verified_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z"
  },
  "access_token": "<string>",
  "expires_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.stella-commerce.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-Site-ID
string
required
X-Stella-Token
string | null
Idempotency-Key
string | null

Body

application/json
email
string<email>
required
password
string
required
Required string length: 8 - 256
first_name
string | null
Maximum string length: 100
last_name
string | null
Maximum string length: 100
phone
string | null
Maximum string length: 50
marketing_opt_in
boolean
default:false

Response

Successful Response

Returned by /register and /login — customer + token together.

customer
CustomerSelfResponse · object
required

The customer's own view of their account.

access_token
string
required
expires_at
string<date-time>
required