# POST /api/domains/purchases/checkout

Canonical URL: https://developers.iagenify.com/de/api/reference/domain-purchases/post-checkout/
Language: de

`POST https://api.iagenify.com/api/domains/purchases/checkout`

Prepare a customer-confirmed payment for a domain registration. Registration is requested only after payment is confirmed.

Status: signed-in session required · verified email · legal consent required

## Contract boundaries

This endpoint inventory is generated from the mounted API route. Its HTTP method, path, observed field names, and explicit status/error codes come from route source. It is not a complete OpenAPI schema: generic `value` types, descriptions such as `Request field`, and `YOUR_*` placeholders do not define JSON types, nested shapes, validation rules, enums, or all response properties. Do not copy placeholder values as a request body or invent missing constraints.

> **Never start checkout from a stale quote**
>
> Call the quote endpoint immediately before checkout and use the exact returned first-year and renewal amounts. Checkout rejects a changed quote and does not open payment.

## Request {#request}

```javascript
{
  domain: quote.domain,
  expectedFirstPeriodCents: quote.customerFirstPeriodCents,
  expectedRenewalCents: quote.customerRenewalCents,
  "legalConsent": true,
  "registrant": {
    "country": "US",
    "whoisDetails": {
      "first_name": "Alex",
      "last_name": "Example",
      "email": "alex@example.net",
      "phone": "+12025550123",
      "address": "1 Example Street",
      "city": "Example City",
      "state": "CA",
      "zip": "90001",
      "organization": ""
    }
  }
}
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `domain` | string | required | The exact domain from the current quote. |
| `expectedFirstPeriodCents` | integer | required | Current quote's first-period customer amount in cents. |
| `expectedRenewalCents` | integer | required | Current quote's annual renewal customer amount in cents. |
| `legalConsent` | boolean | required | Must be `true`; confirms that the registrar may receive the submitted registrant details. |
| `registrant.country` | string | required | Two-letter ISO country code. |
| `registrant.whoisDetails` | object | required | Must include `first_name`, `last_name`, `email`, `phone`, `address`, `city`, `state` and `zip`. `organization` is optional. |
| `registrant.tldDetails` | object |  | Optional extension-specific contact fields. |
| `registrant.additionalDetails` | object |  | Optional registrar contact details for this registration. |

## Response and next steps {#response}

Success returns `{ ok: true, order, url }`. `order` includes the order ID, domain, status, charged amount in cents, currency, years, nameservers, failure code and timestamps. `url` is the customer payment link.

- Send the customer to the returned `url` to complete payment.
- After the customer returns, fetch the order using [GET /api/domains/purchases/orders/:id](/de/api/reference/domain-purchases/get-orders-id); do not infer payment success from the browser redirect alone.
- After paid registration, the purchased domain is added to the same signed-in account and onboarding provisions its DNS zone and IaGenify nameservers. The domain can remain pending nameserver delegation while registration or DNS setup completes.

| Status | Code | Meaning |
| --- | --- | --- |
| 401 | unauthorized | The bearer session is missing, expired, or invalid. Exchange the account API key for a short-lived session first. |
| 403 | session_required | This checkout route requires a signed-in account session; an API-key credential alone is not accepted. |
| 400 | registrant_required · registrant_phone_invalid · registrant_consent_required · currency_unsupported · domain_restricted | Required legal registrant information or consent is missing or invalid, or the registrar offer cannot be checked out in the supported currency. |
| 403 | email_verification_required · domain_limit | Verify the account email or reduce the account's registered domain count. |
| 409 | domain_quote_changed · domain_unavailable · domain_order_pending · domain_already_attached | The quote changed, name is no longer available, an order is already running, or the domain is already attached. |
| 503 | domain_purchases_disabled · domains_unavailable · billing_unavailable | The required purchase, automatic DNS onboarding, or payment service is unavailable. |
