Api Endpoint

Invoice Preflight

Check invoice amounts, purchase details and line items; return match, discrepancy or needs_review with evidence.

Open interactive test console

Offering

Provider
mcp.dropenginehq.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://mcp.dropenginehq.com/api/invoice-preflight
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
invoice, reconciliation, ubl, ocr, Agent

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.065 USDC
Atomic price: 65000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "65000",
    "payTo": "0xc7693f1ba43E6D1F1885292E1194dc1FDc6e7585"
  }
]

Observed health

Status
Healthy
Latest latency
267 ms
Average latency
447 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "document_xml": {
          "type": "string",
          "description": "UBL Invoice XML document, up to 1 MB."
        },
        "document_url": {
          "type": "string",
          "description": "Public HTTPS URL to a PDF, PNG, or JPEG (up to 10 MB, 3 pages for this tool)."
        },
        "document_base64": {
          "type": "string",
          "description": "Base64 encoded PDF, PNG, or JPEG (up to 10 MB, 3 pages for this tool)."
        },
        "mime_type": {
          "type": "string",
          "enum": [
            "application/pdf",
            "image/png",
            "image/jpeg"
          ]
        },
        "expected": {
          "type": "object",
          "properties": {
            "supplier_name": {
              "type": "string"
            },
            "purchase_order": {
              "type": "string"
            },
            "currency": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            },
            "subtotal": {
              "type": "string"
            },
            "tax": {
              "type": "string"
            },
            "total": {
              "type": "string"
            },
            "line_items": {
              "type": "array",
              "minItems": 1,
              "maxItems": 1000,
              "items": {
                "type": "object",
                "required": [
                  "description",
                  "amount"
                ],
                "properties": {
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "amount": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        }
      },
      "anyOf": [
        {
          "required": [
            "document_xml"
          ]
        },
        {
          "required": [
            "document_url"
          ]
        },
        {
          "required": [
            "document_base64",
            "mime_type"
          ]
        }
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "decision",
        "invoice",
        "checks",
        "evidence",
        "source_sha256",
        "warnings"
      ],
      "properties": {
        "decision": {
          "type": "string",
          "enum": [
            "match",
            "discrepancy",
            "needs_review"
          ]
        },
        "invoice": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "number",
            "supplier_name",
            "purchase_order",
            "currency",
            "subtotal",
            "tax",
            "total",
            "line_items"
          ],
          "properties": {
            "number": {
              "type": [
                "string",
                "null"
              ]
            },
            "supplier_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "purchase_order": {
              "type": [
                "string",
                "null"
              ]
            },
            "currency": {
              "type": [
                "string",
                "null"
              ]
            },
            "subtotal": {
              "type": [
                "string",
                "null"
              ]
            },
            "tax": {
              "type": [
                "string",
                "null"
              ]
            },
            "total": {
              "type": [
                "string",
                "null"
              ]
            },
            "line_items": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "description",
                  "amount"
                ],
                "properties": {
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "amount": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "checks": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "field",
              "status"
            ],
            "properties": {
              "field": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "match",
                  "discrepancy",
                  "needs_review"
                ]
              },
              "expected": {
                "type": "string"
              },
              "actual": {
                "type": "string"
              },
              "calculated": {
                "type": "string"
              }
            }
          }
        },
        "evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "field",
              "source",
              "text"
            ],
            "properties": {
              "field": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            }
          }
        },
        "source_sha256": {
          "type": "string"
        },
        "pages_processed": {
          "type": "integer",
          "minimum": 1
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": [
    "type"
  ]
}