Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

SDK Example: Delete From Basket (Fall '19)

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'."