portfolio_id - Portfolio IDaccount_id - Source account IDkind - "incoming" or "outgoing"amount_cents - Amount in centsamount_currency - Currency code (e.g., "IDR", "MYR", "USD")category_id - Category ID (required for all transactions)description, notes, reference_number, transaction_datedestination_amount_cents, destination_currency, exchange_rate (for multi-currency)transfer_type: "internal" and destination_account_idtransfer_type: "external" and either:external_account_id (use existing), ORexternal_name + external_account_number + external_bank_name (create new)curl --location '/api/v1/transactions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"portfolio_id": "portfolio-uuid",
"account_id": "account-uuid",
"kind": "outgoing",
"amount_cents": 150000,
"amount_currency": "IDR",
"category_id": "category-uuid",
"description": "Lunch at restaurant",
"transaction_date": "2024-01-15"
}'{
"success": true,
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"kind": "incoming",
"amount": {
"cents": 100000,
"currency": "IDR"
},
"description": "Grocery shopping at supermarket",
"notes": "string",
"reference_number": "string",
"transaction_date": "2019-08-24T14:15:22.123Z",
"account": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"label": "string",
"kind": "string"
},
"category": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"icon": "string",
"color": "string"
},
"is_transfer": true,
"transfer_type": "internal",
"transfer_details": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"external": true,
"external_destination": "string",
"external_name": "John Doe",
"external_account_number": "1234567890",
"source_amount": {
"cents": 100000,
"currency": "IDR"
},
"destination_amount": {
"cents": 100000,
"currency": "IDR"
},
"exchange_rate": 0,
"fee": {
"cents": 100000,
"currency": "IDR"
}
},
"attachments": [
{
"id": "string",
"filename": "string",
"content_type": "string",
"byte_size": 0,
"url": "string"
}
],
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}
}