Skip to main content
POST
/
api
/
storefront
/
customer
/
me
/
addresses
Create Address
curl --request POST \
  --url https://api.example.com/api/storefront/customer/me/addresses \
  --header 'Content-Type: application/json' \
  --header 'X-Site-ID: <x-site-id>' \
  --data '
{
  "address1": "<string>",
  "city": "<string>",
  "country": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "company": "<string>",
  "address2": "<string>",
  "province": "<string>",
  "postal_code": "<string>",
  "phone": "<string>",
  "is_default": false
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "first_name": "<string>",
  "last_name": "<string>",
  "company": "<string>",
  "address1": "<string>",
  "address2": "<string>",
  "city": "<string>",
  "province": "<string>",
  "postal_code": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "is_default": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_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

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

Body

application/json
address1
string
required
Required string length: 1 - 255
city
string
required
Required string length: 1 - 120
country
string
required
Required string length: 2
first_name
string | null
Maximum string length: 100
last_name
string | null
Maximum string length: 100
company
string | null
Maximum string length: 255
address2
string | null
Maximum string length: 255
province
string | null
Maximum string length: 120
postal_code
string | null
Maximum string length: 32
phone
string | null
Maximum string length: 50
is_default
boolean
default:false

Response

Successful Response

id
string<uuid>
required
first_name
string | null
required
last_name
string | null
required
company
string | null
required
address1
string
required
address2
string | null
required
city
string
required
province
string | null
required
postal_code
string | null
required
country
string
required
phone
string | null
required
is_default
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required