{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-cdr-get-sync-usage-report-response-schema.json",
  "title": "CdrGetSyncUsageReportResponse",
  "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/CdrGetSyncUsageReportResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/CdrUsageReportResponse"
    }
  },
  "type": "object",
  "$defs": {
    "CdrUsageReportResponse": {
      "properties": {
        "aggregation_type": {
          "enum": [
            "NO_AGGREGATION",
            "CONNECTION",
            "TAG",
            "BILLING_GROUP"
          ],
          "type": "string"
        },
        "connections": {
          "items": {
            "format": "int64",
            "type": "integer"
          },
          "type": "array"
        },
        "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": {
          "enum": [
            "NO_BREAKDOWN",
            "DID_VS_TOLL_FREE",
            "COUNTRY",
            "DID_VS_TOLL_FREE_PER_COUNTRY"
          ],
          "type": "string"
        },
        "record_type": {
          "type": "string"
        },
        "report_url": {
          "type": "string"
        },
        "result": {
          "additionalProperties": true,
          "type": "object"
        },
        "start_time": {
          "format": "date-time",
          "type": "string"
        },
        "status": {
          "enum": [
            "PENDING",
            "COMPLETE",
            "FAILED",
            "EXPIRED"
          ],
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}