Link Transfer Endpoint
POST
/api/v1/budget/transfers/link
const url = 'https://example.com/api/v1/budget/transfers/link';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"transaction_ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/budget/transfers/link \ --header 'Content-Type: application/json' \ --data '{ "transaction_ids": [ 1 ] }'Link two existing transactions as one transfer. Nothing is ever linked automatically.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
TransferLinkRequest
The two existing transactions to link as one transfer.
object
transaction_ids
required
Transaction Ids
Array<integer>
Example generated
{ "transaction_ids": [ 1 ]}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
TransferOut
A transfer pair, expense leg first. transfer_group_id is null after an unlink.
object
legs
required
Legs
Array<object>
TransactionOutobject
id
required
Id
integer
user_id
required
User Id
integer
amount
required
Amount
string
transaction_type
required
Transaction Type
string
suggested_label_user_set
required
Suggested Label User Set
boolean
transaction_date
required
Transaction Date
string format: date
status
required
Status
string
transfer_peer
Any of:
TransferPeerOut
The other leg of a transfer, as seen from one leg.
null
tag_ids
required
Tag Ids
Array<integer>
splits
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example
{ "legs": [ { "status": "pending", "splits": [] } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}