PerfexCRM icon

PerfexCRM

Interact with PerfexCRM API

Actions181

Invoice → Create

AI-generated

Summary

Create a new invoice in PerfexCRM by specifying required client and invoice details along with optional additional information and custom fields.

Inputs

  • Client ID (required) — ID of the client for whom the invoice is created.
  • Invoice Number (required) — Identifier for the invoice.
  • Date (required) — The date the invoice is issued.
  • Due Date (required) — The date by which the invoice must be paid.
  • Additional Fields — Optional additional properties for the invoice including currency, subtotal, total, status, internal and client notes, allowed payment modes, and custom field values; custom fields require specifying either their numeric ID or slug as key.

Output shape

a single JSON object representing the created invoice as returned by the PerfexCRM API

Returns the API response containing the created invoice data. Validation is performed on date fields and numeric fields (like totals) to ensure correct format and non-negative values. Errors from the API or validation are returned unless 'continueOnFail' is enabled, in which case error objects are returned per item.

Discussion