V2BalanceResponse
Response for `GET /workspaces/{workspaceId}/billing/v2/balance`. Three distinct branches share this one field set, distinguished by `provisioned` and `metronomeProvisioning`: - **Provisioned** (`provisioned: true`): a real balance read from Metronome. `metronomeCurrentPlan` is present ONLY on this branch. - **Not yet provisioned** (`provisioned: false`, no customer id): all ids `null`, `totalCents`/`purchasedCreditCents` are `0`, `segments` is `[]`. `metronomeCurrentPlan` is absent. - **Provisioning retry failed** (`provisioned: false`, `metronomeProvisioning: 'pending'`): a lazy provisioning retry was attempted and failed. Deliberately a 200 with zeros rather than a 500 — the frontend renders this as a server-driven pending state.
Properties
| Name | Type | Description |
|---|---|---|
| provisioned | boolean | |
| metronomeProvisioning | stringnull | Server-driven provisioning state flag. `'pending'` on the retry-failed branch; otherwise `null` or absent. |
| metronomeCustomerId | stringnull | |
| metronomeContractId | stringnull | |
| metronomeCurrentPlan | string | Present ONLY on the provisioned branch. Includes `beta` as a real runtime value — the raw DDB passthrough. Excluding `beta` from this enum's handling once let beta workspaces fall through tier gates, |
| metronomeWstartedAt | stringnull | |
| subscriptionStatus | string | Defaults to `'none'` when unset on the workspace record. |
| consumptionEnabled | booleannull | |
| totalCents | integer | |
| purchasedCreditCents | integer | Sum of `pack`-category segments only — excludes the license fee and the free allocation. |
| segments | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-v2-balance-response-schema.json",
"title": "V2BalanceResponse",
"description": "Response for `GET /workspaces/{workspaceId}/billing/v2/balance`. Three\ndistinct branches share this one field set, distinguished by\n`provisioned` and `metronomeProvisioning`:\n\n- **Provisioned** (`provisioned: true`): a real balance read from\n Metronome. `metronomeCurrentPlan` is present ONLY on this branch.\n- **Not yet provisioned** (`provisioned: false`, no customer id): all\n ids `null`, `totalCents`/`purchasedCreditCents` are `0`, `segments`\n is `[]`. `metronomeCurrentPlan` is absent.\n- **Provisioning retry failed** (`provisioned: false`,\n `metronomeProvisioning: 'pending'`): a lazy provisioning retry was\n attempted and failed. Deliberately a 200 with zeros rather than a\n 500 — the frontend renders this as a server-driven pending state.\n",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/nopaque-co-uk-billing-api-openapi.yml#/components/schemas/V2BalanceResponse",
"type": "object",
"required": [
"provisioned",
"metronomeCustomerId",
"metronomeContractId",
"metronomeWstartedAt",
"subscriptionStatus",
"consumptionEnabled",
"totalCents",
"purchasedCreditCents",
"segments"
],
"properties": {
"provisioned": {
"type": "boolean"
},
"metronomeProvisioning": {
"type": [
"string",
"null"
],
"description": "Server-driven provisioning state flag. `'pending'` on the retry-failed branch; otherwise `null` or absent."
},
"metronomeCustomerId": {
"type": [
"string",
"null"
]
},
"metronomeContractId": {
"type": [
"string",
"null"
]
},
"metronomeCurrentPlan": {
"type": "string",
"description": "Present ONLY on the provisioned branch. Includes `beta` as a real\nruntime value — the raw DDB passthrough. Excluding `beta` from\nthis enum's handling once let beta workspaces fall through tier\ngates, so treat it as a genuine value, not an oversight.\n",
"enum": [
"free",
"starter",
"team",
"enterprise",
"beta"
]
},
"metronomeWstartedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"subscriptionStatus": {
"type": "string",
"description": "Defaults to `'none'` when unset on the workspace record."
},
"consumptionEnabled": {
"type": [
"boolean",
"null"
]
},
"totalCents": {
"type": "integer"
},
"purchasedCreditCents": {
"type": "integer",
"description": "Sum of `pack`-category segments only — excludes the license fee and the free allocation."
},
"segments": {
"type": "array",
"items": {
"$ref": "#/$defs/V2BalanceSegment"
}
}
},
"$defs": {
"V2BalanceSegment": {
"type": "object",
"description": "One balance segment (e.g. a free allocation, a license grant, or a purchased pack).",
"required": [
"type",
"name",
"balanceCents",
"category"
],
"properties": {
"type": {
"type": "string",
"description": "Metronome credit-type identifier for this segment."
},
"name": {
"type": "string"
},
"balanceCents": {
"type": "integer",
"description": "Remaining drawable balance in cents. 0 means fully spent."
},
"category": {
"type": "string",
"description": "Segment category. `purchasedCreditCents` on the parent response\nsums only `pack` segments — `license` and `free` are excluded.\n",
"enum": [
"free",
"license",
"pack"
]
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/nopaque-co-uk-v2-balance-response"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.