curl --request POST \
--url https://api.rootfi.dev/v4/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": "Professional Services Account",
"description": "Account for professional consulting services",
"nominal_code": "A0123",
"current_balance": 5000,
"updated_at": "2024-01-22T05:07:31.000Z",
"status": "active",
"category": "expense",
"sub_category": "other_expense",
"currency_id": "123456",
"parent_account_id": null
}
}Create an account.
curl --request POST \
--url https://api.rootfi.dev/v4/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": "Professional Services Account",
"description": "Account for professional consulting services",
"nominal_code": "A0123",
"current_balance": 5000,
"updated_at": "2024-01-22T05:07:31.000Z",
"status": "active",
"category": "expense",
"sub_category": "other_expense",
"currency_id": "123456",
"parent_account_id": null
}
}| Integration | Field | Description |
|---|---|---|
| MS_DYNAMICS_365_FO | ChartOfAccounts | The chart of accounts to which the account belongs. |
| MYOB_BUSINESS | tax_id | The tax ID associated to the account. |
| SAGE_ZA_CLOUD_ACCOUNTING | sub_category_id | The sub-category ID associated to the account. |