novinzodevelopers
Your store's APIApps referenceReseller finance

Get Reseller Ledger

GET/admin/resellers/{membershipId}/ledger

The entries that moved the reseller's balance, newest first. amountMinor is positive for a credit and negative for a debit, and the balance is their sum. A purchase_hold is what a purchase cost, kept for good unless a purchase_release gives back what was not minted; action_charge is a paid support action; topup and bonus are payments in; topup_reversal takes one back after a refund in core. A sub-reseller's balance is with its upline, not the store. Each entry's amount is in its own currency, the store's when it was written: entries from before the store changed its currency keep the one they were written in, so never add amounts of different currencies.

Path Parameters

membershipId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Query Parameters

cursor?|null
page?|null
limit?|null

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/admin/resellers/string/ledger"
{  "items": [    {      "id": "string",      "kind": "topup",      "amountMinor": -9007199254740991,      "currency": "AED",      "ref": "string",      "memo": "string",      "actor": "string",      "actorName": "string",      "createdAt": "string",      "purchase": {        "id": "string",        "status": "pending_approval",        "keys": -9007199254740991,        "products": [          "string"        ],        "buyer": {          "membershipId": "string",          "displayName": "string"        }      }    }  ],  "nextCursor": "string",  "total": 0}