Skip to Content
Docs
Payment method domains

List payment method domains

GET/payment_method_domains

Retrieves the list of domains registered for Apple Pay on the web. The list is read from Apple; errors returned by Apple are passed through as 400 responses.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Returns

Returns a list of payment method domain objects.

resourcestring

String representing the object's type.

Default: payment_method_domains

domain_namesarray of strings

List of accepted payment method domains.

Errors

400
Invalid request parameters, or Apple returned an error (for example when your merchant is not registered with Apple Pay).
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?