{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-delivery-report-schema.json",
  "title": "DeliveryReport",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-delivery-reports-api-openapi.yml#/components/schemas/DeliveryReport",
  "type": "object",
  "properties": {
    "batch_id": {
      "type": "string",
      "description": "The batch identifier"
    },
    "type": {
      "type": "string",
      "description": "The delivery report type"
    },
    "statuses": {
      "type": "array",
      "description": "List of status objects with counts",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The status code"
          },
          "status": {
            "type": "string",
            "description": "The delivery status"
          },
          "count": {
            "type": "integer",
            "description": "The number of recipients with this status"
          },
          "recipients": {
            "type": "array",
            "description": "List of recipient phone numbers",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "total_message_count": {
      "type": "integer",
      "description": "Total number of messages in the batch"
    }
  }
}