Get Reseller Ledger
/admin/resellers/{membershipId}/ledgerThe 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
^([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
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}Get Currency History GET
The store's changes of currency, oldest first, each with the rate the plugin carried balances and owed statements over at: a unit of `from` was worth `rate` of `to`. What was charged, paid or earned before a change keeps the currency it was in; converting it across every change from the latest one out of its currency gives what it is worth in the store's currency now. Empty for a store that never changed its currency.
Get Reseller Statement Document GET
The statement as a print-ready HTML document, the same one the reseller gets. Print it to PDF from a browser.
