curl --request POST \
--url https://api.rootfi.dev/accounting/tracking_categories/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"name": "asc"
},
"filter": {
"name": {
"eq": "Test Name"
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 123,
"rootfi_company_id": 123,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "QUICKBOOKS_SANDBOX",
"rootfi_updated_at": "2023-10-26T16:14:59.673Z",
"rootfi_created_at": "2023-10-26T16:14:59.685Z",
"platform_id": "5000000000000279513",
"parent_id": "5000000000000279512",
"name": "Test Name",
"status": "ACTIVE",
"has_children": false,
"updated_at": "2023-01-17T00:00:00.000Z",
"raw_data": {
"Id": "5000000000000279513",
"Name": "City in France",
"Active": true,
"domain": "QBO",
"sparse": false,
"MetaData": {
"CreateTime": "2023-04-11T02:52:31-07:00",
"LastUpdatedTime": "2023-04-11T02:52:31-07:00"
},
"SubClass": true,
"ParentRef": {
"value": "5000000000000279512"
},
"SyncToken": "0",
"FullyQualifiedName": "France:City in France"
}
}
],
"total_count": 1
},
"request_timestamp": "2023-10-27T05:05:28.522Z",
"response_timestamp": "2023-10-27T05:05:28.522Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
Retrieve tracking categories from the database based on the ID
curl --request POST \
--url https://api.rootfi.dev/accounting/tracking_categories/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"name": "asc"
},
"filter": {
"name": {
"eq": "Test Name"
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 123,
"rootfi_company_id": 123,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "QUICKBOOKS_SANDBOX",
"rootfi_updated_at": "2023-10-26T16:14:59.673Z",
"rootfi_created_at": "2023-10-26T16:14:59.685Z",
"platform_id": "5000000000000279513",
"parent_id": "5000000000000279512",
"name": "Test Name",
"status": "ACTIVE",
"has_children": false,
"updated_at": "2023-01-17T00:00:00.000Z",
"raw_data": {
"Id": "5000000000000279513",
"Name": "City in France",
"Active": true,
"domain": "QBO",
"sparse": false,
"MetaData": {
"CreateTime": "2023-04-11T02:52:31-07:00",
"LastUpdatedTime": "2023-04-11T02:52:31-07:00"
},
"SubClass": true,
"ParentRef": {
"value": "5000000000000279512"
},
"SyncToken": "0",
"FullyQualifiedName": "France:City in France"
}
}
],
"total_count": 1
},
"request_timestamp": "2023-10-27T05:05:28.522Z",
"response_timestamp": "2023-10-27T05:05:28.522Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
curl --request POST \
--url https://api.rootfi.dev/accounting/tracking_categories/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"name": "asc"
},
"filter": {
"name": {
"eq": "Test Name"
}
}
}'
The response is of type object
.