Get Started with Communications, Media, and Energy (CME) Common APIs
Documentation Changelog
EPC API Swagger Reference
EPC API Response Format
Create Product Objects
Retrieve Product Details
Update Products
Delete Product Objects
Create products in Vlocity Product Console by specifying them in the request body.
1POST /v2/epc/products1createProduct21APIProductRestHandler1PCAppHandlerCommunication (vlocity_cmt)
For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.
| Response Format | JSON |
|---|---|
| Resource URL | /services/apexrest/{namespace}/v2/epc/products |
1POST
2{
3 "epcRequest": {
4 "entity": {
5 "vlocity_cmt__LifecycleStatus__c": "Draft",
6 "Name": "Product-0004",
7 "ProductCode": "Product-0004",
8 "Description": "Product-0004",
9 "vlocity_cmt__SpecificationType__c": "Offer",
10 "vlocity_cmt__SpecificationSubType__c": "Bundle",
11 "vlocity_cmt__Status__c": "Draft",
12 "vlocity_cmt__IsOrderable__c": true,
13 "vlocity_cmt__VersionLabel__c": "Version-1",
14 "IsActive": true,
15 "vlocity_cmt__EndOfLifeDate__c": 1769797800000
16 }
17 }
18}1{
2 "epcResponse": {
3 "entities": [
4 {
5 "entity": {
6 "attributes": {
7 "type": "Product2",
8 "url": "/services/data/v52.0/sobjects/Product2/01t3h000001gyCFAAY"
9 },
10 "vlocity_cmt__VersionLabel__c": "Version-1",
11 "Name": "Product-0004",
12 "ProductCode": "Product-0004",
13 "vlocity_cmt__SpecificationType__c": "Offer",
14 "vlocity_cmt__SpecificationSubType__c": "Bundle",
15 "vlocity_cmt__LifecycleStatus__c": "Draft",
16 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
17 "RecordTypeId": "0123h000000slEnAAI",
18 "Id": "01t3h000001gyCFAAY",
19 "RecordType": {
20 "attributes": {
21 "type": "RecordType",
22 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
23 },
24 "Id": "0123h000000slEnAAI",
25 "Name": "Product"
26 }
27 }
28 }
29 ],
30 "overallResult": "success"
31 }
32}