domains
GET /v1/domains/{domainId}/restore-quote
What it costs to restore a lapsed domain.
Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл sites.view; ключ без нього відхиляється з кодом 403, а не 404.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X GET https://api.zinndigital.com/v1/domains/{domainId}/restore-quote \
-H "Authorization: Bearer zdk_live_…"Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API
Деталі
The registry redemption fee for a domain that has fallen into redemption, and whether it can be restored at all. Priced in the caller's display currency (X-Zinn-Currency, falling back to USD) from the TLD catalogue. A domain that has not lapsed that far needs a renewal, not a restore, and is answered restorable: false rather than quoted — a redemption fee is many times a renewal, so quoting one in the wrong state would overcharge for a renewal. Requires sites.view.
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
domainId (path) | Uuid | Так | The domain's id. |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
domain_id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
fqdn | string | Так | — |
restorable | boolean | Так | — |
reason | object | Так | Why not, when restorable is false. NOT_IN_REDEMPTION — the domain has not lapsed that far, so a renewal is what it needs. NOT_PRICED — the registry has no redemption… |
amount_minor | object | Так | — |
currency | object | Так | — |
line_kind | string<domain_restore> | Так | The cart line kind that buys it. |
Помилки, які може повертати ця кінцева точка
401 · 403 · 404 · 429