Creating Service Contract Using REST API
The application allows you to create a Service Contract from Service Contract Plan using REST API with the following details.
Endpoint URL: /services/apexrest/SVMXA360/scon/v1/createServiceContract/
Request JSON
The following code is an example of JSON input.
{
"startDate": "2021-11-16",
"servicePlanProductId": "01t0x000007nhEuAAI",
"serviceContractName": "Test SCON-CPQ",
"serviceContractId": null,
"salesContractIdFieldName": "Description",
"salesContractId": "description field",
"pricebookId": null,
"endDate": null,
"description": null,
"accountId": "0010x00001LHpapAAD"
}
Response JSON
The following code is an example of JSON output.
{
"success": true,
"errors": [],
"data": {
"startDate": "2021-11-16",
"servicePlanProductId": "01t0x000007nhEuAAI",
"serviceContractName": "Test SCON-CPQ",
"serviceContractId": "8100x000000XuBfAAK",
"salesContractIdFieldName": "Description",
"salesContractId": "description field",
"accountId": "0010x00001LHpapAAD"
}
}
Was this helpful?