---
api: 'Merchant API'
---

# Register domain for Apple Pay

Register your website's domain to accept payments via Apple Pay. 

Before you call this endpoint, make sure that you have completed the following steps:

1. Download the latest [domain validation file](https://assets.revolut.com/api-docs/merchant-api/files/apple-developer-merchantid-domain-association).
1. Upload the domain validation file to your website in the following folder `/.well-known/`. For example, if your website is `example.com`, the file should be available on `example.com/.well-known/apple-developer-merchantid-domain-association`, where `apple-developer-merchantid-domain-association` indicates the name of the file.

## Endpoint

POST `/api/apple-pay/domains/register`

## Request body

### Attributes

- `domain` (string)
    Domain name of your website without the scheme (i.e. without `http://` or `https://`).

## Returns

### 204

Domain registered successfully

## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad Request |
