{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-cdr-get-usage-report-by-id-response-schema.json",
  "title": "CdrGetUsageReportByIdResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-cdr-usage-reports-api-openapi.yml#/components/schemas/CdrGetUsageReportByIdResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/CdrUsageReportResponseLegacy"
    }
  },
  "type": "object",
  "$defs": {
    "CdrUsageReportResponseLegacy": {
      "description": "Legacy V2 CDR usage report response",
      "properties": {
        "aggregation_type": {
          "description": "Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3",
          "format": "int32",
          "type": "integer"
        },
        "connections": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "end_time": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "description": "Identifies the resource",
          "format": "uuid",
          "type": "string"
        },
        "product_breakdown": {
          "description": "Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID vs Toll-free per Country = 3",
          "format": "int32",
          "type": "integer"
        },
        "record_type": {
          "type": "string"
        },
        "report_url": {
          "type": "string"
        },
        "result": {
          "type": "object"
        },
        "start_time": {
          "format": "date-time",
          "type": "string"
        },
        "status": {
          "description": "Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4",
          "format": "int32",
          "type": "integer"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}