PATCH /api/v2/accounts/{customerId}/domain
Sets the registered domain on an account. The domain gates domain auto-join and, for seller accounts, ties the account to its storefront. Requires the ADMIN role on the target account (direct membership, organization admin via the hierarchy, or SuperAdmin).
Request
curl
Parameters
Response
Errors
400 VALIDATION_ERROR— malformedcustomerDomain.401 UNAUTHORIZED— caller is not anADMINon the target account.
Related
Account tasks
All account operations
Update membership
Enable domain auto-join
Account overview
Domain and hierarchy concepts