Sample Basket Usage Scenario in Digital Commerce
You can add an offer without any configured attribute values to a basket.
Follow the prerequisites.
Ensure you have run the appropriate batch jobs and configured the appropriate custom settings. See Preparing Digital Commerce API Caching.
Execute a call to the Get Offer Details API.
After successfully running GetOfferDetails, copy and save the entire contents of the
OfferDetailsnode. For example:
To configure the offer before adding it to the basket, modify the
Paste the result node from the previous step into the body of the Basket API request.
Execute the Create Basket API call: