AlmondTill/G3N API

On this page

supportPlan

query · in the family Billing and the wallet

What it does

Your handholding-plan picture — the size class your recent usage lands in, what a quarter costs at that size, the per-incident price without a plan, and where your plan stands (waiting, active, canceled, or lapsed).

The caller group's handholding-plan report. SELF-group BY CONSTRUCTION (no target arg); a plan-less group answers standing 'none' with its honest classing (a quiet group is Small). Requires authentication. Template class A16_BILLING (hand-derived v93).

What happens

Reads only.

Who may call it

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

Returns

SupportPlanReport SupportPlanReport! — The caller group's handholding-plan report (the quarterly HUMAN-support plans, consumption-sized): the LIVE size classing (what a purchase today charges), the ruled per-incident price, and the plan's standing in the ONE coverage vocabulary.

Example request

query ExampleSupportPlan {
  supportPlan {
    sizeClass
    quarterUsdCents
    basisTokensPerMonth
    thresholdsVersion
    incidentUsdCents
    standing
    onboardingUntil
    onboardingCovers
    purchasedAt
    activatesAt
    coveredThroughMonth
    canceledAt
  }
}

Example response

{
  "data": {
    "supportPlan": {
      "sizeClass": "<size class>",
      "quarterUsdCents": 1,
      "basisTokensPerMonth": 1,
      "thresholdsVersion": 1,
      "incidentUsdCents": 1,
      "standing": "<standing>",
      "onboardingUntil": "<onboarding until>",
      "onboardingCovers": true,
      "purchasedAt": "2027-01-31T00:00:00.000Z",
      "activatesAt": "2027-01-31T00:00:00.000Z",
      "coveredThroughMonth": "<covered through month>",
      "canceledAt": "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