domains
GET /v1/domains/{domainId}/restore-quote
What it costs to restore a lapsed domain.
Xác thực
Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền sites.view; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.
Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.
Dùng thử
Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.
curl -X GET https://api.zinndigital.com/v1/domains/{domainId}/restore-quote \
-H "Authorization: Bearer zdk_live_…"Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API
Chi tiết
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`.
Tham số
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
domainId (path) | Uuid | Có | The domain's id. |
Phản hồi
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
domain_id | Uuid | Có | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
fqdn | string | Có | — |
restorable | boolean | Có | — |
reason | object | Có | 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 produ… |
amount_minor | object | Có | — |
currency | object | Có | — |
line_kind | string<domain_restore> | Có | The cart line kind that buys it. |
Các lỗi điểm cuối này có thể trả về
401 · 403 · 404 · 429