Register Domain

POST/v1/payment-methods/domains

Header Parameters

X-Idempotency-Keystringrequired

Required: requests without it are rejected with 400 INVALID_PARAMETERS. Stored for audit only and not enforced today: every call creates a new registration attempt and a new call to the wallet provider, even when it repeats a previous key.

Body application/json

account_idstringrequired

The unique identifier of the account. Find this in the WHITELABEL dashboard (MAX 64; MIN 36)

connection_idstringrequired

The unique identifier of the wallet connection the domains are registered on (UUID). With WHITELABEL’s Apple Pay certificate, a connection holds at most 99 domains.

payment_method_type"APPLE_PAY" | "GOOGLE_PAY"required

Single payment method to register for all domains.

domainsobject[]required

Domains to register, 1 to 50 per request. Each subdomain is a separate domain.

Show domains properties
urlstringrequired

Fully qualified domain name, without scheme or path (for example, checkout.example.com).

Response

Accepted

account_idstring
payment_method_typestring
domainsobject[]
Show domains properties
idstring
domainstring
status"CREATED" | "REGISTERED" | "ERROR" | "INACTIVE"

CREATED: registration with the wallet provider is in progress. REGISTERED: the domain is verified and can show the wallet button. ERROR: the provider rejected the registration (for example, the association file was not reachable); register the domain again after fixing it. INACTIVE: the domain was deleted.

created_atstring
updated_atstring