# Register domains for Apple Pay (https://developer.godaddy.com/en/docs/references/rest/apple-pay/register-apple-pay-domains)

---
title: Register domains for Apple Pay
description: >-
  Register web domains for Apple Pay on the store so Unified Checkout can offer
  Apple Pay on them.
full: true
pageId: 41aec2ae-9a21-4722-aeef-f920b1ce36e7
---

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.

## POST /stores/{storeId}/apple-pay/registration

Register domains for Apple Pay

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.

### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `storeId` | unknown | yes | Unique identifier for the store |

### Request body (required)

Content-Type: `application/json`

```json
{
  "registerDomains": [
    "shop.example.com"
  ],
  "merchantName": "Example Store",
  "merchantUrl": "https://shop.example.com"
}
```

Schema:

- schema reference: `#/components/schemas/ApplePayRegistrationRequest`

### Responses

**200** — Registration updated. Returns the store's current registration.

Content-Type: `application/json`

```json
{
  "domains": [
    "shop.example.com"
  ],
  "merchantName": "Example Store",
  "merchantUrl": "https://shop.example.com"
}
```

Schema:

- schema reference: `#/components/schemas/ApplePayRegistration`

**204** — No body. Returned when the store has no registration left after the call, for example after you unregister its last domain, or when a domain in `unregisterDomains` isn't registered.

**400** — Bad Request - Invalid input data

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**401** — Unauthorized - Invalid authentication credentials

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**403** — Forbidden - Apple Pay isn't enabled for the store

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**404** — Not Found - Resource does not exist

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**429** — Too Many Requests - Rate limit exceeded

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**500** — Internal Server Error

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**502** — Bad Gateway - Apple returned a server error

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**504** — Gateway Timeout - The call to Apple timed out

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/21ae8c5`

**Security:** requires `PAT`; scopes `commerce.store.apple-pay:write`.
