ESM_LinkProducts API

Saves QLI product relationship.

URI 

1/services/apexrest/vlocity_cmt/v1/integrationprocedure/ESM_LinkProducts/

HTTP Method 

POST

Request 

1{
2“LineItemLinkage”: {
3“0QLRN0000001DyI4AU”: {
4“07c087bf-a89b-98e0-8d70-a70318f7462f”: [
5{
6“id”: “0QLRN0000001DyD4AU”,
7“assetReferenceId”: “afa9aa70-532b-84c9-7c9d-431d61134084”
8}
9]
10}
11},
12“cartId”: “0Q0RN0000000q9P0AQ”
13}

Response 

1{
2“error”: “OK”,
3“errorCode”: “INVOKE-200",
4“relationsDeleted”: {},
5“relationsAdded”: [
6{
7“vlocity_rud236__RelatedQuoteLineItemId__r”: {
8“Product2": {
9“Id”: “01tRN000000KVzrYAG”,
10“Name”: “iPhone 12",
11“attributes”: {
12“url”: “/services/data/v55.0/sobjects/Product2/01tRN000000KVzrYAG”,
13“type”: “Product2”
14}
15},
16“Id”: “0QLRN0000001DyD4AU”,
17“Product2Id”: “01tRN000000KVzrYAG”,
18“attributes”: {
19“url”: “/services/data/v55.0/sobjects/QuoteLineItem/0QLRN0000001DyD4AU”,
20“type”: “QuoteLineItem”
21}
22},
23“Id”: “a3bRN0000000ClAYAU”,
24“vlocity_rud236__RelatedAssetReferenceId__c”: “afa9aa70-532b-84c9-7c9d-431d61134084",
25“vlocity_rud236__RelationshipType__c”: “ReliesOn”,
26“vlocity_rud236__RelatedQuoteLineItemId__c”: “0QLRN0000001DyD4AU”,
27“vlocity_rud236__QuoteLineItemId__c”: “0QLRN0000001DyI4AU”,
28“vlocity_rud236__QuoteId__c”: “0Q0RN0000000q9P0AQ”,
29“vlocity_rud236__ProductRelationshipIdentifier__c”: “07c087bf-a89b-98e0-8d70-a70318f7462f”,
30“Name”: “a3bRN0000000ClA”,
31“attributes”: {
32“url”: “/services/data/v55.0/sobjects/vlocity_rud236__QuoteLineItemRelationship__c/a3bRN0000000ClAYAU”,
33“type”: “vlocity_rud236__QuoteLineItemRelationship__c”
34}
35}
36]
37}