reseller

GET /v1/reseller/client-wallets

Every client float you are holding.

Semua titik akhir reseller

Pengesahan

Hantar kunci API sebagai token pembawa. Kunci tersebut mesti membawa kebenaran reseller.view; kunci yang tidak mempunyainya akan ditolak dengan 403, bukan 404.

Tempat ID organisasi anda diletakkan

Titik akhir ini mengambil org_id sebagai parameter pertanyaan. Biarkan ia kosong dan panggilan tersebut meliputi keseluruhan subpohon penyewaan anda; hantarkannya untuk mengecilkan panggilan kepada satu organisasi.

ID organisasi anda terletak pada skrin kekunci API dalam papan pemuka anda, di sebelah kekunci itu sendiri. Ia adalah ID yang sama dalam setiap panggilan yang anda buat.

Cuba

Gantikan apa sahaja di dalam kurungan sudut dengan nilai anda sendiri, dan pemegang tempat kunci dengan kunci dari papan pemuka anda.

curl -X GET https://api.zinndigital.com/v1/reseller/client-wallets \
  -H "Authorization: Bearer zdk_live_…"

Sudah log masuk? Konsol API dalam papan pemuka anda mengisi id organisasi sebenar dan kunci anda sendiri, serta menjalankan permintaan terhadap API langsung supaya anda boleh melihat respons sebenar. Buka penamat ini dalam konsol API

Butiran

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`.

Parameter

NamaJenisDiperlukanApakah ia
org_id (query)UuidTidakWhich 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…

Respons

NamaJenisDiperlukanApakah ia
walletsClientWalletRow[]Ya
held_totalsClientWalletHeldTotal[]Ya⛔ 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.
totalintegerYaHow 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…
returnedintegerYaHow many `wallets` this response carries.

Ralat yang boleh dikembalikan oleh titik akhir ini

401 · 403 · 404 · 429