Post Draft Invoice Action
This action uses the ID of the draft invoice and triggers an asynchronous process to post the invoice. This action is available in API version 62.0 and later.
Special Access Rules
The Post Draft Invoice 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/v63.0/actions/standard/postDraftInvoice
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
Input | Details |
---|---|
correlationId |
|
invoiceId |
|
Outputs
Output | Details |
---|---|
requestIdentifier |
|
statusUrl |
|
Example
- POST
-
This example shows a sample request for the Post Draft Invoice action.
{ "inputs": [ { "invoiceId": "3ttDU00000000iZYAQ" } ] }
This example shows a sample response for the Post Draft Invoice action.
{ "actionName": "postDraftInvoice", "errors": null, "isSuccess": true, "outputValues": { "requestIdentifier": "4sFDU00000000652AA", "statusUrl": "/services/data/v62.0/sobjects/AsyncOperationTracker/16Pxx0000004NhAEAU" } }