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: Get filtered list of products and promotions (Fall '20)

Use the example SDK code in this topic to retrieve a list of products and promotions.

Possible error conditions:

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

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

"GetCatalogOffersContainsInput::getAPIPath() should not have both sortBy and contains."

"GetCatalogOffersContainsInput::getAnonymousRestUrl() should not have both sortBy and contains."