reseller
GET /v1/reseller/client-wallets
Every client float you are holding.
Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Кілтте reseller.view рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.
Ұйымыңыздың идентификаторы орналасатын жер
Бұл соңғы нүкте сұрау параметрі ретінде 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`.
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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… |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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