אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה reseller.manage; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
המקום שבו מזהה הארגון שלך נכנס
נקודת קצה זו מקבלת את org_id כפרמטר שאילתת חיפוש. השאר אותו ריק והקריאה תכסה את כל תת-עץ הדיירות שלך; שלח אותו כדי לצמצם את הקריאה לארגון אחד.
מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X PUT https://api.zinndigital.com/v1/reseller/prices \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "plan_id": <Uuid>, "interval": <string>, "currency": <string>, "amount_minor": <integer> }'מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
Upserts one row of your price list, keyed on (plan, interval, currency). Editing it never re-prices a client already sold — their subscription captured the price at purchase. Requires `reseller.manage`.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
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… |
גוף הבקשה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
plan_id | Uuid | כן | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
interval | string | כן | — |
currency | string | כן | — |
amount_minor | integer | כן | — |
is_active | boolean | לא | — |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
id | Uuid | null | לא | Null when you have not authored this row yet. |
plan_id | Uuid | כן | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
plan_code | string | כן | — |
plan_name | string | כן | — |
interval | string | כן | — |
currency | string | כן | — |
amount_minor | integer | כן | What YOUR client pays, in minor units. |
is_active | boolean | כן | — |
list_amount_minor | object | לא | Zinn®'s list price for the same plan. |
wholesale_amount_minor | object | לא | What the plan costs YOU after your wholesale discount. |
wholesale_discount_bps | integer | לא | — |
price_source | string<price_list, markup, unpriced> | כן | Whether the price is one you set, one derived from list by your default markup, or absent because the catalogue holds no price in this currency. |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 422 · 429