Invoice Three-Way Match

Compare invoice lines with purchase-order and receipt quantities and flag missing purchase-order lines, overbilling and unit-price variance.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout · Prepare from spreadsheet rows

Lumière PayCheck verified paid delivery on Base. View the signed test receipt.

View a sample exceptions report · Book the C$1,000 invoice reconciliation pilot · View WURK’s USDC escrow quote

POST a JSON request to /invoice-three-way-match/v1/check with an x402 V2 client.

Worked example

Request

{
  "order": [
    {
      "line": "1",
      "units": 7,
      "unit_cents": 500
    }
  ],
  "receipts": [
    {
      "line": "1",
      "units": 2
    },
    {
      "line": "1",
      "units": 3
    }
  ],
  "invoice": [
    {
      "line": "1",
      "units": 6,
      "unit_cents": 510
    },
    {
      "line": "2",
      "units": 1,
      "unit_cents": 50
    }
  ]
}

Result

{
  "matched": false,
  "lines": [
    {
      "line": "1",
      "received_units": 5,
      "unreceived_billed_units": 1,
      "overordered_units": 0,
      "unit_price_delta_cents": 10,
      "issues": [
        "unreceived_units",
        "unit_price"
      ]
    },
    {
      "line": "2",
      "received_units": 0,
      "unreceived_billed_units": 1,
      "overordered_units": null,
      "unit_price_delta_cents": null,
      "issues": [
        "missing_order_line",
        "unreceived_units"
      ]
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter