Hi team,
We would like to have some more details regarding the products attributes available in the GraphQL API.
Could you please come back to us with the types (bool, int, string) and data validation rules for the following fields :
Hi @thomasw thank you for your reply. In addition to the fields types, is there any data validation rules that we should be aware of (e.g. an email address without @ would be rejected) ?
Hi @paul-wing
For the validation errors you should get in return a valid message.
For example if you try to exceed the length of the SKU (128) you will see something like this
"message": "Field 'CreateProductRequest.sku' can't be longer than 128"
Hi @tomasw! I am trying to create a few virtual items but am having trouble. It looks like the “virtual” attribute is not found. Can you help with my mutation below?
Hi @isaac.wyatt
Yes, that is correct, the field is available for querying but not for creating a product/updating.
I believe the reason is that wey is because it might require first to set inventory to 0, or in the case of kits it might get a bit tricky (ref.: https://help.shiphero.com/knowledgeBase/10180321)
Let me know if you still need it to be added to the Mutations and I could log a Feature Request for it.
Thanks in advance!
Tom
Hi @tomasw thank you for confirming. Reading the knowledge base article, we should be able to create our item master and perform a bulk upload of any skus that need to be set as virtual.
This would still be helpful in the future though. Thank you sir!
Sounds good @isaac.wyatt!
I just posted the Feature Request for the ability to change the flag with the product create and update mutations.
I will let you know as soon as I get a response to it.
Thanks again!
Tom
Hi @isaac.wyatt!
Our apologies for the delayed resolution of this, but we wanted to let you know that this mutation should be updated with the virtual flag now.