Ledger
Ledger entries, newest first.
QUERY
ledger(status: RewardStatus, first: Int, after: String): [LedgerEntry!]!Ledger entries, newest first.
Arguments
status?RewardStatusThe state of a reward in the ledger.
Value in
PENDINGUNLOCKEDPAIDREVERSEDfirst?IntDefault
50after?StringReturns
- ledger
A single change to a reward balance.
id*ID!rewardId*ID!status*RewardStatus!The state of a reward in the ledger.
Value in
PENDINGUNLOCKEDPAIDREVERSEDamount*MinorUnits!Positive for credits, negative for reversals.
currency*String!createdAt*DateTime!An ISO-8601 encoded date time string.
Example Request
query Ledger { ledger { id rewardId status amount currency createdAt }}{ "data": { "ledger": [ { "id": "1", "rewardId": "1", "status": "PENDING", "amount": "<MinorUnits>", "currency": "string", "createdAt": "<DateTime>" } ] }}