{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-billing-bundle-response-schema.json",
  "title": "BillingBundleResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-bundles-api-openapi.yml#/components/schemas/BillingBundleResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/BillingBundleSchema"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "BillingBundleSchema": {
      "properties": {
        "active": {
          "description": "If that bundle is active or not.",
          "title": "Active",
          "type": "boolean"
        },
        "bundle_limits": {
          "items": {
            "$ref": "#/$defs/BundleLimitSchema"
          },
          "title": "Bundle Limits",
          "type": "array"
        },
        "cost_code": {
          "description": "Bundle's cost code, this is used to identify the bundle in the billing system.",
          "title": "Cost Code",
          "type": "string"
        },
        "created_at": {
          "description": "Date the bundle was created.",
          "format": "date",
          "title": "Created At",
          "type": "string"
        },
        "id": {
          "description": "Bundle's ID, this is used to identify the bundle in the API.",
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "is_public": {
          "description": "Available to all customers or only to specific customers.",
          "title": "Is Public",
          "type": "boolean"
        },
        "name": {
          "description": "Bundle's name, this is used to identify the bundle in the UI.",
          "title": "Name",
          "type": "string"
        },
        "slug": {
          "description": "Slugified version of the bundle's name.",
          "title": "Slug",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "cost_code",
        "active",
        "is_public",
        "created_at",
        "bundle_limits"
      ],
      "title": "BillingBundleSchema",
      "type": "object"
    },
    "BundleLimitDirection": {
      "description": "An enumeration.",
      "enum": [
        "inbound",
        "outbound"
      ],
      "title": "BundleLimitDirection",
      "type": "string"
    },
    "BundleLimitSchema": {
      "properties": {
        "billing_service": {
          "title": "Billing Service",
          "type": "string"
        },
        "country": {
          "deprecated": true,
          "description": "Use country_iso instead",
          "title": "Country",
          "type": "string"
        },
        "country_code": {
          "title": "Country Code",
          "type": "integer"
        },
        "country_iso": {
          "title": "Country Iso",
          "type": "string"
        },
        "created_at": {
          "format": "date",
          "title": "Created At",
          "type": "string"
        },
        "direction": {
          "$ref": "#/$defs/BundleLimitDirection"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "limit": {
          "title": "Limit",
          "type": "integer"
        },
        "metric": {
          "title": "Metric",
          "type": "string"
        },
        "rate": {
          "title": "Rate",
          "type": "string"
        },
        "service": {
          "title": "Service",
          "type": "string"
        },
        "types": {
          "items": {
            "type": "string"
          },
          "title": "Types",
          "type": "array"
        },
        "updated_at": {
          "format": "date",
          "title": "Updated At",
          "type": "string"
        }
      },
      "required": [
        "id",
        "service",
        "metric",
        "created_at",
        "updated_at"
      ],
      "title": "BundleLimitSchema",
      "type": "object"
    }
  }
}