Development discussions around Shopify APIs
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?
Same question here. How to get the liquid syntax for standard product type?
Hope Shopify support will post an answer soon.
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,
Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
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
Do you have any date when it will released for REST IP?
+1 On making this available in the REST Product API
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023