Invoice Draft to Posted Status (POST)

Update the status of the invoice from Draft to Posted.

This API calls an external tax engine or provides information to your tax adapter implementation to calculate taxes for the draft invoice, post the invoice, and update the related billing schedules and billing periods.

Special Access Rules 

You need the Billing Operations User permission set to use this API.

Resource 

1/commerce/invoicing/invoices/collection/actions/post

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/commerce/invoicing/invoices/collection/actions/post

Available Version 

62.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2  "invoiceIds": ["3ttxx0000004CIjAAM"]
3}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
correlationIdStringSplunk correlation ID to track the messages that are related to the request and are logged in Splunk by the different services involved in the request. If the ID isn’t specified, the service creates a random Universally Unique Identifier (UUID).Optional62.0
invoiceIdsString[]IDs of the invoice records in Draft status to be posted. You can post one draft invoice per API request.Required62.0

Response Body for POST 

Revenue Async Response