---
schema_version: "1"
id: 049781a552e87fdaa0c7d43512a462c7b46145e6245a5f1516e30b7b94c2b91b
title: "SDK Example: getCatalogOffers without the contains parameter (Fall '19)"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-sdk-examplegetcatalogoffers-without-the-contains-parameterfall19-.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-sdk-examplegetcatalogoffers-without-the-contains-parameterfall19-.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 31f0a4179a0ff992816fbfffce9544fb0922ec26169af1d474d53f869a837d1c
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# SDK Example: getCatalogOffers without the `contains` parameter (Fall '19)

Use the example SDK code in this topic to get catalog offers without the `contains` parameter.

```nolang
// Instantiate the input object for getCatalogOffers to specify parameters
const input = digitalCommerce.createGetOffersInput();
input.catalogCode = "Phones"; // use your Catalog Code
input.offset = 0; // use for pagination - optional
input.pageSize = 5; // use for pagination - optional
input.isLoggedIn = true; // use to fetch offers based on given accountId - optional
input.context = '{"accountId":"ACCOUNT ID", "contractId":"CONTRACT ID"}'; // use to fetch offers based on context params - optional
input.includeAttributes = ["ishidden__c", "customAttribute__c"]; //includeExtraOfferAttributes as part of the query string of the API which includes extra passed attributes with default attributes in Offer - optional
input.customFields = ["customAttribute__c"]; // optional field which returns custom fields for given keys

// Invoke GetOffersByCatalog API via method getCatalogOffers()
digitalCommerce
  .getOffers(input)
  .then(result => {
    Logger.info("vlocity get offers anonymous user rest call" + result);
  })
  .catch(error => {
    Logger.info("get offers anonymous user rest call failed" + error);
  });
```

Possible error conditions:

"GetOffersInput::getAPIPath() must have catalogCode."

"GetOffersInput::getAnonymousRestUrl() must have catalogCode."
