Digital Commerce Remote Calls
You can use the code samples in this topic to make remote method calls to the Digital Commerce APIs for both anonymous and logged-in users.
Get Offers By Catalog for Anonymous Users:
For more details about which parameters correspond to the POST body, refer to the API documentation.
Get Offers By Catalog for Logged In Users:
Get Contains Products for Anonymous Users:
Get Contains Products for Logged In Users:
GetOfferDetailsByCatalog for Anonymous Users:
GetOfferDetails ByCatalog for Logged In Users:
Get Basket for Logged In Users:
Configure Offer for Anonymous or Logged In Users:
Additional parameters:
Basket API for Anonymous or Logged In Users:
Additional parameters include different method names (note that their first letter is not capitalized unlike in REST POST body params):
-
addWithNoConfig
-
addAfterConfig
-
deleteFromBasket
Additional input map parameters include:
-
offerDetails - same as productConfig
-
orderId - same as transactionKey
-
cartContextKey
-
deleteBundleNumber
Refer to Basket APIs documentation for more details on what they correspond to in POST body params.
Basket API: Asset to Basket for Logged In Users:
Additional Parameters:
Basket API: Delete From Basket for Anonymous or Logged in Users:
Additional parameters:
Basket API: Update Basket for Anonymous or Logged In Users:
Additional parameters:
Basket API : Add Multiple Items to a Basket:
Create Cart for Logged In Users:
Additional Parameters
Basket API : Add Child Items to a Basket: