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.
Body
JSON array with the necessary link type information or key=value pairs. See the model for the exact specifications.
link_type_idstringrequiredwrite onlyThe link type ID to use. You can also use the link_type_name field.
5link_type_namestringwrite onlyThe link type name to use. You can also use the link_type_id field.
Is paid byinward_idstringrequiredThe inward transaction transaction_journal_id for the link. This becomes the 'is paid by' transaction of the set.
131outward_idstringrequiredThe outward transaction transaction_journal_id for the link. This becomes the 'pays for' transaction of the set.
131notesstring | nullOptional. Some notes.
Some example notesParameters
X-Trace-Idstring<uuid>headerUnique identifier associated with this request.
Response
New transaction link stored, result in response.
Bad request
Unauthenticated
Page not found
Validation error. The body will have the exact details.
Internal exception
Authorization
firefly_iii_authoauth2OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.
local_bearer_authhttp (bearer)A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.
