The 24.8 release for B2C Commerce contained a fix to handle duplicate basket creation that occurred when utilizing the Storefront Reference Architecture (SFRA) and via Salesforce Commerce API (SCAPI) / Open Commerce API (OCAPI) in hybrid Composable storefront implementations.
The duplicate basket creation referenced above leads to CustomerBasketsQuotaExceededException errors which manifest as 400 Bad Request errors when attempting to create a basket. An example of what this looks like is:
"CustomerBasketsQuotaExceededException",
"message": "The maximum number of baskets per customer was exceeded. Please reuse or delete one of the existing baskets (7d0c9a43eaa41cd433c5032a02)."
This exception simply means that at the time of a POST request to create a basket via SCAPI/OCAPI, there is already an empty basket created earlier which has been found to usually occur when the getCurrentOrNewBasket() method is used which you may see as being called as part of a hook or in any other flow. This should be avoided and instead, only create a basket when there is a need e.g. when adding the first product or storing customer information such as their address. This is a general best practice but especially important for hybrid storefronts.
There are two action items to take when the CustomerBasketsQuotaExceededException errors occur:
Note: The above does NOT apply if your storefront implementation is SiteGenesis only, SFRA (controller based) or pure PWA Kit (REST based with SCAPI/OCAPI).
002717246

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.