How to identify Physical or Digital product Type

taruns
Visitor
3 0 0

Hi Team,

  Just wanted to check in terms of identifying a product type being Digital or Physical. Is their a attribute available in Order API that provides us this clarity. Basically provides Product type information to distinguish between Physical or Digital?
I found the attribute requires_shipping is usually set to False if Digital product and True if it is a physical product. Can we rely on this attribute for identifying if a product is digital or Physical?

Replies 2 (2)

m8th
Shopify Partner
13 5 11

If you communicate it internally like this and fill the data correctly then it is definitely a solution.

You can also tag the variants via metafield or tag whether something is digital or not.

RTFM!

windmillcode
Shopify Partner
15 0 1

This is a late answer but I found it  

          mutation {
            productVariantUpdate(
              input: {
                id: "{id_input}",
                inventoryPolicy: CONTINUE,
                requiresShipping: false
              }
            ) {
              userErrors {
                field
                message
              }
            }
          }   come 2024-07 API  you need to use inventoryItemUpdate and you can get the inventoryId from the productVariant in the productQuery!