Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Supply/Purchase → PurchaseOpSplit

AI-generated

Summary

Split a purchase operation by sending a POST request to the endpoint '/supply/purchase/purchaseOpSplit' with specified purchase ID and details.

Inputs

  • id (required) — The numeric ID of the purchase operation to be split, passed as a path parameter.
  • json (required) — A JSON object containing the 'items' array to split the purchase into, and a 'keep' boolean to indicate whether to retain the original purchase.

Output shape

a list of JSON objects representing the response from the purchase operation split API call.

Returns the response body as JSON for the split operation. The original input item is paired with each output item. If an error occurs and 'Continue On Fail' is enabled, the error information is returned in the output instead.

Discussion