Get Started with Communications, Media, and Energy (CME) Common APIs
Documentation Changelog
EPC API Swagger Reference
EPC API Response Format
Create Versions of Products
Retrieve the Versions of Products
Retrieve the versions of products using REST APIs by specifying the ID of the product in the resource URI.
1GET /v2/epc/products/{product-ID}/versions1readProduct21APIProductVersionRestHandler1PCAppHandlerCommunication (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/{product-ID}/versions |
1GET /v2/epc/products/01t3h000001gyCFAAY/versions1{
2 "epcResponse": {
3 "entities": [
4 {
5 "supplimentryEntity": [
6 {
7 "attributes": {
8 "type": "Product2",
9 "url": "/services/data/v52.0/sobjects/Product2/01t3h000001gyCFAAY"
10 },
11 "vlocity_cmt__VersionLabel__c": "Version-1",
12 "Name": "Product-Ashish",
13 "ProductCode": "Product-Ashish",
14 "vlocity_cmt__SpecificationType__c": "Offer",
15 "vlocity_cmt__SpecificationSubType__c": "Bundle",
16 "vlocity_cmt__LifecycleStatus__c": "Draft",
17 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
18 "RecordTypeId": "0123h000000slEnAAI",
19 "Id": "01t3h000001gyCFAAY",
20 "RecordType": {
21 "attributes": {
22 "type": "RecordType",
23 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
24 },
25 "Id": "0123h000000slEnAAI",
26 "Name": "Product"
27 }
28 },
29 {
30 "attributes": {
31 "type": "Product2",
32 "url": "/services/data/v52.0/sobjects/Product2/01t3h000001h1uxAAA"
33 },
34 "vlocity_cmt__VersionLabel__c": "Version-2",
35 "Name": "Product-Ashish",
36 "ProductCode": "Product-Ashish",
37 "vlocity_cmt__SpecificationType__c": "Offer",
38 "vlocity_cmt__SpecificationSubType__c": "Bundle",
39 "vlocity_cmt__LifecycleStatus__c": "Draft",
40 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
41 "RecordTypeId": "0123h000000slEnAAI",
42 "Id": "01t3h000001h1uxAAA",
43 "RecordType": {
44 "attributes": {
45 "type": "RecordType",
46 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
47 },
48 "Id": "0123h000000slEnAAI",
49 "Name": "Product"
50 }
51 }
52 ],
53 "entity": {
54 "attributes": {
55 "type": "Product2",
56 "url": "/services/data/v52.0/sobjects/Product2/01t3h000001gyCFAAY"
57 },
58 "vlocity_cmt__VersionLabel__c": "Version-1",
59 "Name": "Product-Ashish",
60 "ProductCode": "Product-Ashish",
61 "vlocity_cmt__SpecificationType__c": "Offer",
62 "vlocity_cmt__SpecificationSubType__c": "Bundle",
63 "vlocity_cmt__LifecycleStatus__c": "Draft",
64 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
65 "RecordTypeId": "0123h000000slEnAAI",
66 "Id": "01t3h000001gyCFAAY",
67 "RecordType": {
68 "attributes": {
69 "type": "RecordType",
70 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
71 },
72 "Id": "0123h000000slEnAAI",
73 "Name": "Product"
74 }
75 }
76 }
77 ],
78 "overallResult": "success"
79 }
80}