Batch Invoices Document Generation (POST)

Asynchronously generate PDF documents for the invoices that are in the Draft or Posted status and are associated with an invoice batch run record.

Special Access Rules 

This API is available with Revenue Cloud Billing. To use this API, enable Document Generation for Billing. Additionally, you need either the Billing Operations User permission set or the Billing Admin permission set, along with the Docgen Designer permission set and Docgen Designer Standard User permission set.

Resource 

1/commerce/billing/invoices/invoice-batch-docgen/{invoiceBatchRunId}/actions/{actionName}
  • The invoiceBatchRunId parameter is the ID of the invoice batch run record that created the Draft or Posted invoices.
  • The actionName parameter is the name of the action you want to perform on the specified invoice batch run record.

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/commerce/billing/invoices/invoice-batch-docgen/{5KPxx0025063GSmSAX}/actions/{run}

Available Version 

63.0

HTTP Methods 

POST

Response Body for POST 

Batch Invoice Document Generation