← All changelog entries

Line-item comparison for invoices against purchase orders and GRNs

POST /api/v1/comparison/compare matches invoice rows to PO or GRN rows asynchronously and delivers the pairs to your webhook.

Send an invoice’s line items to POST /api/v1/comparison/compare with the purchase order’s (typeId 1) or the goods receipt note’s (typeId 2). The result pairs each invoice row with its counterpart, lists the unmatched rows on both sides, and states the relationship of each pair, such as one-to-one, subset, or partial-receipt. Every row must carry id, line_id, or uuid so a match can be mapped back to your records.