POST
/
accounting
/
accounts
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": [
    {
      "currency_id": "123456",
      "description": "Rootfi Test Account",
      "name": "Rootfi Test Account",
      "nominal_code": "123456",
      "parent_account_id": "1234567",
      "sub_category": "Test"
    }
  ]
}'
{
  "data": {
    "category": "ASSET",
    "currency_id": "123456",
    "current_balance": 0,
    "description": "Rootfi Test Account",
    "name": "Rootfi Test Account",
    "nominal_code": "123456",
    "parent_account_id": "1234567",
    "platform_id": "123456",
    "rootfi_company_id": 1089,
    "rootfi_created_at": "2024-01-22T05:07:31.465Z",
    "rootfi_id": 157,
    "rootfi_updated_at": "2024-01-22T05:07:31.000Z",
    "status": "active",
    "sub_category": "Test",
    "updated_at": "2021-08-10T14:00:00.000Z"
  }
}

The Accounts Data Model is designed to streamline the management and retrieval of account-related information across various accounting platforms.

Authorizations

api_key
string
headerrequired

Body

application/json
company_id
integer
required

The ID of the company in the accounting platform

data
object[]
required

The data of the accounts endpoint

Response

200 - application/json
data
object
required