reseller
GET /v1/reseller/client-wallets
Every client float you are holding.
אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה reseller.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
המקום שבו מזהה הארגון שלך נכנס
נקודת קצה זו מקבלת את org_id כפרמטר שאילתת חיפוש. השאר אותו ריק והקריאה תכסה את כל תת-עץ הדיירות שלך; שלח אותו כדי לצמצם את הקריאה לארגון אחד.
מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X GET https://api.zinndigital.com/v1/reseller/client-wallets \
-H "Authorization: Bearer zdk_live_…"מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
A **liability register**: the sum of these balances is money your clients have paid you and you have not yet delivered service for. It is on your books, not Zinn®'s. ⛔ Totals are **per currency** and never summed across them. Requires `reseller.view`.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
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… |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
wallets | ClientWalletRow[] | כן | — |
held_totals | ClientWalletHeldTotal[] | כן | ⛔ A list, not a number. One figure summed across currencies is wrong in all of them, and it is the figure a reseller would put in their accounts. |
total | integer | כן | How many floats exist. ⛔ `held_totals` is computed over ALL of them while `wallets` is a capped window, so a client reading the list without this would see a total that reconcil… |
returned | integer | כן | How many `wallets` this response carries. |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 429