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?
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!