Sample - Stripe API
POST/v1/apple_pay/domains

Create an Apple Pay domain

Creates an Apple Pay domain registration. Supply domain_name to identify the domain you want to register, and use expand when you need additional response fields included.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.
  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 body fields

Apple Pay domain registration details.

domain_namestringrequired
The domain name to register for Apple Pay.
expandarray<string>optional
Specifies which fields in the response should be expanded.

2 status codes
200Returns the created Apple Pay domain object with its identifier, domain name, creation time, live-mode status, and object type `apple_pay_domain`.
createdintegerrequired
Time at which the object was created. Measured in seconds since the Unix epoch.
domain_namestringrequired
idstringrequired
Unique identifier for the object.
livemodebooleanrequired
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:apple_pay_domain
defaultError response.
errorobjectrequired

Error handling

domain_name is required and must identify the Apple Pay domain to register. Values in expand must be field names no longer than 5,000 characters.