General
Server Side SDKs
Core API
- Companies
- Invite Links
- Sync
- Passthrough
- Real Time
- Webhooks
Unified API
- Accounting
- Accounts
- Bank Accounts
- Bank Transactions
- Bills
- Bill Payments
- Bill Credit Notes
- Contacts
- Company Info
- Currencies
- Documents
- Expenses
- Invoice Credit Notes
- Invoices
- Invoice Payments
- Items
- Journal Entries
- Purchase Orders
- Sales Orders
- Goods Receipt Notes
- Projects
- Tax Rates
- Tracking Categories
- Balance Sheet
- Cash Flow Statements
- Income Statements
- Payments
- Ecommerce
- CRM
Items
Update an Item
Update an item.
PUT
/
accounting
/
items
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 Items Data Model is designed to simplify the management and retrieval of item-related information across various accounting platforms.
Only supported for Zoho Books, Quickbooks, Xero
Authorizations
Body
application/json
Response
200
application/json
The response is of type object
.
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
}
}