Post Draft Credit Memo Action

Post a draft credit memo to a credit memo record for review and approval.

This action is available in API version 65.0 and later.

Supported REST HTTP Methods 

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

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
correlationIdstringSplunk correlation ID to use to track messages that are related to the request and logged in Splunk by the different services involved in the request. If not specified, the service creates a random Universally Unique Identifier (UUID).
creditMemoIdstringRequired. ID of the credit memo record in Draft status to be posted.

Outputs 

OutputTypeDescription
requestIdentifierstringThe UUID that’s used to track the status of the asynchronous action.
statusUrlstringThe URL to use to check the status of the request.

Example 

POST

This example shows a sample request that contains the ID of the credit memo to be posted.

1{
2  "inputs": [
3    {
4      "creditMemoId": "50gDU00000001MdYAI"
5    }
6  ]
7}

This example shows a sample successful response.

1[
2  {
3    "actionName": "postDraftCreditMemo",
4    "errors": [],
5    "invocationId": null,
6    "isSuccess": true,
7    "outcome": null,
8    "outputValues": {
9      "statusUrl": "/services/data/v68.0/sobjects/AsyncOperationTracker/16PDU000000A4nw2AC",
10      "requestIdentifier": "d3a9d9ce-2a83-4a08-bcf3-df0348a0008c"
11    },
12    "sortOrder": -1,
13    "version": 1
14  }
15]