Create Custom Domain
Register a new custom domain for the account.
The domain starts in PENDING status; a background job verifies the merchant’s CNAME and flips it to VERIFIED once DNS resolves.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
account_id
Headers
Idempotency-Key
A unique key for this request. A retry with the same key returns the first response instead of running again, for 24 hours. Keys are per caller.
Request
This endpoint expects an object.
domain
The custom domain (hostname) to serve PaymentKit on
Response
Successful Response
id
Unique custom domain identifier
domain
The custom domain (hostname)
status
Verification lifecycle status
Allowed values:
cname_target
The host the merchant must point a CNAME record at
apple_pay
Apple Pay configuration state for this domain (configured / assigned processor / failure reason). ‘Not configured’ when no file is stored.
created_at
When the custom domain was registered
updated_at
When the custom domain was last updated
last_checked_at
When the DNS verification was last attempted
verified_at
When the domain's CNAME was first verified
error_message
Last verification error, if any
dns_auth_cname
Second CNAME record to add for certificate issuance; present once certificate provisioning has started
certificate_provisioning
True while the domain is verified and its certificate is being provisioned (derived presentation state)
Errors
422
Unprocessable Entity Error