Initiate Swap (POST)
Exchange one product for another of equivalent or different value. The change is tracked as a swap request with linked asset actions and a net-zero order total where applicable. The API creates an amendment quote and order with order actions and quote action subtypes.
When the order is assetized, the source asset gets an asset action with business category as Swap (reduced quantity). The new asset is created with an asset action that identifies it as swapped in, with relationships that link the swapped-from and swapped-to assets. The swaps are auditable and reportable separately from cancellations and new sales. This API also supports use cases such as trading unused licenses for credits or moving spend between products while preserving contract intent.
66.0
POST
JSON Example
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
contractId | String | ID of the contract record to swap. | Optional | 66.0 |
opportunityId | String | ID of the opportunity record to swap. | Optional | 66.0 |
outputRecordType | String | Record type of the output for the swap. | Required | 66.0 |
swapGroups | Swap Group[] | Groups that contain the asset details for the swap. | Required | 66.0 |
swapStartDate | String | Amendment start date for the swap action. | Required | 66.0 |
See Also