# Register Domain

**POST** `/v1/payment-methods/domains`

Base URL: `https://api-sandbox.whitelabel.com`

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Idempotency-Key` (string, required)
  Required: requests without it are rejected with 400 INVALID_PARAMETERS. Stored for audit only and not enforced today: every call creates a new registration attempt and a new call to the wallet provider, even when it repeats a previous key.

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the account. Find this in the [WHITELABEL dashboard](https://dashboard.whitelabel.com/developers) (MAX 64; MIN 36)
- `connection_id` (string, required)
  The unique identifier of the wallet connection the domains are registered on (UUID). With WHITELABEL's Apple Pay certificate, a connection holds at most 99 domains.
- `payment_method_type` ("APPLE_PAY" | "GOOGLE_PAY", required)
  Single payment method to register for all domains.
- `domains` (object[], required)
  Domains to register, 1 to 50 per request. Each subdomain is a separate domain.
  - `url` (string, required)
    Fully qualified domain name, without scheme or path (for example, `checkout.example.com`).

Example:

```json
{
  "account_id": "string",
  "connection_id": "string",
  "payment_method_type": "APPLE_PAY",
  "domains": [
    {
      "url": "string"
    }
  ]
}
```

## Responses

### 202

Accepted

- `account_id` (string)
- `payment_method_type` (string)
- `domains` (object[])
  - `id` (string)
  - `domain` (string)
  - `status` ("CREATED" | "REGISTERED" | "ERROR" | "INACTIVE")
    `CREATED`: registration with the wallet provider is in progress. `REGISTERED`: the domain is verified and can show the wallet button. `ERROR`: the provider rejected the registration (for example, the association file was not reachable); register the domain again after fixing it. `INACTIVE`: the domain was deleted.
  - `created_at` (string)
  - `updated_at` (string)

Example:

```json
{
  "account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "payment_method_type": "APPLE_PAY",
  "domains": [
    {
      "id": "8a2f4b1c-6d3e-4f7a-9b21-0c5d8e7f6a43",
      "domain": "checkout.example.com",
      "status": "REGISTERED",
      "created_at": "2026-01-22T10:30:00Z",
      "updated_at": "2026-01-22T10:30:00Z"
    }
  ]
}
```