{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimcarbon-com/json-schema/trimcarbon-com-balance-schema.json",
  "title": "Balance",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimcarbon-com-openapi.json#/components/schemas/Balance",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "balance"
    },
    "livemode": {
      "type": "boolean",
      "description": "False for test keys: nothing was charged or retired."
    },
    "available_cents": {
      "type": "integer",
      "description": "What purchases can spend now. Test keys see a simulated balance."
    },
    "currency": {
      "type": "string",
      "const": "usd"
    },
    "rate_millicents_per_kg": {
      "type": "integer",
      "description": "Your rate in thousandths of a cent per kg: 4000 is $0.04/kg ($40 per tonne)."
    }
  },
  "required": [
    "object",
    "livemode",
    "available_cents",
    "currency",
    "rate_millicents_per_kg"
  ],
  "additionalProperties": false
}