# GET /api/domains/purchases/orders/:id

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

`GET https://api.iagenify.com/api/domains/purchases/orders/ORDER_ID`

Read the signed-in account's registration order and refresh its payment status when possible.

Status: signed-in session required · account scoped

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

```bash
curl "https://api.iagenify.com/api/domains/purchases/orders/ORDER_ID" \
  -H "Authorization: Bearer $IAGENIFY_SESSION"
```

Use the order ID returned by checkout. The route also accepts the payment order ID when it belongs to this account. An order belonging to another account is reported as not found.

## Order statuses {#statuses}

| Status | Meaning |
| --- | --- |
| checkout_pending | Payment has not yet been confirmed. |
| paid | Payment is confirmed; registration is waiting to start. |
| registrar_submitting · registrar_processing | Registration is being submitted or confirmed. |
| dns_configuring | Registration completed and automatic DNS onboarding is in progress. |
| complete | Registration and onboarding are complete. |
| failed · manual_review · cancelled | The order needs attention, failed, or was cancelled. Check `failureCode` and the account's domain list before retrying. |

The response includes `id`, `domain`, `status`, `amountCents`, `currency`, `years`, `nameservers`, `failureCode`, `createdAt` and `completedAt`. Poll with a reasonable delay while the order is pending; avoid creating a second order for the same domain.

| 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. |
| 404 | domain_order_not_found | No order with this ID is visible to the signed-in account. |
