PATCH /api/v2/accounts/{customerId}/domain
Sets the registered organization domain on a customer. The domain gates domain auto-join and, for seller accounts, ties the org to its storefront. Requires the ADMIN role on the target customer (direct membership, parent admin via the hierarchy, or SuperAdmin).
Request
curl
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
customerId | string | Yes | Path parameter. ID of the customer to update |
customerDomain | string | Yes | Registered organization domain to set (max 255). Lowercase host form, e.g. acme.com |
Response
| Field | Type | Notes |
|---|---|---|
id | integer | Customer ID |
customerDomain | string | null | The domain now registered on the customer |
customerDomainApproved | boolean | Whether the domain was automatically verified (true when an active member’s email matches the new domain) |
Errors
400 VALIDATION_ERROR— malformedcustomerDomain.401 UNAUTHORIZED— caller is not anADMINon the target customer.
Related
Account tasks
All account operations
Update membership
Enable domain auto-join
Account overview
Domain and hierarchy concepts