Update match
Update match status or allocated amount.
Partial update. This call cannot change which invoice or bank line is linked. It only updates matchedAmount, status, or metadata on an existing row, and the path is the match UUID from List, Create, or a webhook — not from the product.
status cancelled soft-cancels the match without deleting the row. pending_review can be confirmed or rejected. Changing matchedAmount on an active match recalculates invoice and transaction remaining amounts.
To change the amount on the same pair, list the match then send matchedAmount. To confirm a suggestion, list pending_review then send status confirmed. To deny a suggestion, Create match with status rejected and the invoice number plus transaction code. To undo an auto-match, Reconcile transaction with unlink_all on the transaction code. To point the payment at another invoice, unlink then Create match with the new invoice number. Do not use Reconcile save; that is the Invunion workbench.
See also
- Matches . Which call to use for each change.
- List matches (GET
/api/v1/matches). Get the UUID by invoice number and transaction code. - Create match (POST
/api/v1/matches). Allocate, or deny a pair with status rejected. - Reconcile transaction (POST
/api/v1/transactions/:code/reconcile). Undo every live match on a bank line with unlink_all. - Cancel match (DELETE
/api/v1/matches/:id). Permanently delete the row.
Path parameters
| Name | Type | Required |
|---|---|---|
idMatch UUID. Example: 1c9e6679-7425-40de-944b-e07fc1f90ae7 | string No maximum | Required |
Body parameters
| Name | Type | Required |
|---|---|---|
statusNew match status. | string No maximum | Optional |
Allowed values activecancelledconfirmedrejected | ||
matchedAmountNew positive allocated amount. Example: 800 | number | Optional |
metadataJSON object. At most 32 keys, nested depth 3, 8 KB serialized, and 64-character key names. Keys __proto__, constructor, and prototype are rejected. Example: {"reason":"partial bank fee"} | object | Optional |
Errors
This operation can return the following errors in addition to generic HTTP failures.
| Error | HTTP code | Description |
|---|---|---|
Missing Bearer token | 401 | The Authorization header is missing or is not a Bearer token. |
Invalid or revoked API key | 401 | The API key is unknown, malformed, expired, or has been revoked. |
API key is missing scope matches:write | 403 | The key does not include matches:write. A write scope does not imply the matching read scope. |
Too many requests, please try again later | 429 | Wait and retry. The Retry-After header is the number of seconds to wait. |
Validation failed | 400 | The body failed schema validation. details lists field and message. |
Match not found | 404 | No match with this UUID exists in the authenticated tenant. |
Internal server error | 500 | Unexpected server error. The JSON body includes correlationId. Retry with backoff. |