bank_transactions

Match transactions

Changed on

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"}]}

post/api/v1/bank_transactions/match

Request

Query parameters

indexstring
Example:user

Replaces the default response index from data to a user specific string

ie.

  ?index=new_index

response is wrapped

  {
    'new_index' : [
      .....  
    ]
  }

Headers

X-API-TOKENstring required
Example:TOKEN

The API token to be used for authentication

X-Requested-Withstring required
Example:XMLHttpRequest

Used to send the XMLHttpRequest header

Request body

integer[] required

Response

The Bulk Action response

Changes