אימות
שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
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