Recompute the three-way match for a bill

POST /api/v1/inventory/accounts-payable/{bill_id}/three-way-match

Forces a fresh PO -> Receipt -> Invoice comparison for the bill and writes the outcome onto bill.match_status and the variance columns. Idempotent.

Operation ID: recompute_three_way_match_api_v1_inventory_accounts_payable__bill_id__three_way_match_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

bill_id string required

Query

qty_tolerance integer default: 0

Unit tolerance before a qty drift is flagged.

price_tolerance_cents integer default: 500

Cents tolerance before a price drift is flagged.

price_tolerance_pct number default: 0.01

Percent-of-PO-total tolerance (combined with cents floor).

Responses

201 Successful Response

match_status string required
variance_qty integer
variance_amount_cents integer
reason string
lines array · ThreeWayMatchLineDrift ThreeWayMatchLineDrift
4 fields
variant_id string required
ordered_qty integer required
received_qty integer required
variance integer required

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object