Save Entitlement API
This API performs the entitlement based on the user input and creates and updates the related records.
The details for the Save Entitlement API are as follows:
URL: /services/apexrest/SVMXC/svmx/rest/entitlement/saveEntitlement
Type: Post method
A sample request and response for the "Not Covered" option are explained as follows.
Sample Request:
{
"headerId": "a1L2I00000BZqHOUA1",
"entitlementInfoWrapperList": [{
"recordID": "a1L2I00000BZqHOUA1",
"entitlementInfo": {
"warrantyOrScon": "notcovered",
"entitlementNotes": "test"
}
}]
}
Sample Response:
{
"success": true,
"messages": "Save Successful",
"data": {
"selectedEntitlementInfo": {
"warrantyTermName": null,
"warrantyTermId": null,
"warrantyOrScon": "notcovered",
"uniqueID": null,
"startDate": null,
"sLARecordName": null,
"sLARecordId": null,
"recordName": null,
"recordId": null,
"installedBaseName": null,
"entitlementNotes": "test",
"endDate": null,
"coveredService": null,
"coveredBy": null,
"advancedFieldList": null
},
"recordName": null,
"recordID": "a1L2I00000BZqHOUA1",
"productName": null,
"listWarranty": null,
"listServiceContract": null,
"listDetailRecords": [],
"installedBaseName": null,
"installedBaseId": null,
"entitlementPerformed": true,
"entitlementHistoryMap": null,
"contactName": null,
"accountName": null
}
}
A sample request and response for the "Covered with Warranty" option are explained as follows.
Sample Request :
{
"headerId": "a1L2I00000BZqHOUA1",
"entitlementInfoWrapperList": [
{
"recordID": "a1L2I00000BZqHOUA1",
"entitlementInfo": {
"warrantyTermName": "TS3812011",
"warrantyTermId": "a1QF0000004pOI1MAM",
"warrantyOrScon": "warranty",
"uniqueID": "a1h2I000006HdaAQAS",
"startDate": null,
"sLARecordName": null,
"sLARecordId": null,
"recordName": "WN-337293",
"recordId": "a1h2I000006HdaAQAS",
"installedBaseName": "Dell_5536001",
"entitlementNotes": "Performing with warrnty TS3812011",
"endDate": null,
"coveredService": null,
"coveredBy": null
}
}
]
}
Sample Response:
{
"success": true,
"messages": "Save Successful",
"data": {
"selectedEntitlementInfo": {
"warrantyTermName": "TS3812011",
"warrantyTermId": "a1QF0000004pOI1MAM",
"warrantyOrScon": "warranty",
"uniqueID": "a1h2I000006HdaAQAS",
"startDate": null,
"sLARecordName": null,
"sLARecordId": null,
"recordName": "WN-337293",
"recordId": "a1h2I000006HdaAQAS",
"installedBaseName": "Dell_5536001",
"entitlementNotes": "Performing with warrnty TS3812011",
"endDate": null,
"coveredService": null,
"coveredBy": null,
"advancedFieldList": null
},
"recordName": null,
"recordID": "a1L2I00000BZqHOUA1",
"productName": null,
"listWarranty": null,
"listServiceContract": null,
"listDetailRecords": [],
"installedBaseName": null,
"installedBaseId": null,
"entitlementPerformed": true,
"entitlementHistoryMap": null,
"contactName": null,
"accountName": null
}
}
Was this helpful?