latestSwagger 2.02026-08-20196638916.1 KB

23d8982b533d

Data v1.Transaction
ENTERPRISE

Link transactions

(DEPRECATED) Link two transactions, creating a transaction part for each transaction and netting out the amounts. The transactions are required to have different signs (i.e. one income and one expense). If the first transaction is -300 and the counterpart is 100, the common disposable amount is 100 and result of that is a dispensable amount of -200.

post/api/v1/transactions/{id}/link/{counterpartTransactionId}

Path parameters

idstring required

The ID of the first transaction to link.

counterpartTransactionIdstring required

The ID of the other transaction (the counterpart) to link.

Request body

amountnumber double

The amount of the transaction part. Must be same sign as the transaction. If not specified the common disposable amount will be used.

Example request

{
  "amount": -90
}

Response

The transactions were successfully linked and returned.

counterpartTransactionData20v1Transaction required— unresolved $ref
transactionData20v1Transaction required— unresolved $ref