Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ця кінцева точка не вказує конкретного дозволу в специфікації, тому надайте своєму ключу мінімально необхідні права та перевірте відповідь, замість того щоб припускати.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X POST https://api.zinndigital.com/v1/orgs \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "type": <OrgType>, "name": <string> }'Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API
Деталі
Creates a child organization under the caller's org (reseller creating a client, etc.). Send an `Idempotency-Key` so retries never create duplicates (docs/09 §2).
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
Idempotency-Key (header) | string | Ні | Client-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats. |
Тіло запиту
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
type | OrgType | Так | Organization type in the tenancy tree. |
parent_org_id | Uuid | null | Ні | Defaults to the caller's org when omitted. |
name | string | Так | — |
default_currency | CurrencyCode | Ні | — |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
type | OrgType | Так | Organization type in the tenancy tree. |
parent_org_id | Uuid | null | Ні | Parent in the tenancy tree; null for a top-level org. |
name | string | Так | — |
brand_id | object | Ні | White-label brand applied to this org's surfaces. |
default_currency | CurrencyCode | Так | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
status | string<active, suspended, closed> | Так | — |
created_at | string | Так | — |
Помилки, які може повертати ця кінцева точка
401 · 403 · 409 · 422 · 429