---
title: "Create checkout domain"
method: POST
path: "/api/v1/checkout-domains"
tags: ["Checkout"]
---

# Create checkout domain

`POST /api/v1/checkout-domains`

## Request

- Base URL: `https://merchant.zahlo.eu`
- URL: `https://merchant.zahlo.eu/api/v1/checkout-domains`
- Auth: API key in header `x-api-key`

Create checkout domain. Use the response status and request ID to decide whether to retry, reconcile, or ask the customer for action.

## Headers

- `Idempotency-Key` string

## Request body

- CheckoutDomainCreateRequest
  - `domain` string, required: Hostname or URL, reduced to its origin. Sandbox also accepts localhost:<port>.
  - `applePay` boolean: Register the host for Apple Pay in embedded checkout.

## Response `201`

Resource created

- CheckoutDomain
  - `id` string, required
  - `object` 'checkout_domain', required
  - `domain` string, required
  - `applePay` object, required
    - `status` 'not_requested' | 'active' | 'failed', required
    - `lastError` string, nullable, required

## Other responses

- `400`: Invalid request
- `401`: Authentication failed
- `404`: Resource not found
- `409`: Request conflicts with existing state

---

[API](https://skmtc.dev/zahlo/apis/zahlo-merchant-api.md) - [All operations](https://skmtc.dev/zahlo/apis/zahlo-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zahlo/apis/zahlo-merchant-api/revisions/8fcbef981e0d?raw)
