Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Supply/Purchase → PurchaseOpCancel

AI-generated

Summary

Cancel an existing purchase in the Zen ERP system by specifying its numeric ID and providing a cancellation reason in JSON format.

Inputs

  • id (required) — The numeric ID of the purchase to cancel.
  • JSON (required) — A JSON object with a mandatory property 'reason' describing why the purchase is being cancelled.

Output shape

a single JSON object representing the cancellation result

The operation returns the API response for the cancelled purchase. Errors are returned as JSON with error details if the operation fails and continueOnFail is enabled.

Discussion