# Get the Apple Pay domain association file (https://developer.godaddy.com/en/docs/references/rest/apple-pay/get-apple-pay-domain-association-file)

---
title: Get the Apple Pay domain association file
description: >-
  Download the domain association file that proves to Apple that you control a
  registered domain.
full: true
pageId: 4ecb5b6a-51ab-4aae-8000-d0f12d1fe586
---

Full description

Download the domain association file that proves to Apple that you control a registered domain. Host the file contents unchanged at https\://\{domain}/.well-known/apple-developer-merchantid-domain-association on every domain you register.

## GET /stores/{storeId}/apple-pay/domain-association-file

Get the Apple Pay domain association file

Download the domain association file that proves to Apple that you control a registered domain. Host the file contents unchanged at https://{domain}/.well-known/apple-developer-merchantid-domain-association on every domain you register.

### Path parameters

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

### Responses

**200** — Domain association file contents

Content-Type: `text/plain`

```
7B227073704964223A22...
```

Schema:

- string

**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`

**Security:** requires `PAT`; scopes `commerce.store:read`.
