Match a supplier invoice against purchase orders, cumulative receipts, prior invoicing, an
Match a supplier invoice against purchase orders, cumulative receipts, prior invoicing, and tolerance policy before payment approval.
50000 (raw units)
price
3
calls / 30d
2
unique payers
2026-09-03
updated
Provider
api.vrsai.tech · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6746dFF7bDB1ED4940DBe50024795AD97CbA09Af",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "EiJRESZjUCUufSjSb5iDmikXXeKa3C1gQwYCZR4xFocj",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "50000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"evidence": {
"prior_invoicing_complete": true,
"receipts_complete": true
},
"invoice": {
"currency": "EUR",
"id": "inv_internal_883",
"invoice_number": "INV-883",
"lines": [
{
"id": "line_1",
"line_net_minor": "42000",
"po_line_id": "10",
"price_basis_quantity": "1",
"purchase_order_id": "PO-1001",
"quantity": "10",
"unit_of_measure": "EA",
"unit_price_minor": "4200"
}
],
"subtotal_minor": "42000",
"supplier_id": "supplier_123",
"total_minor": "42000"
},
"match_mode": "three_way",
"policy": {
"unit_price_tolerance_bps": 200
},
"purchase_orders": [
{
"currency": "EUR",
"id": "PO-1001",
"lines": [
{
"id": "10",
"ordered_quantity": "10",
"previously_invoiced_quantity": "0",
"price_basis_quantity": "1",
"unit_of_measure": "EA",
"unit_price_minor": "4000"
}
],
"supplier_id": "supplier_123"
}
],
"receipts": [
{
"id": "GR-55",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"received_quantity": "10"
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"checks": [
{
"evidence": {
"duplicate_history_supplied": false,
"duplicate_scope": "supplier_id+invoice_number"
},
"id": "duplicate_invoice_number",
"status": "PASS"
},
{
"id": "prior_invoicing_evidence",
"status": "PASS"
},
{
"id": "receipt_evidence_snapshot",
"status": "PASS"
},
{
"evidence": {
"computed_subtotal_minor": "42000",
"declared_subtotal_minor": "42000"
},
"id": "invoice_subtotal_arithmetic",
"status": "PASS"
},
{
"evidence": {
"computed_total_minor": "42000",
"declared_total_minor": "42000"
},
"id": "invoice_total_arithmetic",
"status": "PASS"
},
{
"id": "invoice_line_po_resolution",
"invoice_line_id": "line_1",
"status": "PASS"
},
{
"id": "currency_match",
"purchase_order_id": "PO-1001",
"status": "PASS"
},
{
"id": "supplier_match",
"purchase_order_id": "PO-1001",
"status": "PASS"
},
{
"evidence": {
"invoice_unit_of_measure": "EA",
"po_unit_of_measure": "EA"
},
"id": "unit_of_measure_match",
"invoice_line_id": "line_1",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"status": "PASS"
},
{
"id": "price_basis_match",
"invoice_line_id": "line_1",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"status": "PASS"
},
{
"id": "cumulative_quantity_vs_ordered",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"status": "PASS"
},
{
"evidence": {
"cumulative_invoiced": "10",
"cumulative_received": "10"
},
"id": "cumulative_quantity_vs_received",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"status": "PASS"
},
{
"evidence": {
"invoice_unit_price_minor": "4200",
"po_unit_price_minor": "4000",
"tolerance_bps": 200
},
"id": "unit_price_tolerance",
"invoice_line_id": "line_1",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"reason_code": "UNIT_PRICE_OUTSIDE_TOLERANCE",
"status": "BLOCK"
},
{
"id": "line_total_arithmetic",
"invoice_line_id": "line_1",
"po_line_id": "10",
"purchase_order_id": "PO-1001",
"status": "PASS"
}
],
"coverage": {
"checks_not_performed": [
"document_authenticity_verification",
"ocr_or_pdf_extraction",
"product_description_or_sku_fuzzy_matching",
"erp_or_wms_retrieval",
"supplier_identity_verification",
"tax_determination",
"fx_conversion",
"uom_conversion",
"payment_execution",
"accounting_posting",
"invoice_line_multi_po_allocation",
"credit_note_processing"
],
"checks_performed": [
"duplicate_invoice_number",
"invoice_line_po_resolution",
"currency_and_supplier_match",
"unit_of_measure_and_price_basis",
"cumulative_quantity_vs_ordered",
"cumulative_quantity_vs_received",
"unit_price_tolerance",
"line_total_arithmetic",
"invoice_subtotal_arithmetic",
"invoice_total_arithmetic"
],
"complete_for_declared_scope": true,
"evidence": {
"duplicate_history_supplied": false,
"prior_invoicing_complete": true,
"receipts_complete": true
},
"match_mode": "three_way"
},
"decision": "BLOCK",
"input_fingerprint": "v1:2c0e0b727e0602244be927bc4215abff15a0323e44cc73ebe781b9860aabf71d",
"invoice": {
"currency": "EUR",
"id": "inv_internal_883",
"invoice_number": "INV-883",
"lines_evaluated": 1,
"purchase_orders_referenced": [
"PO-1001"
],
"supplier_id": "supplier_123"
},
"line_results": [
{
"decision": "BLOCK",
"invoice_line_id": "line_1",
"po_line_id": "10",
"pricing": {
"absolute_delta_minor": "200",
"invoice_unit_price_minor": "4200",
"po_unit_price_minor": "4000",
"tolerance_bps": 200
},
"purchase_order_id": "PO-1001",
"quantity": {
"cumulative_invoiced": "10",
"cumulative_received": "10",
"current_invoiced": "10",
"ordered": "10",
"previously_invoiced": "0",
"remaining_order_after_current": "0",
"remaining_received_after_current": "0"
},
"reason_codes": [
"UNIT_PRICE_OUTSIDE_TOLERANCE"
],
"units": {
"invoice_price_basis_quantity": "1",
"invoice_unit_of_measure": "EA",
"po_price_basis_quantity": "1",
"po_unit_of_measure": "EA"
}
}
],
"machine_action": "DO_NOT_APPROVE",
"reason_codes": [
"UNIT_PRICE_OUTSIDE_TOLERANCE"
],
"ruleset_version": "1.0.0",
"totals": {
"computed_subtotal_minor": "42000",
"computed_total_minor": "42000",
"declared_subtotal_minor": "42000",
"declared_total_minor": "42000"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"offer-receipt": {
"info": {
"offers": [
{
"acceptIndex": 0,
"format": "jws",
"signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweDY3NDZkRkY3YkRCMUVENDk0MERCZTUwMDI0Nzk1QUQ5N0NiQTA5QWYiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vYXBpLnZyc2FpLnRlY2gvdjEvY2FwYWJpbGl0aWVzL2ludm9pY2VfbWF0Y2giLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3ODg0NjE1MTMsInZlcnNpb24iOjF9.6b-Cy907OzjLx_StBS30N_Y70TJN5T2AkDfU3PRVk7sORiMBRPFpzloa52cf8LVOKB8SntqvAzhaRMXKPC4Fug"
},
{
"acceptIndex": 1,
"format": "jws",
"signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiRVBqRldkZDVBdWZxU1NxZU0ycU4xeHp5YmFwQzhHNHdFR0drWnd5VER0MXYiLCJuZXR3b3JrIjoic29sYW5hOjVleWt0NFVzRnY4UDhOSmRUUkVwWTF2enFLcVpLdmRwIiwicGF5VG8iOiJFaUpSRVNaalVDVXVmU2pTYjVpRG1pa1hYZUthM0MxZ1F3WUNaUjR4Rm9jaiIsInJlc291cmNlVXJsIjoiaHR0cHM6Ly9hcGkudnJzYWkudGVjaC92MS9jYXBhYmlsaXRpZXMvaW52b2ljZV9tYXRjaCIsInNjaGVtZSI6ImV4YWN0IiwidmFsaWRVbnRpbCI6MTc4ODQ2MTUxMywidmVyc2lvbiI6MX0.YkMKM7aimk9CaGNA4a1e-yAM3rUcbLHnGAFi4t88AT4fI8bI9ZuCyNyxi_HOZV46LApBFjqD3AIe13GYLREGEw"
}
]
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"offers": {
"items": {
"properties": {
"acceptIndex": {
"type": "integer"
},
"format": {
"type": "string"
},
"payload": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"payTo": {
"type": "string"
},
"resourceUrl": {
"type": "string"
},
"scheme": {
"type": "string"
},
"validUntil": {
"type": "integer"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"resourceUrl",
"scheme",
"network",
"asset",
"payTo",
"amount"
],
"type": "object"
},
"signature": {
"type": "string"
}
},
"required": [
"format",
"signature"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"offers"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.vrsai.tech/v1/capabilities/invoice_match" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.vrsai.tech/v1/capabilities/invoice_match");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.vrsai.tech/v1/capabilities/invoice_match")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7287.json, and this resource appears in /discovery/resources and /discovery/search.