Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Commercial/Contract → ContractCreate

AI-generated

Summary

Creates a commercial contract in Zen ERP via the ContractCreate operation.

Inputs

  • commercial_contract_contractCreate_bodyJson — JSON collection specifying contract details. Fields: id (integer), status (string), company (object*, required), contractProfile (object*, required), workflow (object), workpiece (object), person (object*, required), code (string), dateStart (date*, required), dateEnd (string), billingCycle (string), billingInterval (integer), billingGraceDays (integer), billingLastDate (date), billingNextDate (date), contractIndex (object), contractIndexValue (number), adjustmentCycle (string), adjustmentInterval (integer), adjustmentLastDate (date), adjustmentNextDate (date), totalValue (number), tags (string), properties (object). Asterisk (*) denotes required fields. Default is empty object {}; workflow author must supply a valid JSON body with at least the required fields to create a contract.

Output shape

array of n8n items, each containing a json field with the handler's return value. If the handler returns an array, each element is pushed as a separate item; if it returns a single object or undefined, it is wrapped as the json field of one item. On error and continueOnFail, an item with json.error is returned instead.

The node returns one or more items per input item, depending on the handler's return value. The credential zenApi is required for all operations.

Examples

Example 1: Create a contract with minimal required fields

Set resource to Commercial/Contract, operation to ContractCreate, and provide a JSON body with at minimum: company, contractProfile, person, code, and dateStart. Optional fields may be omitted or left as default.

Links

Discussion