Register domains for Apple Pay
View as MarkdownRegister web domains for Apple Pay on the store so Unified Checkout can offer Apple Pay on them.
Full description
Register web domains for Apple Pay on the store so Unified Checkout can offer Apple Pay on them. You can register up to 99 domains per call. To move to a new domain, register the new domain and unregister the old one in the same call. Before Apple validates a domain, host the domain association file at https://{domain}/.well-known/apple-developer-merchantid-domain-association. Registration fails with 400 when Apple can't fetch that file from a domain.
Authorization
PAT commerce.store.apple-pay:writePersonal Access Token (PAT). Include as Authorization: Bearer $GODADDY_PAT. Required scopes: commerce.store.apple-pay:write, commerce.store:read.
In: header
Scope: commerce.store.apple-pay:write
Path Parameters
Unique identifier for the store
uuidRequest Body
application/json
Domains to register for Apple Pay on the store, and the merchant details Apple shows to shoppers.
Send at least one of registerDomains, unregisterDomains, or merchantName.
To move to a new domain, send the new domain in registerDomains and the old one in unregisterDomains.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/apple-pay/registration" \ -H "Content-Type: application/json" \ -d '{ "registerDomains": [ "shop.example.com" ], "merchantName": "Example Store", "merchantUrl": "https://shop.example.com" }'{ "domains": [ "shop.example.com" ], "merchantName": "Example Store", "merchantUrl": "https://shop.example.com"}Last updated on
How is this guide?