- Roadmap
- Security
- Status
- Overview
- Typescript SDK
Companies
Invite Links
Sync
Passthrough
Real Time
Webhooks
Accounting
Accounts
Bank Accounts
Bank Transactions
Bills
Bill Payments
Bill Credit Notes
Contacts
Company Info
Currencies
Documents
Expenses
Invoice Credit Notes
Invoices
Invoice Payments
Items
Journal Entries
Purchase Orders
Sales Orders
Tax Rates
Tracking Categories
Balance Sheet
Cash Flow Statements
Income Statements
Payments
Ecommerce
Overview
Server Side SDKs
Core API
Unified API
Create Account
Create an account.
The ID of the company in the accounting platform
The data of the accounts endpoint
curl --request POST \
--url https://api.rootfi.dev/v3/accounting/accounts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 123,
"data": [
{
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567"
}
]
}'
{
"data": {
"rootfi_id": 157,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"current_balance": 0,
"updated_at": "2021-08-10T14:00:00.000Z",
"status": "active",
"category": "ASSET",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567"
}
}
The Accounts Data Model is designed to streamline the management and retrieval of account-related information across various accounting platforms.
Authorizations
Body
The ID of the company in the accounting platform
The data of the accounts endpoint
Name of the account
Description of the account
The nominal code of the account
The current balance of the account
The date the account was last updated
The status of the account
The category of the account
ASSET
, EXPENSE
, LIABILITY
, EQUITY
, INCOME
, BANK
, UNKNOWN
The sub category of the account
The currency id of the account
The parent account id of the account
Response
The data of the accounts endpoint
The unique ID we assign for that data's information
The date at which the data was deleted in the accounting platform
The date at which RootFi first synced this data
The latest date at which RootFi updated this data
The ID of the company in the accounting platform
An unique custom RootFi ID made from platform's unique_id.
The ID of the data in the accounting platform.
Name of the account
Description of the account
The nominal code of the account
The current balance of the account
The date the account was last updated
The status of the account
The category of the account
ASSET
, EXPENSE
, LIABILITY
, EQUITY
, INCOME
, BANK
, UNKNOWN
The sub category of the account
The currency id of the account
The parent account id of the account
curl --request POST \
--url https://api.rootfi.dev/v3/accounting/accounts \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 123,
"data": [
{
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567"
}
]
}'
{
"data": {
"rootfi_id": 157,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"current_balance": 0,
"updated_at": "2021-08-10T14:00:00.000Z",
"status": "active",
"category": "ASSET",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567"
}
}