Void Posted Credit Memo Action

Invoke the Void Posted Credit Memo API by providing a credit memo ID.

This action is available in API version 66.0 and later.

Supported REST HTTP Methods 

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

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
creditMemoIdstringRequired. ID of the credit memo record in posted status to be voided.

Outputs 

OutputTypeDescription
debitMemoIdstringID of the created debit memo record.
statusUrlstringURL to use to check the status of the request.

Example 

POST

Here’s a sample request for the Void Posted Credit Memo action.

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

Here’s a sample response for the Void Posted Credit Memo action.

1[
2  {
3    "actionName": "voidPostedCreditMemo",
4    "errors": [],
5    "invocationId": null,
6    "isSuccess": true,
7    "outcome": null,
8    "outputValues": {
9      "debitMemoId": "4DmSG000001YcIP0A0",
10      "statusUrl": "/services/data/v68.0/sobjects/AsyncOperationTracker/16PSG000001qlyL2AQ"
11    },
12    "sortOrder": -1,
13    "version": 1
14  }
15]