billingCharge
query · in the family Billing charge
What it does
One platform usage charge — what the platform billed your group and why.
One BillingCharge by id. The record must belong to your organization group; an id from another group reads as not found.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Billing and the wallet — Your platform bill, token purchases and the usage and cost reads.
Roles that may call it:
- Owner
- Manager
- Associate Manager
- An API key whose scope allows
api:billingCharge
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
Returns
BillingCharge — A BillingCharge — the money rail's non-token platform fee: AT/stack charging the merchant the platform fee. **The API face is fully suppressed** — {create:false, update:false, transitions:false}, a NEW suppression combination: the wire surface is the 2 generated reads, the merchant's transparency lane. NOT searchable. Template class A16_BILLING (hand-derived v24).
Example request
query ExampleBillingCharge($id: ID!) {
billingCharge(id: $id) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
chargeKind
usdAmountCents
periodMonth
stripePaymentIntentId
settledAt
}
}Variables:
{
"id": "01900000-0000-7000-8000-142a32780000"
}Example response
{
"data": {
"billingCharge": {
"id": "01900000-0000-7000-8000-142a32780000",
"sysId": "BC-EXMP-0000-000F",
"type": "BillingCharge",
"caption": "Blue jeans",
"status": "created",
"parentId": "01900000-0000-7000-8000-b0839b1d0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"chargeKind": "<charge kind>",
"usdAmountCents": 1,
"periodMonth": "<period month>",
"stripePaymentIntentId": "<stripe payment intent id>",
"settledAt": "2027-01-31T00:00:00.000Z"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)