Skip to main content

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

The Bulk Action response

Response Headers
    X-MINIMUM-CLIENT-VERSION

    The API version

    X-RateLimit-Remaining

    The number of requests left for the time window.

    X-RateLimit-Limit

    The total number of requests in a given time window.