{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-balance-response-schema.json",
  "title": "BalanceResponse",
  "description": "Balance response for service clients.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parallel-ai-account-api-openapi.yml#/components/schemas/BalanceResponse",
  "properties": {
    "org_id": {
      "type": "string",
      "title": "Org Id",
      "description": "Organization ID"
    },
    "credit_balance_cents": {
      "type": "number",
      "title": "Credit Balance Cents",
      "description": "Total available prepaid balance in cents (credits + prepaid commits). Always 0 when will_invoice is true."
    },
    "pending_debit_balance_cents": {
      "type": "number",
      "title": "Pending Debit Balance Cents",
      "description": "Balance in cents currently held for inflight tasks plus charges not yet synced to the billing provider. Always 0 when will_invoice is true."
    },
    "will_invoice": {
      "type": "boolean",
      "title": "Will Invoice",
      "description": "True if this organization is billed by invoice (postpaid) rather than from a prepaid credit balance. Invoice-only orgs cannot add balance via this API."
    }
  },
  "type": "object",
  "required": [
    "org_id",
    "credit_balance_cents",
    "pending_debit_balance_cents",
    "will_invoice"
  ]
}