curl --request POST \
--url https://api.synci.io/api/v1/finance/accounts/{accountId}/trades \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quantity": 123,
"price": 499999999999.5,
"date": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({quantity: 123, price: 499999999999.5, date: '2023-11-07T05:31:56Z'})
};
fetch('https://api.synci.io/api/v1/finance/accounts/{accountId}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.synci.io/api/v1/finance/accounts/{accountId}/trades"
payload = {
"quantity": 123,
"price": 499999999999.5,
"date": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.synci.io/api/v1/finance/accounts/{accountId}/trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quantity' => 123,
'price' => 499999999999.5,
'date' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.synci.io/api/v1/finance/accounts/{accountId}/trades"
payload := strings.NewReader("{\n \"quantity\": 123,\n \"price\": 499999999999.5,\n \"date\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Trade recorded.",
"data": {
"id": "<string>",
"financial_account_id": "<string>",
"amount": "<string>",
"currency": "<string>",
"booked": "<string>",
"counterparty": {
"financial_account_id": "<string>",
"transaction_id": "<string>",
"pairing_status": "<string>"
},
"origin": "<string>",
"import_batch_id": "<string>",
"entry_type": "<string>",
"source_transaction_id": "<string>",
"mapped_fields": "<unknown>",
"booking_date": "<string>",
"booking_datetime": "<string>",
"value_date": "<string>",
"value_datetime": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"financial_account": {
"id": "<string>",
"enabled": "<string>",
"live": "<string>",
"integrator": "<string>",
"account_category": "<string>",
"raw_type": "<string>",
"cash_balance": {
"amount": "<string>",
"currency": "<string>"
},
"total_balance": {
"amount": "<string>",
"currency": "<string>"
},
"meta": "<string>",
"name": "<string>",
"custom_name": "<string>",
"institution_name": "<string>",
"display_name": "<string>",
"currency": "<string>",
"product_name": "<string>",
"cash_account_type": "<string>",
"account_usage": "<string>",
"details": "<string>",
"details_last_synced_at": "<string>",
"transactions_last_synced_at": "<string>",
"transactions_backfill_cursor": "<string>",
"balances_last_synced_at": "<string>",
"balance": {
"currency": "<string>",
"available": "<string>",
"cleared": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"financial_connection_id": "<string>",
"financial_connection": {
"id": "<string>",
"institution_id": "<string>",
"region": "<string>",
"enabled": "<string>",
"status": "<string>",
"status_message": "<string>",
"sync_balances": "<string>",
"supports_reauthorization": true,
"supports_manage": true,
"max_historical_days": "<string>",
"access_valid_for_days": "<string>",
"consent_expires_at": "<string>",
"reference": "<string>",
"accounts_last_synced_at": "<string>",
"setup_pending": true,
"setup_renewal": true,
"activated_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"institution": {
"id": "<string>",
"integrator": "<string>",
"region": "<string>",
"country": "<string>",
"name": "<string>",
"bic": "<string>",
"external_id": "<string>",
"logo": "<string>",
"supported": "<string>",
"supports_pending_transactions": "<string>",
"supports_card_accounts": "<string>",
"max_historical_days": "<string>",
"max_access_valid_for_days": "<string>",
"supported_products": "<string>",
"category": "<string>",
"updated_at": "<string>"
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"financial_accounts": "<array>",
"financial_accounts_count": "<string>"
},
"config": {
"map_fields": {
"payee": "<string>",
"description": "<string>",
"date": "<string>"
},
"enrichment": {
"enabled": "<string>",
"provider": "<string>",
"country": "<string>"
},
"sync_start_date": "2025-01-01",
"sync_auto": "<string>",
"sync_pending_transactions": "<string>",
"pending_settlement_matching": "<string>",
"pending_settlement_max_days": "<string>",
"fuzzy_counterparty_matching": "<string>",
"fuzzy_counterparty_min_chars": "<string>",
"sync_balances": "<string>",
"sync_frequency_in_minutes": "<string>",
"fields_for_duplicate_filtering": [
"<string>"
]
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"loan": [
"<unknown>"
],
"investment": [
"<unknown>"
],
"account_number_masked": "<string>",
"bban": "<string>",
"scan": "<string>",
"iban": "<string>",
"bic": "<string>",
"owner_name": "<string>",
"owner_address": "<string>",
"linked_accounts": "<string>",
"msisdn": "<string>",
"integrator_id": "<string>",
"institution_id": "<string>",
"rules": [
{
"order": 123,
"rule": {}
}
],
"transfer_links": [
{
"id": "<string>",
"financial_account_id": "<string>",
"destination_type": "<string>",
"destination_id": "<string>",
"transfer_start_date": "2025-01-01",
"active": "<string>",
"sync_mode": "<string>",
"on_booked_change": {
"update_status": "<string>",
"update_payee": "<string>",
"update_description": "<string>",
"update_amount": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"financial_account": "<unknown>",
"destination": {
"id": "<string>",
"budget_id": "<string>",
"ynab_id": "<string>",
"name": "<string>",
"type": "<string>",
"on_budget": "<string>",
"closed": "<string>",
"note": "<string>",
"balance": "<string>",
"cleared_balance": "<string>",
"uncleared_balance": "<string>",
"transfer_payee_id": "<string>",
"direct_import_linked": "<string>",
"last_reconciled_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"budget": {
"id": "<string>",
"connection_id": "<string>",
"ynab_id": "<string>",
"enabled": "<string>",
"name": "<string>",
"currency": "<string>",
"first_month": "<string>",
"last_month": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"connection": {
"id": "<string>",
"name": "<string>",
"enabled": "<string>",
"sync_balances": "<string>",
"ynab_user_id": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"auth_url": "<string>",
"budgets": "<array>"
},
"accounts": "<array>"
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"transfer_links": "<array>"
},
"rules": [
{
"order": 123,
"rule": {}
}
]
}
],
"transfer_links_count": "<string>"
},
"failed_transfers": "<string>",
"attempted_transfers": "<string>",
"trade": {
"activity_type": "<string>",
"units": "<string>",
"price_per_unit": 123,
"execution_price_per_unit": "<string>",
"fees": "<string>",
"fx_rate": "<string>",
"external_reference_id": "<string>",
"instrument": {
"symbol": "<string>",
"name": "<string>",
"exchange": "<string>",
"type": "<string>",
"figi_code": "<string>"
},
"option": {
"ticker": "<string>",
"type": "<string>",
"strike_price": "<string>",
"expiration_date": "<string>",
"underlying_symbol": "<string>"
}
},
"enriched": {
"provider": "<string>",
"counterparty": {
"name": "<string>",
"logo_url": "<string>",
"website": "<string>",
"mccs": "<string>"
},
"intermediary": {
"name": "<string>",
"logo_url": "<string>",
"website": "<string>",
"mccs": "<string>"
},
"category_general": "<string>",
"location": {
"raw_address": "<string>",
"google_maps_url": "<string>",
"apple_maps_url": "<string>"
},
"certainty_score": "<string>",
"is_subscription": "<string>",
"is_personal": "<string>"
},
"debtor": {
"name": "<string>",
"bban": "<string>",
"iban": "<string>",
"pan": "<string>",
"masked_pan": "<string>",
"msisdn": "<string>",
"currency": "<string>",
"agent": "<string>"
},
"creditor": {
"name": "<string>",
"bban": "<string>",
"iban": "<string>",
"id": "<string>",
"pan": "<string>",
"masked_pan": "<string>",
"msisdn": "<string>",
"currency": "<string>",
"agent": "<string>"
},
"ultimate_debtor": "<string>",
"ultimate_creditor": "<string>",
"remittance_information": {
"structured": "<string>",
"structured_array": "<string>",
"unstructured": "<string>",
"unstructured_array": "<string>"
},
"additional_data_structured": "<string>",
"additional_information": "<string>",
"additional_information_structured": "<string>",
"balance_after_transaction": "<string>",
"codes": {
"bank_transaction_code": "<string>",
"merchant_category_code": "<string>",
"proprietary_bank_transaction_code": "<string>",
"purpose_code": "<string>"
},
"currency_exchange": {
"source_currency": "<string>",
"exchange_rate": "<string>",
"unit_currency": "<string>",
"target_currency": "<string>",
"quotation_date": "<string>",
"contract_identification": "<string>"
},
"external_identifiers": {
"institution_transaction_id": "<string>",
"integrator_transaction_id": "<string>",
"end_to_end_id": "<string>",
"entry_reference": "<string>",
"check_id": "<string>",
"mandate_id": "<string>"
},
"transfer_logs": [
{
"id": "<string>",
"transfer_link_id": "<string>",
"transaction_id": "<string>",
"destination_transaction_id": "<string>",
"status": "<string>",
"message": "<string>",
"undone_at": "<string>",
"undone_log_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"transfer_link": {
"id": "<string>",
"financial_account_id": "<string>",
"destination_type": "<string>",
"destination_id": "<string>",
"transfer_start_date": "2025-01-01",
"active": "<string>",
"sync_mode": "<string>",
"on_booked_change": {
"update_status": "<string>",
"update_payee": "<string>",
"update_description": "<string>",
"update_amount": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"financial_account": "<unknown>",
"destination": {
"id": "<string>",
"budget_id": "<string>",
"ynab_id": "<string>",
"name": "<string>",
"type": "<string>",
"on_budget": "<string>",
"closed": "<string>",
"note": "<string>",
"balance": "<string>",
"cleared_balance": "<string>",
"uncleared_balance": "<string>",
"transfer_payee_id": "<string>",
"direct_import_linked": "<string>",
"last_reconciled_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"budget": {
"id": "<string>",
"connection_id": "<string>",
"ynab_id": "<string>",
"enabled": "<string>",
"name": "<string>",
"currency": "<string>",
"first_month": "<string>",
"last_month": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"connection": {
"id": "<string>",
"name": "<string>",
"enabled": "<string>",
"sync_balances": "<string>",
"ynab_user_id": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"auth_url": "<string>",
"budgets": "<array>"
},
"accounts": "<array>"
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"transfer_links": "<array>"
},
"rules": [
{
"order": 123,
"rule": {}
}
]
},
"transaction": "<unknown>"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Record a trade
A buy or sell on the account: a transaction (origin MANUAL, entry_type BUY or SELL, amount the signed
cash impact in the account currency, fees included) with a trade object, like a brokerage activity. The
position’s quantity and cost basis follow, and the value rows from the trade date on are regenerated.
curl --request POST \
--url https://api.synci.io/api/v1/finance/accounts/{accountId}/trades \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quantity": 123,
"price": 499999999999.5,
"date": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({quantity: 123, price: 499999999999.5, date: '2023-11-07T05:31:56Z'})
};
fetch('https://api.synci.io/api/v1/finance/accounts/{accountId}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.synci.io/api/v1/finance/accounts/{accountId}/trades"
payload = {
"quantity": 123,
"price": 499999999999.5,
"date": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.synci.io/api/v1/finance/accounts/{accountId}/trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quantity' => 123,
'price' => 499999999999.5,
'date' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.synci.io/api/v1/finance/accounts/{accountId}/trades"
payload := strings.NewReader("{\n \"quantity\": 123,\n \"price\": 499999999999.5,\n \"date\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Trade recorded.",
"data": {
"id": "<string>",
"financial_account_id": "<string>",
"amount": "<string>",
"currency": "<string>",
"booked": "<string>",
"counterparty": {
"financial_account_id": "<string>",
"transaction_id": "<string>",
"pairing_status": "<string>"
},
"origin": "<string>",
"import_batch_id": "<string>",
"entry_type": "<string>",
"source_transaction_id": "<string>",
"mapped_fields": "<unknown>",
"booking_date": "<string>",
"booking_datetime": "<string>",
"value_date": "<string>",
"value_datetime": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"financial_account": {
"id": "<string>",
"enabled": "<string>",
"live": "<string>",
"integrator": "<string>",
"account_category": "<string>",
"raw_type": "<string>",
"cash_balance": {
"amount": "<string>",
"currency": "<string>"
},
"total_balance": {
"amount": "<string>",
"currency": "<string>"
},
"meta": "<string>",
"name": "<string>",
"custom_name": "<string>",
"institution_name": "<string>",
"display_name": "<string>",
"currency": "<string>",
"product_name": "<string>",
"cash_account_type": "<string>",
"account_usage": "<string>",
"details": "<string>",
"details_last_synced_at": "<string>",
"transactions_last_synced_at": "<string>",
"transactions_backfill_cursor": "<string>",
"balances_last_synced_at": "<string>",
"balance": {
"currency": "<string>",
"available": "<string>",
"cleared": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"financial_connection_id": "<string>",
"financial_connection": {
"id": "<string>",
"institution_id": "<string>",
"region": "<string>",
"enabled": "<string>",
"status": "<string>",
"status_message": "<string>",
"sync_balances": "<string>",
"supports_reauthorization": true,
"supports_manage": true,
"max_historical_days": "<string>",
"access_valid_for_days": "<string>",
"consent_expires_at": "<string>",
"reference": "<string>",
"accounts_last_synced_at": "<string>",
"setup_pending": true,
"setup_renewal": true,
"activated_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"institution": {
"id": "<string>",
"integrator": "<string>",
"region": "<string>",
"country": "<string>",
"name": "<string>",
"bic": "<string>",
"external_id": "<string>",
"logo": "<string>",
"supported": "<string>",
"supports_pending_transactions": "<string>",
"supports_card_accounts": "<string>",
"max_historical_days": "<string>",
"max_access_valid_for_days": "<string>",
"supported_products": "<string>",
"category": "<string>",
"updated_at": "<string>"
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"financial_accounts": "<array>",
"financial_accounts_count": "<string>"
},
"config": {
"map_fields": {
"payee": "<string>",
"description": "<string>",
"date": "<string>"
},
"enrichment": {
"enabled": "<string>",
"provider": "<string>",
"country": "<string>"
},
"sync_start_date": "2025-01-01",
"sync_auto": "<string>",
"sync_pending_transactions": "<string>",
"pending_settlement_matching": "<string>",
"pending_settlement_max_days": "<string>",
"fuzzy_counterparty_matching": "<string>",
"fuzzy_counterparty_min_chars": "<string>",
"sync_balances": "<string>",
"sync_frequency_in_minutes": "<string>",
"fields_for_duplicate_filtering": [
"<string>"
]
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"loan": [
"<unknown>"
],
"investment": [
"<unknown>"
],
"account_number_masked": "<string>",
"bban": "<string>",
"scan": "<string>",
"iban": "<string>",
"bic": "<string>",
"owner_name": "<string>",
"owner_address": "<string>",
"linked_accounts": "<string>",
"msisdn": "<string>",
"integrator_id": "<string>",
"institution_id": "<string>",
"rules": [
{
"order": 123,
"rule": {}
}
],
"transfer_links": [
{
"id": "<string>",
"financial_account_id": "<string>",
"destination_type": "<string>",
"destination_id": "<string>",
"transfer_start_date": "2025-01-01",
"active": "<string>",
"sync_mode": "<string>",
"on_booked_change": {
"update_status": "<string>",
"update_payee": "<string>",
"update_description": "<string>",
"update_amount": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"financial_account": "<unknown>",
"destination": {
"id": "<string>",
"budget_id": "<string>",
"ynab_id": "<string>",
"name": "<string>",
"type": "<string>",
"on_budget": "<string>",
"closed": "<string>",
"note": "<string>",
"balance": "<string>",
"cleared_balance": "<string>",
"uncleared_balance": "<string>",
"transfer_payee_id": "<string>",
"direct_import_linked": "<string>",
"last_reconciled_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"budget": {
"id": "<string>",
"connection_id": "<string>",
"ynab_id": "<string>",
"enabled": "<string>",
"name": "<string>",
"currency": "<string>",
"first_month": "<string>",
"last_month": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"connection": {
"id": "<string>",
"name": "<string>",
"enabled": "<string>",
"sync_balances": "<string>",
"ynab_user_id": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"auth_url": "<string>",
"budgets": "<array>"
},
"accounts": "<array>"
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"transfer_links": "<array>"
},
"rules": [
{
"order": 123,
"rule": {}
}
]
}
],
"transfer_links_count": "<string>"
},
"failed_transfers": "<string>",
"attempted_transfers": "<string>",
"trade": {
"activity_type": "<string>",
"units": "<string>",
"price_per_unit": 123,
"execution_price_per_unit": "<string>",
"fees": "<string>",
"fx_rate": "<string>",
"external_reference_id": "<string>",
"instrument": {
"symbol": "<string>",
"name": "<string>",
"exchange": "<string>",
"type": "<string>",
"figi_code": "<string>"
},
"option": {
"ticker": "<string>",
"type": "<string>",
"strike_price": "<string>",
"expiration_date": "<string>",
"underlying_symbol": "<string>"
}
},
"enriched": {
"provider": "<string>",
"counterparty": {
"name": "<string>",
"logo_url": "<string>",
"website": "<string>",
"mccs": "<string>"
},
"intermediary": {
"name": "<string>",
"logo_url": "<string>",
"website": "<string>",
"mccs": "<string>"
},
"category_general": "<string>",
"location": {
"raw_address": "<string>",
"google_maps_url": "<string>",
"apple_maps_url": "<string>"
},
"certainty_score": "<string>",
"is_subscription": "<string>",
"is_personal": "<string>"
},
"debtor": {
"name": "<string>",
"bban": "<string>",
"iban": "<string>",
"pan": "<string>",
"masked_pan": "<string>",
"msisdn": "<string>",
"currency": "<string>",
"agent": "<string>"
},
"creditor": {
"name": "<string>",
"bban": "<string>",
"iban": "<string>",
"id": "<string>",
"pan": "<string>",
"masked_pan": "<string>",
"msisdn": "<string>",
"currency": "<string>",
"agent": "<string>"
},
"ultimate_debtor": "<string>",
"ultimate_creditor": "<string>",
"remittance_information": {
"structured": "<string>",
"structured_array": "<string>",
"unstructured": "<string>",
"unstructured_array": "<string>"
},
"additional_data_structured": "<string>",
"additional_information": "<string>",
"additional_information_structured": "<string>",
"balance_after_transaction": "<string>",
"codes": {
"bank_transaction_code": "<string>",
"merchant_category_code": "<string>",
"proprietary_bank_transaction_code": "<string>",
"purpose_code": "<string>"
},
"currency_exchange": {
"source_currency": "<string>",
"exchange_rate": "<string>",
"unit_currency": "<string>",
"target_currency": "<string>",
"quotation_date": "<string>",
"contract_identification": "<string>"
},
"external_identifiers": {
"institution_transaction_id": "<string>",
"integrator_transaction_id": "<string>",
"end_to_end_id": "<string>",
"entry_reference": "<string>",
"check_id": "<string>",
"mandate_id": "<string>"
},
"transfer_logs": [
{
"id": "<string>",
"transfer_link_id": "<string>",
"transaction_id": "<string>",
"destination_transaction_id": "<string>",
"status": "<string>",
"message": "<string>",
"undone_at": "<string>",
"undone_log_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"transfer_link": {
"id": "<string>",
"financial_account_id": "<string>",
"destination_type": "<string>",
"destination_id": "<string>",
"transfer_start_date": "2025-01-01",
"active": "<string>",
"sync_mode": "<string>",
"on_booked_change": {
"update_status": "<string>",
"update_payee": "<string>",
"update_description": "<string>",
"update_amount": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"financial_account": "<unknown>",
"destination": {
"id": "<string>",
"budget_id": "<string>",
"ynab_id": "<string>",
"name": "<string>",
"type": "<string>",
"on_budget": "<string>",
"closed": "<string>",
"note": "<string>",
"balance": "<string>",
"cleared_balance": "<string>",
"uncleared_balance": "<string>",
"transfer_payee_id": "<string>",
"direct_import_linked": "<string>",
"last_reconciled_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"budget": {
"id": "<string>",
"connection_id": "<string>",
"ynab_id": "<string>",
"enabled": "<string>",
"name": "<string>",
"currency": "<string>",
"first_month": "<string>",
"last_month": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"connection": {
"id": "<string>",
"name": "<string>",
"enabled": "<string>",
"sync_balances": "<string>",
"ynab_user_id": "<string>",
"last_synced_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"auth_url": "<string>",
"budgets": "<array>"
},
"accounts": "<array>"
},
"health": {
"status": "<string>",
"integrator_message": "<string>",
"failure_count": "<string>",
"transient_message": "<string>",
"transient_failure_count": "<string>",
"last_attempt_at": "<string>"
},
"transfer_links": "<array>"
},
"rules": [
{
"order": 123,
"rule": {}
}
]
},
"transaction": "<unknown>"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The financial account ID
Body
BUY or SELL.
BUY, SELL x <= 999999999999Price per unit in the account currency.
0 <= x <= 999999999999The trade date. Not in the future, not before the position was opened.
The security traded, by catalogue id (from the positions list or the securities search). A buy of a security the account does not hold yet opens the position. Either this or provider_symbol.
Alternatively the provider symbol of a search result not in the catalogue yet: verified and created before the trade is posted (422 with reason when it cannot be priced).
32Commission and other costs, in the account currency. Defaults to 0.
0 <= x <= 999999999999Shown as the row's description; defaults to "Bought 10 AAPL at 150".
500