curl --request POST \
--url https://integrate.rootfi.dev/api/write/accounts \
--header 'Content-Type: application/json' \
--header 'api_key: <api_key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567",
"raw_data": {}
}
]
}'
{
"data": {
"status": "SUCCESS",
"upload_job_id": "xQm2K441VosP8W4",
"data": [
{
"job_id": "aXI9pUDA5T7E2LS",
"status": "success",
"response": {
"platform_id": "1234567890123456789",
"currency_id": null,
"parent_account_id": null,
"nominal_code": "Test Account",
"name": "Test Account",
"description": "Test Description",
"sub_category": "long_term_liability",
"category": "LIABILITY",
"status": "ACTIVE",
"updated_at": "2021-09-28T15:00:00.000Z",
"raw_data": {
"platform_id": "1234567890123456789",
"nominal_code": "Test Account",
"name": "Test Account",
"description": "Test Description",
"category": "LIABILITY",
"sub_category": "long_term_liability",
"status": "ACTIVE"
}
},
"error": null
}
]
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}Add an account.
curl --request POST \
--url https://integrate.rootfi.dev/api/write/accounts \
--header 'Content-Type: application/json' \
--header 'api_key: <api_key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567",
"raw_data": {}
}
]
}'
{
"data": {
"status": "SUCCESS",
"upload_job_id": "xQm2K441VosP8W4",
"data": [
{
"job_id": "aXI9pUDA5T7E2LS",
"status": "success",
"response": {
"platform_id": "1234567890123456789",
"currency_id": null,
"parent_account_id": null,
"nominal_code": "Test Account",
"name": "Test Account",
"description": "Test Description",
"sub_category": "long_term_liability",
"category": "LIABILITY",
"status": "ACTIVE",
"updated_at": "2021-09-28T15:00:00.000Z",
"raw_data": {
"platform_id": "1234567890123456789",
"nominal_code": "Test Account",
"name": "Test Account",
"description": "Test Description",
"category": "LIABILITY",
"sub_category": "long_term_liability",
"status": "ACTIVE"
}
},
"error": null
}
]
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}curl --request POST \
--url https://integrate.rootfi.dev/api/write/accounts \
--header 'Content-Type: application/json' \
--header 'api_key: <api_key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Account",
"description": "Rootfi Test Account",
"nominal_code": "123456",
"sub_category": "Test",
"currency_id": "123456",
"parent_account_id": "1234567",
"raw_data": {}
}
]
}'
The company ID
1
Show child attributes
The Accounting Platform’s unique ID for the currency
The platform ID of the parent account
Reference given to each account for a business. It ensures money is allocated to the correct account.
The name of the account
Description of the account
The sub category of the account
Current balance of the account
A JSON containing fields that you can directly pass to the accounting platform.
Show child attributes
The status of the job.
SUCCESS, FAILED, CREATED, RUNNING The ID of the job.
Show child attributes
The ID of the job.
The status of the job.
success, failed Show child attributes
The ID that the accounting platform uses to identify this account
The Accounting Platform’s unique ID for the currency
The platform ID of the parent account
Reference given to each account for a business. It ensures money is allocated to the correct account.
The name of the account
Description of the account
The sub category of the account
Current balance of the account
The category of the account.
ASSET, EXPENSE, LIABILITY, EQUITY, INCOME, BANK, UNKNOWN The status of the account.
ACTIVE, ARCHIVED, UNKNOWN Date the record was last updated in the accounting platform.
The raw JSON response we get from the accounting platform for that data
The time at which the request was received by the server
The time at which the response was sent by the server
The unique ID of the request