Get all digital products

In the example below, we will make a request to get all digital products from the Moltin catalog.

JavaScript SDK
Swift SDK
curl -X GET https://api.moltin.com/v2/products?filter=eq(commodity_type, digital) \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X'
Moltin.Products.Filter({ eq: { commodity_type: 'digital' } })
.then(products => {
// Do something
let moltin = Moltin(withClientID: "<your client ID>")
moltin.product.filter(operator: .eq, key: "commodity_type", value: "digital").all {
// Do something