# POST /api/domains/purchases/renewals/:domainId/checkout

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

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

Prepare a customer-confirmed one-year renewal payment for an eligible IaGenify-registered domain.

Status: authenticated account · renewal price reconfirmed

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

```javascript
const payload = {
  expectedAmountCents: quote.customerAmountCents,
  legalConsent: true,
};
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `domainId` | string | required | IaGenify domain record ID in the URL. |
| `expectedAmountCents` | integer | required | Current renewal quote's customer amount in cents. |
| `legalConsent` | boolean | required | Must be `true` to confirm the displayed renewal amount. |

The response contains `order` and a payment `url`. Redirect the customer to that URL. Check the returned order after payment; do not treat the redirect by itself as proof of renewal. A pending renewal is protected against duplicate checkout.

| Status | Code | Meaning |
| --- | --- | --- |
| 401 | unauthorized | The authentication credential is missing, expired, or invalid. |
| 400 | renewal_consent_required | The customer has not confirmed the displayed amount. |
| 403 | email_verification_required | The account email must be verified before renewal. |
| 404 | domain_not_renewable_here | This account does not own an eligible IaGenify-registered domain with this ID. |
| 409 | domain_quote_changed · renewal_order_pending | Refresh the quote or wait for the existing renewal checkout to finish. |
| 503 | billing_unavailable · domain_purchases_disabled | Payment or domain renewal is unavailable. |
