Zoho Inventory icon

Zoho Inventory

Consume Zoho Inventory API

Actions14

Overview

This node integrates with the Zoho Inventory API to manage inventory items, composite items, and assemblies. Specifically for the Item - Update operation, it updates an existing inventory item by its ID with new data provided by the user.

Typical use cases include:

  • Synchronizing updated product information from other systems into Zoho Inventory.
  • Automating bulk updates of item details such as price, description, or stock levels.
  • Integrating Zoho Inventory with e-commerce platforms or ERP systems to keep item data consistent.

For example, you might update an item's price or description after a promotional campaign or correct inventory details after a stock audit.

Properties

Name Meaning
Item ID The unique identifier of the item to update in Zoho Inventory.
itemData (Not explicitly listed in your input but used in code) An object containing fields to update on the item, such as name, SKU, price, description, etc.

Note: The itemData property is used internally in the code to hold the update payload for the item, though it was not included in your provided properties JSON snippet.

Output

The output is an array of JSON objects, each representing the updated item returned from Zoho Inventory after the update operation. The structure of the output JSON is:

{
  "item": {
    // Updated item details as returned by Zoho Inventory API
  }
}

This includes all the fields of the item as stored in Zoho Inventory after the update, such as name, SKU, rates, stock levels, and any other relevant metadata.

The node does not output binary data.

Dependencies

  • Requires a configured OAuth2 credential for Zoho Inventory API access.
  • The credential must include a valid Organization ID.
  • The node uses the Zoho Inventory REST API endpoints.
  • No additional external dependencies beyond the n8n environment and the Zoho Inventory API.

Troubleshooting

  • Missing Credentials: If the OAuth2 credentials are not set up or invalid, the node will throw an error indicating that Zoho Inventory credentials were not found.
  • Missing Organization ID: The Organization ID is mandatory; if missing or empty, the node will fail with a message prompting to configure it.
  • API Errors: If the Zoho Inventory API returns an error (non-zero code), the node throws an error with the API's message and code.
  • Invalid Item ID: Providing an incorrect or non-existent Item ID will result in an API error when attempting to update.
  • Malformed Update Data: If the itemData object contains invalid fields or values, the API may reject the request.

To resolve these issues:

  • Ensure OAuth2 credentials and Organization ID are correctly configured in n8n.
  • Verify the Item ID exists in Zoho Inventory before updating.
  • Validate the update data conforms to Zoho Inventory API requirements.

Links and References


If you want me to analyze other operations or resources, please provide their names or additional property definitions.

Discussion