Canceling Service Contract Using REST API
The application allows you to cancel the Service Contract, Contract Line Items (CLI), and Entitled Service (ES) records using the REST API with the following details.
Endpoint URL: /services/apexrest/SVMXA360/scon/v1/cancelServiceContract/
Request JSON
The following code is an example of JSON input.
{
"salesContractIdFieldAPIName": "Name",
"salesContractId": "Test SCON-CPQ",
"effectiveEndDate": "2023-11-16",
"cancellationReasonFieldAPIName": "Description",
"cancellationReason": "Cancelling SC"
}
Response JSON
The following code is an example of JSON output.
{
"success": true,
"data": {
"salesContractIdFieldAPIName": "Name",
"salesContractId": "Test SCON-CPQ",
"effectiveEndDate": "2023-11-16",
"cancellationReasonFieldAPIName": "Description",
"cancellationReason": "Cancelling SC"
}
}
Was this helpful?