Consider you want to retrieve details of a product offering price from the inventory. For example, product offering price ID = ab5f8d7a-b852-cce1-fe27-9b2ea7742f6c.
Consider for the product offering price ID = 6c059da5-6be5-6a8b-08f9-422beec29e55, you want to retrieve details of the id, name and lifecycleStatus details in the output.
1{2"name" : "demo pricing",3"description": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",4"validFor": {5"startDateTime": "2020-09-22T00:00:00Z",6"endDateTime": "2023-09-22T00:00:00Z"7},8"lifecycleStatus": "Active",9"priceType": "Recurring",10"recurringChargePeriodType": "Monthly",11"price": {12"unit": "USD",13"value": 5014},15"productOfferingTerm": [16{17"name": "12 Month",18"description": "12 month contract",19"duration": {20"amount": 12,21"units": "Month"22},23"validFor": {24"startDateTime": "2020-09-22T16:42:23.0Z",25"endDateTime": "2023-09-22T00:00:00.0Z"26}27}28]29}
Sample Response
1200 OK2{3 "productOfferingTerm": [4 {5 "href": "/services/data/v58.0/sobjects/vlocity_cmt__Promotion__c/a3T5e000000tvEVEAY",6 "@type": "ProductOfferingTerm",7 "validFor": {8 "startDateTime": "2020-09-22T16:42:23.000+0000",9 "endDateTime": "2023-09-22T00:00:00.000+0000"10 },11 "duration": {12 "units": "Month",13 "amount": 1214 },15 "description": "12 month contract",16 "name": "12 Month"17 }18 ],19 "lifecycleStatus": "true",20 "validFor": {21 "endDateTime": "2023-09-22T00:00:00.000+0000",22 "startDateTime": "2020-09-22T00:00:00.000+0000"23 },24 "lastUpdate": "2023-09-27T08:02:09.000+0000",25 "href": "/services/apexrest/vlocity_cmt/tmforum/productopenapi/v1/priceListEntry/a3C5e000000jCZSEA2",26 "name": "demo pricing",27 "description": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",28 "id": "4a5dbea2-6c43-4a63-8b8a-cde4b5085c57",29 "price": {30 "unit": "USD",31 "value": 5032 },33 "priceType": "Recurring",34 "recurringChargePeriodType": "Monthly"35}
PATCH
Consider for the product offering price ID = 4a5dbea2-6c43-4a63-8b8a-cde4b5085c57 you want to update first level attributes and sub-resources.
1{2"description": "UPDATED - This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",3"name": "demo pricing",4"validFor": {5"startDateTime": "2020-09-22T00:00:00.000+0000",6"endDateTime": "2023-09-22T00:00:00.000+0000"7},8"priceType": "recurring",9"priceType":"monthly",10"lifecycleStatus":"false",11"recurringChargePeriodType": "monthly",12"price": {13"unit": "USD",14"value": 5015}16}
Sample Response
1{2 "productOfferingTerm": [3 {4 "href": "/services/data/v58.0/sobjects/vlocity_cmt__Promotion__c/a3T5e000000tvEVEAY",5 "@type": "ProductOfferingTerm",6 "validFor": {7 "startDateTime": "2020-09-22T16:42:23.000+0000",8 "endDateTime": "2023-09-22T00:00:00.000+0000"9 },10 "duration": {11 "units": "Month",12 "amount": 1213 },14 "description": "12 month contract",15 "name": "12 Month"16 }17 ],18 "lifecycleStatus": "true",19 "validFor": {20 "endDateTime": "2023-09-22T00:00:00.000+0000",21 "startDateTime": "2020-09-22T00:00:00.000+0000"22 },23 "lastUpdate": "2023-09-27T08:02:09.000+0000",24 "href": "/services/apexrest/vlocity_cmt/tmforum/productopenapi/v1/priceListEntry/a3C5e000000jCZSEA2",25 "name": "demo pricing",26 "description": "UPDATED - This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",27 "id": "4a5dbea2-6c43-4a63-8b8a-cde4b5085c57",28 "price": {29 "unit": "USD",30 "value": 5031 },32 "priceType": "Recurring",33 "recurringChargePeriodType": "Monthly"34}
DELETE
Consider you want to delete a product offering price ID: 3830.