Skip to main content
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 — malformed customerDomain.
  • 401 UNAUTHORIZED — caller is not an ADMIN on the target account.
See Errors for the full error contract.

Account tasks

All account operations

Update membership

Enable domain auto-join

Account overview

Domain and hierarchy concepts