curl --request POST \
--url https://api.rootfi.dev/v4/accounting/bank_transactions \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"data": [
{
"contact_id": "123456",
"account_id": "123456",
"from_account_id": "123456",
"to_account_id": "123456",
"currency_id": "123456",
"amount": 1000,
"type": "creditcard",
"debit_or_credit": "DEBIT",
"status": "Test",
"currency_rate": 1000,
"transaction_date": "2024-01-25T09:00:00Z",
"updated_at": "2024-01-25T09:00:00Z"
}
]
}
'{
"data": {
"rootfi_id": 123,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-25T09:00:00Z",
"rootfi_updated_at": "2024-01-25T09:30:00Z",
"rootfi_company_id": 456,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"contact_id": "123456",
"account_id": "123456",
"from_account_id": "123456",
"to_account_id": "123456",
"currency_id": "123456",
"amount": 1000,
"type": "creditcard",
"debit_or_credit": "DEBIT",
"status": "Test",
"currency_rate": 1000,
"transaction_date": "2024-01-25T09:00:00Z",
"updated_at": "2024-01-25T09:00:00Z"
}
}Create a new bank transaction.
curl --request POST \
--url https://api.rootfi.dev/v4/accounting/bank_transactions \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"data": [
{
"contact_id": "123456",
"account_id": "123456",
"from_account_id": "123456",
"to_account_id": "123456",
"currency_id": "123456",
"amount": 1000,
"type": "creditcard",
"debit_or_credit": "DEBIT",
"status": "Test",
"currency_rate": 1000,
"transaction_date": "2024-01-25T09:00:00Z",
"updated_at": "2024-01-25T09:00:00Z"
}
]
}
'{
"data": {
"rootfi_id": 123,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-25T09:00:00Z",
"rootfi_updated_at": "2024-01-25T09:30:00Z",
"rootfi_company_id": 456,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"contact_id": "123456",
"account_id": "123456",
"from_account_id": "123456",
"to_account_id": "123456",
"currency_id": "123456",
"amount": 1000,
"type": "creditcard",
"debit_or_credit": "DEBIT",
"status": "Test",
"currency_rate": 1000,
"transaction_date": "2024-01-25T09:00:00Z",
"updated_at": "2024-01-25T09:00:00Z"
}
}| Integration | Field | Description |
|---|---|---|
| ZOHO_BOOKS | from_account_id | The ID of the account from which the amount is transferred. |
| XERO | from_account_id | The ID of the account from which the amount is transferred. |
| FRESH_BOOKS | reference | The reference for the transaction. |
| MYOB_BUSINESS | tax_id | The ID of the tax applied to the transaction. |
| SAGE_CLOUD_ACCOUNTING | reference | The reference for the transaction. |