Skip to main content
POST
/
vendor
/
sellers
/
{id}
/
address
curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/address' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{"address_1": "123 Main St", "city": "New York", "country_code": "us", "postal_code": "10001"}'
{
  "seller": {
    "id": "sel_01HXYZ",
    "name": "Acme Store",
    "address": {
      "address_1": "123 Main St",
      "city": "New York",
      "country_code": "us",
      "postal_code": "10001"
    }
  }
}
Upserts the seller’s address and returns the full seller object.

Path parameters

id
string
required
The seller’s ID.

Body parameters

name
string
Address label.
company
string
Company name.
first_name
string
Contact first name.
last_name
string
Contact last name.
address_1
string
Street address.
address_2
string
Apartment, suite, etc.
city
string
City.
country_code
string
Two-letter country code.
province
string
Province or state.
postal_code
string
Postal code.
phone
string
Phone number.
metadata
object
Custom key-value pairs.
additional_data
object
Custom data passed to workflow hooks.

Query parameters

fields
string
Comma-separated fields to include in the response.

Response

seller
object
curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/address' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{"address_1": "123 Main St", "city": "New York", "country_code": "us", "postal_code": "10001"}'
{
  "seller": {
    "id": "sel_01HXYZ",
    "name": "Acme Store",
    "address": {
      "address_1": "123 Main St",
      "city": "New York",
      "country_code": "us",
      "postal_code": "10001"
    }
  }
}