AlmondTill/G3N API

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).

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:

What happens

Reads only.

Returns

SupportPlanReport SupportPlanReport! — The caller group's handholding-plan report: 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

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

Example response

json
{
  "data": {
    "supportPlan": {
      "sizeClass": "<size class>",
      "quarterUsdCents": 1,
      "basisTokensPerMonth": 1,
      "thresholdsVersion": 1,
      "incidentUsdCents": 1,
      "standing": "<standing>",
      "onboardingUntil": "<onboarding until>",
      "onboardingCovers": true,
      "includedDays": 1,
      "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