reseller

PUT /v1/reseller/prices

Set your own price for one plan.

כל נקודות הקצה מסוג reseller

אימות

שלחו מפתח 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_idUuidכןUUIDv7 identifier — sortable by creation time (docs/02 §8).
intervalstringכן
currencystringכן
amount_minorintegerכן
is_activebooleanלא

תשובה

שםסוגנדרשמה זה
idUuid | nullלאNull when you have not authored this row yet.
plan_idUuidכןUUIDv7 identifier — sortable by creation time (docs/02 §8).
plan_codestringכן
plan_namestringכן
intervalstringכן
currencystringכן
amount_minorintegerכןWhat YOUR client pays, in minor units.
is_activebooleanכן
list_amount_minorobjectלאZinn®'s list price for the same plan.
wholesale_amount_minorobjectלאWhat the plan costs YOU after your wholesale discount.
wholesale_discount_bpsintegerלא
price_sourcestring<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