Update domains for Apple Pay

Add or remove domains to be registered with Apple Pay.

Any domains that will be used to accept payments must first be verified with Apple.

To use this endpoint from the browser, you’ll need to specify the /accounts/{accountID}/apple-pay-merchant.write scope when generating a token.
PATCH
/accounts/{accountID}/apple-pay/domains
cURL
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
curl -X PATCH "https://api.moov.io/accounts/{accountID}/apple-pay/domains" \
  -H "Authorization: Bearer {token}" \
  --data-raw '{
    "addDomains": [
      "pay.classbooker.dev"
    ],
    "removeDomains": [
      "checkout.classbooker.dev"
    ]
  }'\
204 400 404 417 429
Successfully updated domains registered with Apple Pay.
The request body was invalid.
No Apple Pay domains registered for this account were found.
Domain(s) not verified with Apple.
Request was refused due to rate limiting.

Retry-After

number

Path parameters

accountID

string <uuid> required
ID of the Moov account acting as a merchant in a card transaction.

Body

application/json

addDomains

array
A list of fully qualified top-level or sub-domain names to be added. Items must be unique.

removeDomains

array
A list of previously added fully qualified top-level or sub-domain names to be removed.