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