Skip to navigation

Update Custom Domain Apple Pay

View as Markdown

Assign a capable processor for Apple Pay on a domain, or clear it.

Symmetric server-driven for BOTH processors — there is no upload endpoint. All validation lives in the controller; this handler only reads the body/scope, makes ONE controller call, and maps the typed exceptions to HTTP status codes. A register error is NOT an HTTP error: the controller stores failure_reason and this returns 200 with the “not configured” read-back + the reason.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

external_idstringRequired
account_idstringRequired

Request

This endpoint expects an object.
actionenumRequired

assign a capable processor, or clear (turn Apple Pay off)

Allowed values:
processor_idstring or nullOptional

Required for action=assign: the Apple-Pay-capable processor instance to register. Ignored for action=clear.

Response

Successful Response
idstring
Unique custom domain identifier
domainstring

The custom domain (hostname)

statusenum
Verification lifecycle status
Allowed values:
cname_targetstring
The host the merchant must point a CNAME record at
apple_payobject

Apple Pay configuration state for this domain (configured / assigned processor / failure reason). ‘Not configured’ when no file is stored.

created_atdatetime
When the custom domain was registered
updated_atdatetime
When the custom domain was last updated
last_checked_atdatetime or nullOptional
When the DNS verification was last attempted
verified_atdatetime or nullOptional
When the domain's CNAME was first verified
error_messagestring or nullOptional
Last verification error, if any
dns_auth_cnameobject or nullOptional

Second CNAME record to add for certificate issuance; present once certificate provisioning has started

certificate_provisioningbooleanOptionalDefaults to false

True while the domain is verified and its certificate is being provisioned (derived presentation state)

Errors

422
Unprocessable Entity Error