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.

POST /v2/epc/productchilditems

Remote Method

createPCI

REST Handler

APIProductChildItemRestHandler

Apex Remote Service

PCAppHandler

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 Format JSON
Resource URL /services/apexrest/{namespace}/v2/epc/productchilditems

Example Request

POST /v2/epc/productchilditems
{
  "epcRequest": {
   "entity": {
      "vlocity_cmt__ParentProductId__c": "01t3h000002TDJQAA4",
      "vlocity_cmt__ChildProductId__c": "01t3h000002Stj3AAC",
      "vlocity_cmt__RelationshipType__c": "Child",
      "vlocity_cmt__ChildLineNumber__c": "1"
    }
  }
}

Example Result

{
    "epcResponse": {
        "entities": [
            {
                "entity": {
                    "attributes": {
                        "type": "vlocity_cmt__ProductChildItem__c",
                        "url": "/services/data/v53.0/sobjects/vlocity_cmt__ProductChildItem__c/a3C3h000000Je8oEAC"
                    },
                    "Id": "a3C3h000000Je8oEAC"
                }
            }
        ],
        "overallResult": "success"
    }
}