links

Create a new link between transactions

Store a new link between two transactions. For this end point you need the journal_id from a transaction.

post/v1/transaction-links

Headers

X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00

Unique identifier associated with this request.

Request body

link_type_idstring string required

The link type ID to use. You can also use the link_type_name field.

link_type_namestring string

The link type name to use. You can also use the link_type_id field.

inward_idstring string required

The inward transaction transaction_journal_id for the link. This becomes the 'is paid by' transaction of the set.

outward_idstring string required

The outward transaction transaction_journal_id for the link. This becomes the 'pays for' transaction of the set.

notesstring string nullable

Optional. Some notes.

Example request

{
  "link_type_id": "5",
  "link_type_name": "Is paid by",
  "inward_id": "131",
  "outward_id": "131",
  "notes": "Some example notes"
}

Response

New transaction link stored, result in response.

Changes

No recorded changes to this endpoint across all 1 revision of this API.