The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

SDK Example: Delete From Basket (Winter '20)

Use the example SDK code in this topic to do an addToBasket with basketAction=DeleteFromBasket. The call must have deleteBundleNumber as an input parameter.

Possible error conditions:

"AddToBasketInput::getAPIPath() must have catalogCode."

"AddToBasketInput::getAnonymousRestUrl() must have anonymousSiteUrl."

"AddToBasketInput::getAnonymousSiteRestUrl() must have catalogCode."

"AddToBasketInput::getPostBody() must have basketAction."

"AddToBasketInput::getPostBody() must have deleteBundleNumber when basketAction is 'DeleteFromBasket'."