---
title: "Checkout Purchase Domains"
method: POST
path: "/provider-domains/checkout-purchase"
tags: ["Provider Domains"]
---

# Checkout Purchase Domains

`POST /provider-domains/checkout-purchase`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/provider-domains/checkout-purchase`
- Auth: HTTP bearer

Buy one or more sending domains. SPENDS REAL CREDITS — unrestricted, same
as the app; there is no per-key spend cap.

Send an ``Idempotency-Key`` header to make a retry safe (a repeat with the
same key returns the original response instead of buying twice). Returns
402 if the credit hold can't clear, 422 if the org's plan can't fund a
purchase at all (same gate the app UI checks), 400 for a pilot-only
provider or an unsupported TLD.

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Request body

- DomainPurchaseRequest: Buy one or more sending domains. Spends real credits — see the 402 contract on the route docstring.
  - `domains` string[], required: Domains to buy, e.g. ['acme-outreach.com']. Up to 50 per request.
  - `spare_domains` string[]: Extra domains bought as spare warm-up capacity (warm from day 0, excluded from sending until promoted). Up to 50 per request.
  - `period` integer: Registration period, in years
  - `contact_info` object, required: Registrant contact used for domain registration
  - `provider` 'registrar' | 'managed' | 'pilot': Provisioning path. 'pilot' is limited to allowlisted orgs and otherwise returns 400.

## Response `202`

Successful Response

- ApiResponseDict
  - `data` object, required
  - `pagination` PaginationMeta
    - `page` integer, required: Current page number (1-indexed)
    - `limit` integer, required: Items per page
    - `total` integer, required: Total number of items
    - `has_next` boolean, required: Whether there are more pages
    - `next_cursor` string, nullable: Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers.
    - `total_available` integer, nullable: Search endpoints only: how many records really match, when known. Can be larger than `total`, which is capped at the 10,000 results that can be paged. For company search this is a distinct-company estimate. Null when unknown; absent outside search.
    - `total_is_lower_bound` boolean, nullable: Search endpoints only: true when more records match than `total` shows (the result set is larger than the 10,000 results that can be paged). Absent outside search.
    - `notes` string[], nullable: Search endpoints only: plain-language notes about the result, e.g. that more records match than can be paged, or that a reversed `between` range was put in order.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graph8/apis/graph8-developer-api.md) · [All operations](https://skmtc.dev/graph8/apis/graph8-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/graph8/apis/graph8-developer-api/revisions/2e7cfa0ca921?raw)
