reseller

PUT /v1/reseller/ai/credits/prices

What YOUR clients pay for AI credit.

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

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה reseller.manage; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

המקום שבו מזהה הארגון שלך נכנס

נקודת קצה זו מקבלת את org_id כפרמטר שאילתת חיפוש. השאר אותו ריק והקריאה תכסה את כל תת-עץ הדיירות שלך; שלח אותו כדי לצמצם את הקריאה לארגון אחד.

מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

curl -X PUT https://api.zinndigital.com/v1/reseller/ai/credits/prices \
  -H "Authorization: Bearer zdk_live_…"

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

Accepts the whole ladder in one request, so re-pricing four rungs is one change rather than four. A `price_minor` of `null` **resets that pack to Zinn®'s price** and deletes your override — which is not the same as copying our number: an override stops tracking our list the moment we re-price, and an absent row cannot go stale. A zero or a negative price is refused rather than treated as a reset, because a magic value in a money API deletes a price by fat-finger. Requires `reseller.manage`.

פרמטרים

שםסוגנדרשמה זה
currency (query)stringלאISO-4217 code the returned ladder is priced in. Defaults to USD.
org_id (query)UuidלאWhich of your organizations this applies to.

תשובה

שםסוגנדרשמה זה
packsResellerAiPack[]כן

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 404 · 422 · 429