3-way match

3-way match

ParseRail compares an invoice, purchase order, and receipt. It marks the documents as matched, partial, or mismatched, and flags and sizes every discrepancy.

Cost: 10 credits ($0.10) — charged only on success.

post/v1/po-match

Request

  • Base URL: https://api.thecompound.tech
  • URL: https://api.thecompound.tech/v1/po-match
  • Auth: HTTP bearer

Headers

ParseRail-Dry-Run'1' | 'true'

Send 1 to dry-run the call. ParseRail runs auth, the throttle, body validation and the balance precheck. It returns 200 with the cost and the status a live call would get. No model runs and nothing is charged, so a key with a zero balance works. Dry runs count against the per-key rate limit.

Idempotency-Keystring

Key for one logical operation. Same body replays the result for 24 hours; a different body with the same key returns 409.

Request body

invoicestring required

The invoice — structured JSON (e.g. /v1/invoice output) or raw text.

purchaseOrderstring required

Provide the PO as structured JSON or raw text.

receiptstring

Provide an optional goods receipt or delivery note for a 3-way match.

tolerancePctnumber

Set the price variance tolerance in percent. The default is 2.

Response

The call succeeded. The response contains result fields and a usage envelope. With ParseRail-Dry-Run: 1 the body is a DryRun object instead.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.