Post Draft Invoice Action

Update the status of an invoice from Draft to Posted for a credit memo application.

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.

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.

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

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

InputTypeDescription
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).
invoiceIdstringRequired. ID of the Draft invoice to be posted.
OutputTypeDescription
requestIdentifierstringUUID that’s used to track the status of the asynchronous action.
statusUrlstringURL that’s used to check the status of the API request.

POST

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

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