SDK Example: Get Filtered List of Products and Promotions (Winter '20)

Use the example SDK code in this topic to retrieve a filtered 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."