{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/agrio/refs/heads/main/json-schema/agrio-credit-balance-schema.json",
  "title": "Credit Balance",
  "description": "Current API credit balance for the authenticated account.",
  "type": "object",
  "properties": {
    "balance": {
      "type": "integer",
      "description": "Number of available credits remaining.",
      "example": 450
    },
    "currency": {
      "type": "string",
      "description": "Credit unit type.",
      "example": "credits"
    },
    "account_id": {
      "type": "string",
      "description": "Unique identifier for the API account.",
      "example": "acc-500123"
    }
  },
  "required": [
    "balance",
    "currency"
  ]
}