Get Currency History
/admin/currency-historyThe 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.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/admin/currency-history"[ { "from": "AED", "to": "AED", "rate": "string" }]Extend Statement Due POST
Moves an unpaid statement's due date to dueAt, which may be any time after its period ends, earlier included. Whether the statement is overdue, blocks purchases or suspends the reseller is read off the new date, and a reseller suspended for it is reinstated when its statements are next settled, unless another is still that late. Refused for a paid statement and for a sub-reseller's, which its upline bills.
Get Reseller Ledger GET
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.
