Theme switcher

Update Customer

Update an existing customer's information. This endpoint supports partial updates - you only need to include the fields you want to change.

Partial Updates: Only send the fields you want to update. Omitted fields remain unchanged.

Email Updates: When changing email, the new email must still be unique within the team. Use find-by-email first to check if the new email is available.

Address Updates: Address updates replace the entire address object. You cannot update individual address fields - you must provide the complete address.

To remove an address, send null as the value.

Contact Updates: Contacts cannot be updated via this endpoint. Use dedicated contact management endpoints (if available) or manage contacts through the web interface.

Removing Fields:

  • To remove website or phone: send null or empty string
  • To remove addresses: send null

Timestamps: The updatedAt timestamp is automatically updated to the current time when any field is modified.

Use Cases:

  • Update customer contact information
  • Change customer status (active/inactive)
  • Update billing or shipping addresses
  • Modify customer name or website

Best Practices:

  1. Get current customer data first to avoid overwriting fields unintentionally
  2. Only send fields you want to change
  3. For address updates, provide complete address objects
  4. Check email uniqueness before updating email

Header Parameters

x-client-idstring
x-signaturestring
Authorizationstring

Path Parameters

uuidstring Required

The unique identifier of the customer to update

Body Parameters

customerstring Required

Customer or business name (1-255 characters, non-empty)

Min length
1
Max length
255
emailstring Required

Primary contact email (must be unique within team)

Max length
255
mainPhonestring

Primary phone number (max 50 characters, international format recommended)

Max length
50
Nullable:
True
websitestring

Website URL (max 255 characters, should include protocol)

Max length
255
Nullable:
True
statusstring

Customer status (defaults to "active" if not specified)

Enum values:
activeinactive
billingAddressobject

Address structure for billing and shipping addresses

Nullable:
True

Show child attributes

shippingAddressobject

Address structure for billing and shipping addresses

Nullable:
True

Show child attributes

contactsarray

Contact persons (optional, array of contact objects)

Show child attributes

Response

200
Object
Customer updated successfully

Response Attributes

statusstring
messagestring
dataobject

Show child attributes

400
Object
Bad Request - Validation failed

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

Show child attributes

errorsarray

Present for validation errors with multiple fields

Show child attributes

401
Object
Unauthorized - Authentication failed

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

Show child attributes

errorsarray

Present for validation errors with multiple fields

Show child attributes

404
Object
Not Found - Customer does not exist

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

errorsarray

Present for validation errors with multiple fields

Show child attributes

409
Object
Conflict - Email already exists

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

Show child attributes

errorsarray

Present for validation errors with multiple fields

Show child attributes

429
Object
Too Many Requests - Rate limit exceeded

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

Show child attributes

errorsarray

Present for validation errors with multiple fields

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

PUT

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?