POST
/
accounting
/
items
/
all
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": [
      {
        "bill_item": {
          "account_id": "80",
          "unit_price": 10
        },
        "code": null,
        "description": "Test Item description",
        "invoice_item": {
          "account_id": "79",
          "unit_price": 10
        },
        "is_bill_item": true,
        "is_invoice_item": true,
        "name": "Toy Car",
        "platform_id": "1234567890123456789",
        "quantity_on_hand": 3,
        "rootfi_company_id": 1760,
        "rootfi_created_at": "2023-10-26T16:14:56.261Z",
        "rootfi_id": 308443,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2023-10-26T16:14:56.257Z",
        "status": "ACTIVE",
        "type": "INVENTORY",
        "updated_at": "2023-05-03T00:00:00.000Z"
      }
    ],
    "total_count": 1
  },
  "request_id": "f5b0c0c0-5b0c-11ec-8d3d-0242ac130003",
  "request_timestamp": "2023-10-26T16:14:56.261Z",
  "response_timestamp": "2023-10-26T16:14:56.261Z"
}

The Items Data Model is designed to simplify the management and retrieval of item-related information across various accounting platforms.

Authorizations

api_key
string
headerrequired

Body

application/json
filter
object
orderBy
object
skip
integer | null
take
integer | null

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server