Saltar al contenido

invoiceMatches

Módulo Procurement · 4 operaciones

List three-way match rows

GET/invoice-matches

A three-way match of PO, receipt and invoice. A mismatch is never auto-approved. Returns a cursor page of three-way match rows the caller may see. The default order is `created_at` ascending. Supports sparse fieldsets and the filter grammar.

Create a three-way match

POST/invoice-matches

A three-way match of PO, receipt and invoice. A mismatch is never auto-approved. Creates a three-way match. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.

Get a three-way match

GET/invoice-matches/{id}

A three-way match of PO, receipt and invoice. A mismatch is never auto-approved. Returns one three-way match with its `ETag`. A three-way match the caller may not see returns 404.

Accept an invoice mismatch

POST/invoice-matches/{id}/resolve

Records why a mismatch is accepted. Only someone other than the person who recorded the match may accept it, once; a refusal returns 422 and names the rule. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.