PerfexCRM icon

PerfexCRM

Interact with PerfexCRM API

Actions181

Contract → Create

AI-generated

Summary

Create a new contract in PerfexCRM with required details such as subject, client ID, start date, and end date, optionally including additional fields and custom fields.

Inputs

  • Subject (required) — The subject or title of the contract.
  • Client ID (required) — The identifier of the client associated with the contract.
  • Start Date (required) — The start date of the contract (in dateTime format).
  • End Date (required) — The end date of the contract (in dateTime format).
  • Additional Fields — Optional collection of additional contract properties such as Contract Type, Contract Value (non-negative number), Description, Content, and Custom Fields. Custom Fields allow setting PerfexCRM custom field values by specifying each field's numeric ID or slug as the key, and the value to store.

Output shape

a single record containing the created contract's details as returned by the PerfexCRM API

The operation sends a POST request to the /contracts endpoint of the PerfexCRM API with the required and optional fields in the request body. Date fields are validated and formatted. Numeric fields like contract value are validated to be non-negative. The response includes data about the newly created contract. Errors from the API are surfaced. No pagination applies since it creates one contract per execution.

Discussion