Register domains for Apple Pay
POST
/accounts/{accountID}/apple-pay/domains
Add domains to be registered with Apple Pay.
Any domains that will be used to accept payments must first be verified with Apple.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/apple-pay.write scope.
curl -X POST "https://api.moov.io/accounts/{accountID}/apple-pay/domains" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00"mc, _ := moov.NewClient()
var accountID string
domains := []string{"checkout.classbooker.dev"}
mc.CreateApplePayDomain(ctx, accountID,
moov.ApplePayDomains{
DisplayName: "Example account",
Domains: domains,
})
The request completed successfully.
{
"accountID": "string",
"displayName": "string",
"domains": [
"checkout.classbooker.dev"
],
"createdOn": "2019-08-24T14:15:22Z",
"updatedOn": "2019-08-24T14:15:22Z"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The server could not understand the request due to invalid syntax.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Apple Pay domains are already registered for this account.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The requested domains were not verified.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2027.01.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2027.01.00
Path parameters
accountID
string
required
ID of the Moov account representing the merchant.
Body
application/json
displayName
string
<=64 characters
A UTF-8 string to display in the Buy button.
domains
array<string>
A unique list of fully-qualified, top-level or sub-domain names where you will accept Apple Pay.
Response
accountID
string
required
createdOn
string<date-time>
required
displayName
string
<=64 characters
required
A UTF-8 string to display in the Buy button.
domains
array<string>
required
A unique list of fully-qualified, top-level or sub-domain names where you will accept Apple Pay.
updatedOn
string<date-time>
required