reseller

POST /v1/reseller/services/{siteId}/suspend

Put a client's site on a non-payment hold.

Усі кінцеві точки reseller

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл reseller.provision; ключ без нього відхиляється з кодом 403, а не 404.

Де вказується ідентифікатор вашої організації

Цей ендпоїнт приймає org_id як параметр запиту. Залиште його порожнім, і виклик охопить увесь ваше дерево орендарів; надішліть його, щоб звузити виклик до однієї організації.

Ідентифікатор вашої організації знаходиться на екрані API-ключів у вашій панелі керування, поруч із самим ключем. Це той самий ідентифікатор у кожному вашому запиті.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X POST https://api.zinndigital.com/v1/reseller/services/{siteId}/suspend \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

Suspends a site you resell — the lever a billing panel pulls when your client has not paid you. The site stops serving and its content is retained; nothing is deleted. Requires `reseller.provision`. The hold is attributed to YOU, and that attribution is load-bearing: a site the malware ladder suspended cannot be released by `unsuspendResellerService`, and a site you suspended cannot be released from the abuse queue. Two different people hold two different keys to the same door, and neither may open the other's lock.

Параметри

НазваТипОбов'язковеЩо це таке
siteId (path)UuidТакSite ID (UUIDv7).
org_id (query)UuidНіWhich of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 r…

Тіло запиту

НазваТипОбов'язковеЩо це таке
reasonstringНіYour own note for the audit trail — typically the invoice number that went unpaid. Recorded against the suspension; never shown to the client.

Відповідь

НазваТипОбов'язковеЩо це таке
site_idUuidТакUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_org_idUuidТакUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_org_namestringТак
primary_domainstringТак
namestringНі
statusSiteStatusТакA site's lifecycle state (docs/04 §3). A newly created site is `pending` until the provisioning workflow picks it up; `deleted` is terminal. `restricted` and `quarantined` are t…
product_lineobjectНі
plan_codeobjectНі
plan_nameobjectНі
held_by_resellerbooleanНіTrue when the current suspension was placed through this surface, which is the only case `unsuspendResellerService` will release. A site suspended by the abuse desk reports fals…
pending_deletion_atobjectНіWhen a scheduled deletion falls due, or null.
sell_amount_minorobjectНіWhat YOU charge for this plan, in minor units of `sell_currency` — your own price-list row if you have authored one, otherwise our list price with your default markup applied. N…
sell_currencyobjectНі
created_atstringТак

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 409 · 422 · 429