# GET /api/domains/purchases/quote

Canonical URL: https://developers.iagenify.com/ar/api/reference/domain-purchases/get-quote/
Language: ar

`GET https://api.iagenify.com/api/domains/purchases/quote?domain=example.com`

Get a current registration quote and availability result before showing a purchase action.

Status: signed-in session required · live registrar quote · prices are before tax

## 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.

## Request {#request}

```bash
curl --get "https://api.iagenify.com/api/domains/purchases/quote" \
  -H "Authorization: Bearer $IAGENIFY_SESSION" \
  --data-urlencode "domain=example.com"
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `domain` | string | required | Complete domain name to check and quote, such as `example.com`. |

## Response {#response}

```javascript
const { quote } = await response.json();
console.log(quote);
// quote.customerFirstPeriodCents and quote.customerRenewalCents
// are live integer amounts in quote.currency.
```

The returned customer amounts are integer cents and exclude any checkout tax. They are the values to display and send back as the expected amounts at checkout. Refresh the quote if checkout reports `domain_quote_changed`. `pricePolicy` identifies the current retail-pricing policy; do not describe it as a guaranteed final price.

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `available` | boolean |  | Whether the registrar currently reports the name as available. |
| `purchaseEnabled` | boolean |  | Whether the required registrar, onboarding and payment configuration currently permits checkout. |
| `customerFirstPeriodCents` | integer |  | Current customer-facing registration amount in cents. |
| `customerRenewalCents` | integer |  | Current annual renewal amount in cents. |
| `currency` | string |  | Currency returned by the registrar offer. |
| `pricePolicy` | string |  | Retail pricing policy identifier; the quote can change before checkout. |

> **Availability is not a reservation**
>
> A name can become unavailable after the quote. Checkout checks it again before opening payment. A disabled `purchaseEnabled` means do not offer checkout yet.

| 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 | invalid_domain · unsupported_tld · unsupported_term | The domain syntax, extension, or registration term cannot be quoted. |
| 409 | domain_unavailable · domain_restricted | The name is taken or has registry restrictions. |
| 503 | registrar_live_unavailable | Live registrar pricing or availability could not be provided. |
