{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicepdfs-com/json-schema/invoicepdfs-com-batch-items-list-response-schema.json",
  "title": "BatchItemsListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicepdfs-com-batches-api-openapi.yml#/components/schemas/BatchItemsListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/BatchItemOut"
      },
      "type": "array",
      "title": "Data"
    },
    "pagination": {
      "$ref": "#/$defs/CursorPagination"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "BatchItemOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "External Id"
        },
        "document_type": {
          "type": "string",
          "title": "Document Type"
        },
        "status": {
          "$ref": "#/$defs/BatchItemStatus"
        },
        "render_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Render Id"
        },
        "error_message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Message"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "document_type",
        "status",
        "created_at"
      ],
      "title": "BatchItemOut"
    },
    "BatchItemStatus": {
      "type": "string",
      "enum": [
        "pending",
        "completed",
        "failed"
      ],
      "title": "BatchItemStatus"
    },
    "CursorPagination": {
      "properties": {
        "has_more": {
          "type": "boolean",
          "title": "Has More",
          "default": false
        },
        "next_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Cursor"
        }
      },
      "type": "object",
      "title": "CursorPagination"
    }
  }
}