Post Draft Invoice Batch Run Action

Update the status of a batch of invoices from Draft to Posted for a credit memo application.

This action uses the ID of the invoice batch run record to find draft invoices from the batch and to post the draft invoices to an invoice record. This action is available in API version 62.0 and later.

Special Access Rules 

The Post Draft Invoice Batch Run action is available in Enterprise, Unlimited, and Developer Editions where Billing is enabled. To use this action, you need the Billing Operations User permission set.

Supported REST HTTP Methods 

URI: /services/data/v68.0/actions/standard/postDraftInvoiceBatchRun

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
invoiceBatchRunIdstringRequired. ID of the invoice batch run record that created the draft invoices.

Outputs 

OutputTypeDescription
invBatchDraftToPostedRunIdstringID of the record that’s created to track the batch process of posting draft invoices. These draft invoices are associated with the parent invoice batch run record.

Example 

POST

This example shows a sample request for the Post Draft Invoice Batch Run action.

1{
2  "inputs": [
3    {
4      "invoiceBatchRunId": "5IRSG000001Az014AC"
5    }
6  ]
7}

This example shows a sample response for the Post Draft Invoice Batch Run action.

1{
2  "actionName": "postDraftInvoiceBatchRun",
3  "errors": null,
4  "isSuccess": true,
5  "outputValues": {
6    "invBatchDraftToPostedRunId": "4sFDU00000000652AA"
7  }
8}