Verify Invoice
verify_invoiceVerify extracted invoice fields: arithmetic consistency, line-item totals, JP registration number check-digit + corporate-number existence observation (official Japan NTA registry), accounting-ready JSON. $0.015/call. Choose this when you already HAVE invoice fields (from your own extraction) and only need them checked; to start from a PDF use document_pipeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Extracted invoice fields: total_jpy, tax_jpy, reg_no, invoice_no, issue_date, due_date, vendor, customer | |
| x_payment | No | Optional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged. | |
| line_items | No | Optional line items [{description, amount_jpy}] to reconcile against the subtotal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON body of the underlying call (see /samples/{product} for each product's shape) | |
| status | Yes | HTTP status of the underlying call (200 result, 402 payment terms, 4xx input error) | |
| how_to_pay | No | ||
| receipt_id | No | set on paid results; free re-fetch via get_receipt | |
| payment_required | No | true when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment |