Getting new product type (standard product type) through API

asepulveda_gdf
Visitor
1 0 1

I am trying to retrieve the new product type, standard product type, with an API call (/admin/products/productid.json). I looked at a couple of products but I only got the custom product type. Is there a way to get the standard product type with API?

Replies 5 (5)

BrianCheng
Tourist
9 0 1

Same question here. How to get the liquid syntax for standard product type?

 

Hope Shopify support will post an answer soon.

GrahamS
Shopify Staff (Retired)
193 36 53

Hello @asepulveda_gdf ,

The standard product type is now retrievable via GraphQL Unstable versioning - See THESE DOCS for some info on standard product type. We are still working on REST as well as documentation regarding other interactions with this new field, so please keep an eye out for further updates in the near future.

Best,

To learn more visit the Shopify Help Center or the Community Blog.

sfsdev
Excursionist
12 1 10

I was able to use the unstable API version to clear the custom product type and set the standard product type. The mutation I used is below as well as the documentation that may help.

 

mutation {
  productUpdate (
    input: {
      id:"gid://shopify/Product/1234567890"
      customProductType:null
      standardProductType:{
        productTaxonomyNodeId:"gid://shopify/ProductTaxonomyNode/1234"
      }
    }
  )
  {
    product {
      id
    }
    userErrors {
      field
      message
    }
  }
}

 

https://shopify.dev/api/admin-graphql/unstable/input-objects/ProductInput

https://shopify.dev/api/storefront/reference/products/standardproducttype

 

 

Plumrocket_Dev
Visitor
2 0 6

Do you have any date when it will released for REST IP?

Jonathan-HA
Shopify Partner
315 24 98

+1 On making this available in the REST Product API

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill