Skip to main content
PUT
/
core
/
companies
/
{company_id}
/
items
Update an Item
curl --request PUT \
  --url https://api.integrations.commenda.io/v4/core/companies/{company_id}/items \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "data": [
    {
      "platform_id": "a979d4e1-9795-ee11-be36-6045bdc629b7",
      "name": "Toy",
      "description": "Toy Story",
      "status": "ACTIVE",
      "type": "inventory",
      "code": "T-40",
      "quantity_on_hand": 44,
      "is_bill_item": true,
      "bill_item": {
        "account_id": "3770712000001313073",
        "tax_id": "3770712000001313073",
        "description": "Bill Item Description",
        "unit_price": 1320
      },
      "is_invoice_item": true,
      "invoice_item": {
        "account_id": "3770712000000000394",
        "tax_id": "3770712000000000394",
        "description": "Invoice Item Description",
        "unit_price": 1500
      },
      "updated_at": "2023-09-22T00:00:00.000Z"
    }
  ]
}
'
{
  "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",
    "name": "Toy",
    "description": "Toy Story",
    "status": "ACTIVE",
    "type": "inventory",
    "code": "T-40",
    "quantity_on_hand": 44,
    "is_bill_item": true,
    "bill_item": {
      "account_id": "3770712000001313073",
      "tax_id": "3770712000001313073",
      "description": "Bill Item Description",
      "unit_price": 1320
    },
    "is_invoice_item": true,
    "invoice_item": {
      "account_id": "3770712000000000394",
      "tax_id": "3770712000000000394",
      "description": "Invoice Item Description",
      "unit_price": 1500
    },
    "updated_at": "2023-09-22T00:00:00.000Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://integrations.docs.commenda.io/llms.txt

Use this file to discover all available pages before exploring further.

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

api_key
string
header
required

Path Parameters

company_id
integer
required

RootFi company ID for the company connection to read or write.

Query Parameters

run_async
boolean
default:false

When true, the write runs asynchronously and returns only a sync_id. Required when data contains two or more records. Optional for single-record writes.

Body

application/json
data
accountingUpdateItemFields · object
required

Single record for synchronous writes (default). For two or more records, pass an array and set query parameter run_async=true.

Response

data
accountingItemObject · object

List of items

sync_id
string | null

The sync id of the request