curl --request POST \
--url https://api.rootfi.dev/accounting/items/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"quantity_on_hand": "asc"
},
"filter": {
"name": {
"eq": "Toy Car"
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 308443,
"rootfi_company_id": 1760,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_updated_at": "2023-10-26T16:14:56.257Z",
"rootfi_created_at": "2023-10-26T16:14:56.261Z",
"platform_id": "1234567890123456789",
"name": "Toy Car",
"description": "Test Item description",
"type": "INVENTORY",
"code": null,
"quantity_on_hand": 3,
"bill_item": {
"account_id": "80",
"unit_price": 10
},
"invoice_item": {
"account_id": "79",
"unit_price": 10
},
"is_bill_item": true,
"is_invoice_item": true,
"status": "ACTIVE",
"updated_at": "2023-05-03T00:00:00.000Z"
}
],
"total_count": 1
},
"request_timestamp": "2023-10-26T16:14:56.261Z",
"response_timestamp": "2023-10-26T16:14:56.261Z",
"request_id": "f5b0c0c0-5b0c-11ec-8d3d-0242ac130003"
}
Retrieve Items from the database based on the ID
curl --request POST \
--url https://api.rootfi.dev/accounting/items/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"quantity_on_hand": "asc"
},
"filter": {
"name": {
"eq": "Toy Car"
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 308443,
"rootfi_company_id": 1760,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_updated_at": "2023-10-26T16:14:56.257Z",
"rootfi_created_at": "2023-10-26T16:14:56.261Z",
"platform_id": "1234567890123456789",
"name": "Toy Car",
"description": "Test Item description",
"type": "INVENTORY",
"code": null,
"quantity_on_hand": 3,
"bill_item": {
"account_id": "80",
"unit_price": 10
},
"invoice_item": {
"account_id": "79",
"unit_price": 10
},
"is_bill_item": true,
"is_invoice_item": true,
"status": "ACTIVE",
"updated_at": "2023-05-03T00:00:00.000Z"
}
],
"total_count": 1
},
"request_timestamp": "2023-10-26T16:14:56.261Z",
"response_timestamp": "2023-10-26T16:14:56.261Z",
"request_id": "f5b0c0c0-5b0c-11ec-8d3d-0242ac130003"
}
curl --request POST \
--url https://api.rootfi.dev/accounting/items/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"quantity_on_hand": "asc"
},
"filter": {
"name": {
"eq": "Toy Car"
}
}
}'
The response is of type object
.