Skip to content
gist.link ↗

invoice

Query Pay API — POST https://pay.api.gist.link/graphql

A single invoice by uuid. Any org member.

pay:query:invoice

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

type Query {
invoice(id: String!): Invoice
}
Argument Type Required Description
id String! Yes —

Invoice — see the Pay types reference.

Terminal window
curl https://pay.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Invoice($id: String!) { invoice(id: $id) { id uuid status currency total created_at updated_at } }",
"variables": {
"id": "example"
}
}
JSON