Match transactions
POST/api/v1/bank_transactions/match
Matching invoices or a payment to a bank transactions.
The API expects the id of the transaction along with either a comma separated list of invoice ids OR the payment id to associate the transaction to.
Example for matching a transaction to two invoices:
{"transactions":[{"id":"olejRl5ejN","invoice_ids":"JxboYBLegw,JxboYBLeXX"}]}
Example for matching a transaction and a paymente:
{"transactions":[{"id":"olejRl5ejN","payment_id":"JxboYBLeXf"}]}
Matching expenses.
You can match an existing expense within Invoice Ninja - or - create a new expense using the following:
{"transactions":[{"id":"open5pld7A","vendor_id":"gl9avJnaG1","ninja_category_id":""}]}
To match to an existing expense:
{"transactions":[{"id":"Jxbo2qKagw","expense_id":"7N1aMM1aWm"}]}
Request
Responses
- 200
- 401
- 403
- 422
- 429
- 5XX
- default
The Bulk Action response
Response Headers
The API version
The number of requests left for the time window.
The total number of requests in a given time window.
Authentication error
Authorization error
Validation error
Rate Limit Exceeded
Server error
Unexpected Error