{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dokyumi-com/json-schema/dokyumi-com-post-api-v1-extract-response-schema.json",
  "title": "PostApiV1ExtractResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/dokyumi-com-openapi-generated.yml#/components/schemas/PostApiV1ExtractResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "schema": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "vendor_name": {
          "type": "string"
        },
        "invoice_number": {
          "type": "string"
        },
        "invoice_date": {
          "type": "string",
          "format": "date"
        },
        "total_amount": {
          "type": "number"
        },
        "line_items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "quantity": {
                "type": "integer"
              },
              "unit_price": {
                "type": "number"
              },
              "amount": {
                "type": "number"
              }
            }
          }
        }
      }
    },
    "confidence": {
      "type": "object",
      "properties": {
        "vendor_name": {
          "type": "number"
        },
        "invoice_number": {
          "type": "number"
        },
        "invoice_date": {
          "type": "number"
        },
        "total_amount": {
          "type": "number"
        },
        "line_items": {
          "type": "number"
        }
      }
    },
    "validation": {
      "type": "object",
      "properties": {
        "valid": {
          "type": "boolean"
        },
        "errors": {
          "type": "array",
          "items": {}
        },
        "low_confidence_fields": {
          "type": "array",
          "items": {}
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "processing_time_ms": {
          "type": "integer"
        },
        "page_count": {
          "type": "integer"
        },
        "credits_used": {
          "type": "integer"
        },
        "ocr_cached": {
          "type": "boolean"
        },
        "model": {
          "type": "string"
        }
      }
    }
  }
}