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": [
    {
      "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

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

The data of the accounts endpoint