Skip to content
gist.link ↗

invoices

Query Billing API — POST https://billing.api.gist.link/graphql

Cursor-paginated invoices for the current organization. Any org member.

billing:query:invoices

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

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

InvoiceConnection! — see the Billing types reference.

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