Preview Cart to Exchange Order
Generate preview details of an exchange order for specified order summary, exchange cart
ID, and reference record ID.
To access, you need the following permissions: Salesforce Order Management License or Salesforce B2B Commerce License.
This object is available in API version 60.0 and later.
Supported REST HTTP Methods
URI: /services/data/v59.0/actions/standard/previewCartToExchangeOrder
Formats: JSON, XML
HTTP Methods: GET, HEAD, POST
Authentication: Authorization: Bearer token
Inputs
| Input | Type | Description |
|---|---|---|
| orderSummaryId | ID | Required. The ID of the order summary record associated with the list of exchanges. |
| exchangeCartId | ID | Required. The ID of the cart record containing the items for the exchange order. |
| referenceId | ID | Required. The ID of the record that's related to the specified order summary. Only IDs from a return order record are supported. |
Outputs
| Output | Type | Description |
|---|---|---|
| changeBalances | string | A string that contains the calculated amounts resulting from the exchange order. |
| errors | string | Following a 400 error response, the error objects show information about the error that occurred. Contains a status code, message, and list of fields. |
| isSuccess | boolean | Shows whether the payment sale request was successful. |
| orderSummaryID | ID | The ID of the order summary record associated with the list of exchanges. |