---
title: "Create a new link between transactions"
method: POST
path: "/v1/transaction-links"
tags: ["links"]
---

# Create a new link between transactions

`POST /v1/transaction-links`

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

## Headers

- `X-Trace-Id` string, uuid

## Request body

- TransactionLinkStore
  - `link_type_id` string, string, required — The link type ID to use. You can also use the link_type_name field.
  - `link_type_name` string, string — The link type name to use. You can also use the link_type_id field.
  - `inward_id` string, string, required — The inward transaction transaction_journal_id for the link. This becomes the 'is paid by' transaction of the set.
  - `outward_id` string, string, required — The outward transaction transaction_journal_id for the link. This becomes the 'pays for' transaction of the set.
  - `notes` string, string, nullable — Optional. Some notes.

## Response `200`

New transaction link stored, result in response.

## Other responses

- `400` — Bad request
- `401` — Unauthenticated
- `404` — Page not found
- `422` — Validation error. The body will have the exact details.
- `500` — Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-develop.md) · [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-develop/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/firefly-iii/firefly-iii-api-develop/revisions/8a1f6472e04b/schema)
