Demo docs: examples are illustrative.
Referral API

Balances

Current balances across every program.

QUERYbalances: [Balance!]!

Current balances across every program.

Returns

  1. balances

What you owe, grouped by status.

currency*String!
pending*MinorUnits!

An amount in the smallest currency unit, for example cents.

unlocked*MinorUnits!

An amount in the smallest currency unit, for example cents.

paid*MinorUnits!

An amount in the smallest currency unit, for example cents.

reversed*MinorUnits!

An amount in the smallest currency unit, for example cents.

Balances

What you owe right now.

query Balances {  balances {    currency    unlocked    pending  }}
Example Response
{  "data": {    "balances": [      {        "currency": "string",        "unlocked": "<MinorUnits>",        "pending": "<MinorUnits>"      }    ]  }}