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