2023-07, you can use the new field
ChannelDefinition to check if a channel definition represents a marketplace such as Shops on Facebook and Instagram or Buy on Google.
isMarketplace field gives the ability to know if any object that references
ChannelDefinition is related to a marketplace channel. For example, you can know if an order was placed on a channel that is a marketplace or if the store has available channels that are marketplaces.
Learn more about the
isMarketplace field on Shopify.dev.