Skip to main content
PUT
/
api
/
v1
/
customers
/
{id}
curl -X PUT https://api.example.com/api/v1/customers/123/ \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "first_name": "John",
    "last_name": "Doe",
    "date_of_birth": "1990-01-15",
    "address": {
      "street_address": "456 Oak Avenue",
      "postal_code": 54321,
      "city": "Los Angeles",
      "state": "California",
      "country": "United States"
    }
  }'
{
  "email": "[email protected]",
  "first_name": "John",
  "last_name": "Doe",
  "slug": "john-doe",
  "date_of_birth": "1990-01-15",
  "address": {
    "street_address": "456 Oak Avenue",
    "postal_code": 54321,
    "city": "Los Angeles",
    "state": "California",
    "country": "United States"
  }
}
Updates a customer’s profile information including personal details and address. Only the customer who owns the account can update their profile.
This endpoint requires authentication and customers can only update their own profiles.

Path Parameters

id
integer
required
The unique identifier of the customer to update

Request Body

email
string
Customer’s email address. Must be unique if changed.
first_name
string
Customer’s first name
last_name
string
Customer’s last name
date_of_birth
string
Customer’s date of birth in ISO 8601 format (YYYY-MM-DD)
address
object
Customer’s shipping/billing address. Provide this object to create or update the address.

Response

email
string
Customer’s email address
first_name
string
Customer’s first name
last_name
string
Customer’s last name
slug
string
Auto-generated slug based on the customer’s full name
date_of_birth
string
Customer’s date of birth
address
object
Customer’s updated address
curl -X PUT https://api.example.com/api/v1/customers/123/ \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "first_name": "John",
    "last_name": "Doe",
    "date_of_birth": "1990-01-15",
    "address": {
      "street_address": "456 Oak Avenue",
      "postal_code": 54321,
      "city": "Los Angeles",
      "state": "California",
      "country": "United States"
    }
  }'
{
  "email": "[email protected]",
  "first_name": "John",
  "last_name": "Doe",
  "slug": "john-doe",
  "date_of_birth": "1990-01-15",
  "address": {
    "street_address": "456 Oak Avenue",
    "postal_code": 54321,
    "city": "Los Angeles",
    "state": "California",
    "country": "United States"
  }
}

Build docs developers (and LLMs) love