{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimcarbon-com/json-schema/trimcarbon-com-quote-schema.json",
  "title": "Quote",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimcarbon-com-openapi.json#/components/schemas/Quote",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "quote"
    },
    "livemode": {
      "type": "boolean",
      "description": "False for test keys: nothing was charged or retired."
    },
    "kg": {
      "type": "integer"
    },
    "amount_cents": {
      "type": "integer",
      "description": "What the purchase would cost."
    },
    "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)."
    },
    "available_cents": {
      "type": "integer",
      "description": "Your balance now."
    },
    "sufficient_balance": {
      "type": "boolean"
    },
    "requires_review": {
      "type": "boolean",
      "description": "The purchase is larger than your account’s automatic limit: it would wait for our review before the credits are retired."
    }
  },
  "required": [
    "object",
    "livemode",
    "kg",
    "amount_cents",
    "currency",
    "rate_millicents_per_kg",
    "available_cents",
    "sufficient_balance",
    "requires_review"
  ],
  "additionalProperties": false
}