{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-external-wdr-get-detail-response-schema.json",
  "title": "ExternalWdrGetDetailResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-wdr-detail-reports-api-openapi.yml#/components/schemas/ExternalWdrGetDetailResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/ExternalWdrDetailRecordDto"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/wireless-public_PaginationMeta"
    }
  },
  "type": "object",
  "$defs": {
    "DownlinkData": {
      "properties": {
        "amount": {
          "description": "Downlink data",
          "type": "number"
        },
        "unit": {
          "default": "MB",
          "description": "Transmission unit",
          "enum": [
            "B",
            "KB",
            "MB"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExternalWdrDetailRecordDto": {
      "properties": {
        "cost": {
          "$ref": "#/$defs/WirelessCost"
        },
        "created_at": {
          "description": "Record created time",
          "format": "date-time",
          "type": "string"
        },
        "downlink_data": {
          "$ref": "#/$defs/DownlinkData"
        },
        "duration_seconds": {
          "description": "Session duration in seconds.",
          "type": "number"
        },
        "id": {
          "description": "WDR id",
          "type": "string"
        },
        "imsi": {
          "description": "International mobile subscriber identity.",
          "type": "string"
        },
        "mcc": {
          "description": "Mobile country code.",
          "type": "string"
        },
        "mnc": {
          "description": "Mobile network code.",
          "type": "string"
        },
        "phone_number": {
          "description": "Phone number",
          "type": "string"
        },
        "rate": {
          "$ref": "#/$defs/WirelessRate"
        },
        "record_type": {
          "type": "string"
        },
        "sim_card_id": {
          "description": "Sim card unique identifier",
          "type": "string"
        },
        "sim_group_id": {
          "description": "Sim group unique identifier",
          "type": "string"
        },
        "sim_group_name": {
          "description": "Defined sim group name",
          "type": "string"
        },
        "uplink_data": {
          "$ref": "#/$defs/UplinkData"
        }
      },
      "type": "object"
    },
    "UplinkData": {
      "properties": {
        "amount": {
          "description": "Uplink data",
          "type": "number"
        },
        "unit": {
          "default": "MB",
          "description": "Transmission unit",
          "enum": [
            "B",
            "KB",
            "MB"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "WirelessCost": {
      "properties": {
        "amount": {
          "description": "Final cost. Cost is calculated as rate * unit",
          "type": "string"
        },
        "currency": {
          "description": "Currency of the rate and cost",
          "enum": [
            "AUD",
            "CAD",
            "EUR",
            "GBP",
            "USD"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "WirelessRate": {
      "properties": {
        "amount": {
          "description": "Rate from which cost is calculated",
          "type": "string"
        },
        "currency": {
          "description": "Currency of the rate and cost",
          "enum": [
            "AUD",
            "CAD",
            "EUR",
            "GBP",
            "USD"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "wireless-public_PaginationMeta": {
      "properties": {
        "page_number": {
          "format": "int32",
          "type": "integer"
        },
        "page_size": {
          "format": "int32",
          "type": "integer"
        },
        "total_pages": {
          "format": "int32",
          "type": "integer"
        },
        "total_results": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}