curl --request PUT \
--url https://api.rootfi.dev/v3/accounting/items \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"data": [
{
"platform_id": "a979d4e1-9795-ee11-be36-6045bdc629b7",
"name": "Brian Vega",
"description": null,
"updated_at": "2023-12-08T00:00:00.000Z",
"status": "ACTIVE",
"bill_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"code": "9837",
"invoice_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"is_bill_item": true,
"is_invoice_item": true,
"type": "INVENTORY",
"quantity_on_hand": 10
}
]
}
'{
"data": {
"rootfi_id": 32302,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-24T11:12:00.315Z",
"rootfi_updated_at": "2024-01-24T11:12:00.000Z",
"rootfi_company_id": 1109,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"name": "Brian Vega",
"description": null,
"updated_at": "2023-12-08T00:00:00.000Z",
"status": "ACTIVE",
"bill_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"code": "9837",
"invoice_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"is_bill_item": true,
"is_invoice_item": true,
"type": "INVENTORY",
"quantity_on_hand": 10
}
}Update an item.
curl --request PUT \
--url https://api.rootfi.dev/v3/accounting/items \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"data": [
{
"platform_id": "a979d4e1-9795-ee11-be36-6045bdc629b7",
"name": "Brian Vega",
"description": null,
"updated_at": "2023-12-08T00:00:00.000Z",
"status": "ACTIVE",
"bill_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"code": "9837",
"invoice_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"is_bill_item": true,
"is_invoice_item": true,
"type": "INVENTORY",
"quantity_on_hand": 10
}
]
}
'{
"data": {
"rootfi_id": 32302,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-24T11:12:00.315Z",
"rootfi_updated_at": "2024-01-24T11:12:00.000Z",
"rootfi_company_id": 1109,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"name": "Brian Vega",
"description": null,
"updated_at": "2023-12-08T00:00:00.000Z",
"status": "ACTIVE",
"bill_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"code": "9837",
"invoice_item": {
"tax_id": "123456",
"account_id": "123456",
"unit_price": 123.45,
"description": "Test Item"
},
"is_bill_item": true,
"is_invoice_item": true,
"type": "INVENTORY",
"quantity_on_hand": 10
}
}The ID of the company in the accounting platform
The data of the items endpoint
Show child attributes
The platform ID of the item
"a979d4e1-9795-ee11-be36-6045bdc629b7"
Name of the item
Description of the item
Status of the item. Values are ACTIVE, ARCHIVED, UNKNOWN
ACTIVE, ARCHIVED, UNKNOWN Type of the item. Values are INVENTORY, NON_INVENTORY, SERVICE, UNKNOWN
INVENTORY, NON_INVENTORY, SERVICE, UNKNOWN Reference code of the item
Quantity on hand
Check if there are details (bill_item) of this item getting purchased
Check if there are details (invoice_item) of this item getting sold
The date the item was last updated
Run the request asynchronously
List of items
Show child attributes
The unique ID we assign for that data's information
157
The date at which RootFi first synced this data
"2024-01-22T05:07:31.465Z"
The latest date at which RootFi updated this data
"2024-01-22T05:07:31.000Z"
The ID of the company in the accounting platform
1089
An unique custom RootFi ID made from platform's unique_id.
"123456"
The date at which the data was deleted in the accounting platform
The ID of the data in the accounting platform.
A JSON containing fields that you can directly get from the accounting platform.
The hash of the data
Name of the item
Description of the item
Status of the item. Values are ACTIVE, ARCHIVED, UNKNOWN
ACTIVE, ARCHIVED, UNKNOWN Type of the item. Values are INVENTORY, NON_INVENTORY, SERVICE, UNKNOWN
INVENTORY, NON_INVENTORY, SERVICE, UNKNOWN Reference code of the item
Quantity on hand
Check if there are details (bill_item) of this item getting purchased
Check if there are details (invoice_item) of this item getting sold
The date the item was last updated
The sync id of the request