Generate On-Demand Invoice Document (POST)
Generate an invoice document for a record, and update any junction object record.
66.0
POST
JSON Example
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
documentTemplateId | String | Document template ID to use for PDF generation. The document template must be active with UsageType as INVOICE. If you don’t specify this value, the system auto-resolves by using the default template. | Optional | 66.0 |
documentTitle | String | Custom title for the generated document. If you don’t specify a value, the value is auto-generated. | Optional | 66.0 |
recordId | String | Record ID of the object the document is generated for. You can specify invoice ID only. | Required | 66.0 |
shouldForceRegenerate | Boolean | Indicates whether to regenerate the document (true) or not (false). If set to true, this API generates a document, replacing any existing ones. If set to false, this API skips the generation of document if invoice already has an associated document. The default value is false. | Optional | 66.0 |
tokenData | String | Token data to generate the document. | Optional | 66.0 |