AlmondTill/G3N API

On this page

billingCharge

query · in the family Billing charge

What it does

One platform usage charge — what the platform billed your group and why.

A BillingCharge by id, within the caller's OWN org-group family; requires authentication. A cross-tenant id reads as null (not-found) AND trips the rootId tripwire server-side.

Who may call it

Capability area: Billing and the wallet — Your platform bill, token purchases and the usage and cost reads.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

BillingCharge — A BillingCharge — the money rail's NON-TOKEN platform fee: AT/stack charging the MERCHANT the platform fee (chargeKind base_fee | support_plan | support_incident — extensible; the $15/mo fee is the first rail, its amount code-carried in BILLING_BASE_FEE_USD_CENTS — **: $5 overhead + $10 that converts to kernels at settle; those kernels are THAT MONTH's allowance — spend first, expire with the month; only purchased kernels bank**). **The API face is FULLY suppressed** — {create:false, update:false, transitions:false}, a NEW suppression combination (the lineage: the SAGA class suppresses because the SYSTEM writes, the Review class because the CONSUMER does, the TokenPurchase pair because the PROCESSOR settles — THIS one because the PLATFORM ITSELF both mints and settles): 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-37386ae00000"
}

Example response

{
  "data": {
    "billingCharge": {
      "id": "01900000-0000-7000-8000-37386ae00000",
      "sysId": "BC-EXMP-0000-000F",
      "type": "BillingCharge",
      "caption": "Blue jeans",
      "status": "created",
      "parentId": "01900000-0000-7000-8000-065235280000",
      "rootId": "01900000-0000-7000-8000-a093dd800000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-b7960e180000",
      "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