{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/generect-com/json-schema/generect-com-bulk-submit-response-schema.json",
  "title": "BulkSubmitResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/generect-com-10-phone-api-openapi.yml#/components/schemas/BulkSubmitResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "object",
        "null"
      ],
      "description": "Always null — results arrive via the bulk status endpoint."
    },
    "meta": {
      "$ref": "#/$defs/BulkJobMeta"
    }
  },
  "$defs": {
    "BulkJobMeta": {
      "type": "object",
      "description": "Bulk job state. Poll the bulk status endpoint with job_id or subscribe to the completion webhook.",
      "required": [
        "job_id",
        "status",
        "total",
        "processed",
        "amount_charged"
      ],
      "properties": {
        "job_id": {
          "type": "string",
          "description": "Job identifier — pass it to the bulk status endpoint."
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "processing",
            "completed",
            "error"
          ]
        },
        "total": {
          "type": "integer",
          "description": "Number of submitted items."
        },
        "processed": {
          "type": "integer",
          "description": "Items processed so far."
        },
        "found": {
          "type": "integer",
          "description": "Items that resolved to a result (present on status/webhook once completed)."
        },
        "not_found": {
          "type": "integer",
          "description": "Items with no result — not charged (No Data, No Charge)."
        },
        "amount_charged": {
          "type": "number",
          "description": "USD charged for found results; final when status is completed."
        },
        "error": {
          "type": [
            "string",
            "null"
          ],
          "description": "Failure reason when status is error."
        }
      }
    }
  }
}