Skip to content
gist.link ↗

partnerLedger

Query Developers API — POST https://developers.api.gist.link/graphql

The caller (partner) org’s revenue/payout ledger, newest first.

developers:query:partnerLedger

The calling IAM key must hold this permission (or a wildcard that covers it: developers:query:* or developers:*) and the access token must have been minted with audience=developers. See Permissions.

type Query {
partnerLedger(first: Int, after: String): LedgerEntryConnection!
}
Argument Type Required Description
first Int No —
after String No —

LedgerEntryConnection! — see the Developers types reference.

Terminal window
curl https://developers.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query PartnerLedger($first: Int, $after: String) { partnerLedger(first: $first, after: $after) { totalCount edges { cursor node { uuid kind currency } } } }",
"variables": {
"first": 10,
"after": "cursor"
}
}
JSON