domains

GET /v1/domains/{domainId}/restore-quote

What it costs to restore a lapsed domain.

Све domains крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X GET https://api.zinndigital.com/v1/domains/{domainId}/restore-quote \
  -H "Authorization: Bearer zdk_live_…"

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом 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_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
fqdnstringДа—
restorablebooleanДа—
reasonobjectДа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_minorobjectДа—
currencyobjectДа—
line_kindstring<domain_restore>ДаThe cart line kind that buys it.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 429