Demo docs: examples are illustrative.
Referral API

Ledger

Ledger entries, newest first.

QUERYledger(status: RewardStatus, first: Int, after: String): [LedgerEntry!]!

Ledger entries, newest first.

Arguments

status?RewardStatus

The state of a reward in the ledger.

Value inPENDINGUNLOCKEDPAIDREVERSED
first?Int
Default50
after?String

Returns

  1. ledger

A single change to a reward balance.

id*ID!
rewardId*ID!
status*RewardStatus!

The state of a reward in the ledger.

Value inPENDINGUNLOCKEDPAIDREVERSED
amount*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  }}
Example Response
{  "data": {    "ledger": [      {        "id": "1",        "rewardId": "1",        "status": "PENDING",        "amount": "<MinorUnits>",        "currency": "string",        "createdAt": "<DateTime>"      }    ]  }}