reseller

GET /v1/reseller/client-wallets

Every client float you are holding.

همه نقاط پایانی reseller

احراز هویت

یک کلید API را به عنوان یک توکن حامل ارسال کنید. این کلید باید دارای مجوز 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…

پاسخ

نامنوعالزامیچیست
walletsClientWalletRow[]بله
held_totalsClientWalletHeldTotal[]بله⛔ 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.
totalintegerبله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…
returnedintegerبلهHow many `wallets` this response carries.

خطاهایی که این نقطه پایانی می‌تواند برگرداند

401 · 403 · 404 · 429