1Method:
2POST
3
4URL:
5/services/apexrest/cacheableapis/v3/catalogs/Mobiles/basket
6
7POST Body (truncated)
8{
9 "productConfig": [
10 {
11 "offerDetails": {
12 "offer": {
13 "priceResult": [
14 {
15 "adjustments": [],
16 "overrides": [],
17 "chargeamount": 100,
18 "baseamount": 100,
19 "Amount__c": 100,
20 "IsVirtualPrice__c": false,
21 "IsBasePrice__c": true,
22 "effectiveuntildatespec": null,
23 "effectivefromdatespec": null,
24 "SubType__c": "Standard",
25 "Type__c": "Price",
26 "RecurringFrequency__c": null,
27 "ChargeType__c": "One-time",
28 "DisplayText__c": "100$ one time",
29 "UnitPrice": 100
30 },
31 {
32 "adjustments": [],
33 "overrides": [],
34 "chargeamount": 50,
35 "baseamount": 50,
36 "Amount__c": 50,
37 "IsVirtualPrice__c": false,
38 "IsBasePrice__c": true,
39 "effectiveuntildatespec": null,
40 "effectivefromdatespec": null,
41 "SubType__c": "Standard",
42 "Type__c": "Price",
43 "RecurringFrequency__c": "Monthly",
44 "ChargeType__c": "Recurring",
45 "DisplayText__c": "50$ recurring"
46 }
47 ],
48 "addtocart": {
49 "rest": {
50 "params": {
51 "context": "{}",
52 "basketAction": "AddWithNoConfig",
53 "offer": "iPhone11"
54 },
55 "link": "v3/catalogs/Mobiles/basket",
56 "method": "POST"
57 }
58 },