Digital Commerce Basket APIs provide functionality to add, update, and delete offers in the basket. The basket is a virtual cart created for an anonymous or logged-in user to add or update an offer listing before placing an actual order. Basket APIs provide flexibility to add a product, apply a promotion, update a product’s attributes, change a product’s quantity, add a child product in the hierarchy, create a basket from an asset, and make changes before submitting the order.
Basket APIs are consistent with other APIs in having a caching mechanism to cache the basket configuration with a cache key. The cache key comprises the user’s shape and operational details so if another user with a similar context performs a similar operation, the basket APIs can leverage the response already computed, thereby creating a cache-hit and drastically reducing the turn-around time for the requests.
Digital Commerce Basket APIs include: