{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tlaloc-sh/json-schema/tlaloc-sh-curp-batch-summary-schema.json",
  "title": "CurpBatchSummary",
  "description": "Summary of a batch (POST 202 / GET batch). Items are paginated separately.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tlaloc-sh-openapi.json#/components/schemas/CurpBatchSummary",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "type": {
      "type": "string",
      "title": "Type"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "termination_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Termination Reason"
    },
    "items_total": {
      "type": "integer",
      "title": "Items Total"
    },
    "items_unique": {
      "type": "integer",
      "title": "Items Unique"
    },
    "items_pending": {
      "type": "integer",
      "title": "Items Pending"
    },
    "items_processing": {
      "type": "integer",
      "title": "Items Processing"
    },
    "items_success": {
      "type": "integer",
      "title": "Items Success"
    },
    "items_not_found": {
      "type": "integer",
      "title": "Items Not Found"
    },
    "items_error": {
      "type": "integer",
      "title": "Items Error"
    },
    "items_cancelled": {
      "type": "integer",
      "title": "Items Cancelled"
    },
    "items_skipped_insufficient_balance": {
      "type": "integer",
      "title": "Items Skipped Insufficient Balance"
    },
    "items_cache_hit": {
      "type": "integer",
      "title": "Items Cache Hit"
    },
    "cost_billed_mxn": {
      "type": "string",
      "title": "Cost Billed Mxn"
    },
    "idempotency_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotency Key"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    },
    "_links": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Links"
    }
  },
  "type": "object",
  "required": [
    "id",
    "type",
    "status",
    "items_total",
    "items_unique",
    "items_pending",
    "items_processing",
    "items_success",
    "items_not_found",
    "items_error",
    "items_cancelled",
    "items_skipped_insufficient_balance",
    "items_cache_hit",
    "cost_billed_mxn",
    "created_at"
  ]
}