Create Product Child Items

Product child items (PCIs) are products associated with a bundle of products or services. A product can have one or more PCIs. Add PCIs using the productchilditems API call. Ensure that product and their child products are in the same price list.

1POST /v2/epc/productchilditems

Remote Method 

1createPCI

REST Handler 

1APIProductChildItemRestHandler

Apex Remote Service 

1PCAppHandler

Package 

Communication (vlocity_cmt)

API Parameters and Response Format 

For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.

Resource Information 

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/epc/productchilditems

Example Request 

1POST /v2/epc/productchilditems
2{
3  "epcRequest": {
4   "entity": {
5      "vlocity_cmt__ParentProductId__c": "01t3h000002TDJQAA4",
6      "vlocity_cmt__ChildProductId__c": "01t3h000002Stj3AAC",
7      "vlocity_cmt__RelationshipType__c": "Child",
8      "vlocity_cmt__ChildLineNumber__c": "1"
9    }
10  }
11}

Example Result 

1{
2    "epcResponse": {
3        "entities": [
4            {
5                "entity": {
6                    "attributes": {
7                        "type": "vlocity_cmt__ProductChildItem__c",
8                        "url": "/services/data/v53.0/sobjects/vlocity_cmt__ProductChildItem__c/a3C3h000000Je8oEAC"
9                    },
10                    "Id": "a3C3h000000Je8oEAC"
11                }
12            }
13        ],
14        "overallResult": "success"
15    }
16}