Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Sale → SaleOpCancel

AI-generated

Summary

Cancel a sale.

Inputs

  • sale_saleOpCancel_path — Path parameters for the operation, collected under the sale_saleOpCancel display option scope: /sale/saleOpCancel. The id option is a number defaulting to 0, representing the sale identifier to cancel.
  • sale_saleOpCancel_bodyJson — Body parameter for the operation, collected under the sale_saleOpCancel display option scope: /sale/saleOpCancel. The json option is of type json with a default template containing code (string) and reason (string) fields for the cancellation payload.

Output shape

The node executes synchronously over input items and returns an array of execution results. Each result item contains a json field with the operation's return data or error information, paired with the source item index.

Side effects are limited to the API call implied by the operation; the node does not modify local workflow state beyond returning the result JSON.

Examples

Example 1: Cancel sale with ID 42 and reason 'duplicate order'.

Set sale_saleOpCancel_path.id to 42 and sale_saleOpCancel_bodyJson.json to { code: 'DUP01', reason: 'duplicate order' }.

Discussion