curl --request POST \
--url https://api.rootfi.dev/accounting/company_info/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"base_currency": "asc"
},
"filter": {
"name": {
"eq": "Rootfi Technologies Pvt Ltd"
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 3732,
"rootfi_company_id": 1672,
"rootfi_organisation_id": 1,
"rootfi_updated_at": "2023-10-25T13:39:29.649Z",
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_created_at": "2023-10-25T13:39:29.650Z",
"platform_id": "8635772_SB1",
"name": "Rootfi Technologies Pvt Ltd",
"legal_name": "Rootfi Technologies Pvt Ltd",
"tax_number": null,
"registration_number": null,
"base_currency": "GBP",
"fiscal_start_at": "2000-12-31T18:30:00.000Z",
"org_created_at": null,
"updated_at": "2023-03-31T03:34:00.000Z"
}
],
"total_count": 1
},
"request_timestamp": "2023-10-25T13:39:29.650Z",
"response_timestamp": "2023-10-25T13:39:29.650Z",
"request_id": "b1b9c0a0-4b1a-11ec-9b2b-0242ac130003"
}
Retrieve company info from the database based on the ID
curl --request POST \
--url https://api.rootfi.dev/accounting/company_info/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"base_currency": "asc"
},
"filter": {
"name": {
"eq": "Rootfi Technologies Pvt Ltd"
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 3732,
"rootfi_company_id": 1672,
"rootfi_organisation_id": 1,
"rootfi_updated_at": "2023-10-25T13:39:29.649Z",
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_created_at": "2023-10-25T13:39:29.650Z",
"platform_id": "8635772_SB1",
"name": "Rootfi Technologies Pvt Ltd",
"legal_name": "Rootfi Technologies Pvt Ltd",
"tax_number": null,
"registration_number": null,
"base_currency": "GBP",
"fiscal_start_at": "2000-12-31T18:30:00.000Z",
"org_created_at": null,
"updated_at": "2023-03-31T03:34:00.000Z"
}
],
"total_count": 1
},
"request_timestamp": "2023-10-25T13:39:29.650Z",
"response_timestamp": "2023-10-25T13:39:29.650Z",
"request_id": "b1b9c0a0-4b1a-11ec-9b2b-0242ac130003"
}
curl --request POST \
--url https://api.rootfi.dev/accounting/company_info/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"base_currency": "asc"
},
"filter": {
"name": {
"eq": "Rootfi Technologies Pvt Ltd"
}
}
}'
The response is of type object
.