Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Supply/Purchase → PurchaseItemUpdate

AI-generated

Summary

Update an existing purchase item in the Zen ERP system by sending a JSON body with the item's updated fields.

Inputs

  • Body (required) — A JSON object containing the purchase item update details. Key fields include 'id' (integer) to identify the purchase item, 'quantity' (number), 'unitValue' (number), 'code' (string), and other optional properties such as 'taxationRule', 'priceListValue', 'currency', 'discountType', 'tags', and custom 'properties'.

Output shape

a single JSON object representing the updated purchase item or an error object if the update fails

The operation returns the JSON response from the Zen ERP API after updating the purchase item. If an error occurs, the output contains an error message and optional stacktrace. Each input item results in one output item, paired accordingly.

Examples

Example 1: Update a purchase item's quantity and unit value

Set the Body JSON with 'id' of the item to update, 'quantity' for the new quantity, and 'unitValue' for the new price per unit.

Discussion