{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/voixcall-com/json-schema/voixcall-com-rate-schema.json",
  "title": "Rate",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/voixcall-com-openapi.yml#/components/schemas/Rate",
  "additionalProperties": false,
  "properties": {
    "ai_rate_per_minute": {
      "description": "What an AI agent call to this destination costs per minute (carrier plus the voice AI), billed per second and fixed on the call at placement. Null when AI calls are not offered.",
      "pattern": "^[0-9]+\\.[0-9]{4}$",
      "type": [
        "string",
        "null"
      ]
    },
    "billing_increment_seconds": {
      "description": "Calls are billed in whole increments of this many seconds.",
      "format": "int64",
      "type": "integer"
    },
    "country_code": {
      "description": "ISO 3166-1 alpha-2 of the destination.",
      "type": "string"
    },
    "country_name": {
      "type": "string"
    },
    "currency": {
      "enum": [
        "USD"
      ],
      "type": "string"
    },
    "destination": {
      "description": "The number quoted, E.164.",
      "type": "string"
    },
    "destination_type": {
      "description": "Line type of the destination.",
      "enum": [
        "fixed_line",
        "mobile",
        "fixed_line_or_mobile",
        "toll_free",
        "premium_rate",
        "shared_cost",
        "voip",
        "personal_number",
        "pager",
        "uan",
        "voicemail",
        "unknown"
      ],
      "type": "string"
    },
    "livemode": {
      "type": "boolean"
    },
    "object": {
      "description": "Always \"rate\".",
      "enum": [
        "rate"
      ],
      "type": "string"
    },
    "rate_basis": {
      "description": "Whether the quote is priced from your selected caller ID or the platform default.",
      "enum": [
        "selected_caller_id",
        "default_caller_id"
      ],
      "type": "string"
    },
    "rate_per_minute": {
      "description": "The per-minute rate the app quotes before a call; the rate actually charged is fixed at call setup and shown on the call's rate_per_minute. Decimal string with four decimals.",
      "pattern": "^[0-9]+\\.[0-9]{4}$",
      "type": "string"
    }
  },
  "required": [
    "object",
    "livemode",
    "destination",
    "country_code",
    "country_name",
    "destination_type",
    "rate_per_minute",
    "currency",
    "billing_increment_seconds",
    "rate_basis",
    "ai_rate_per_minute"
  ],
  "type": "object"
}