Hi,
can I get to know the mutation for product_update
GraphQL API,
We need to update the basic product information like, price: “10.00”
value: “2.00”, warehouse_products etc. I can get the complete api for this.
Thanks
Mangesh
Hi,
can I get to know the mutation for product_update
GraphQL API,
We need to update the basic product information like, price: “10.00”
value: “2.00”, warehouse_products etc. I can get the complete api for this.
Thanks
Mangesh
HI @Mangesh
For that, you have two options, depending on what is that you want to change.
For example, the product_update
Mutation will change:
mutation {
product_update(
data: {
sku: "12334565"
name: ""
dimensions: {
length: "1.00"
width: "1.00"
height: "1.00"
weight: "1.00"
}
tariff_code: ""
product_note: "Note Test"
country_of_manufacture: "US"
needs_serial_number: false
dropship: false
barcode: "1234556"
}
) {
request_id
complexity
}
}
But the warehouse_product_update
will allow you to change, for example:
mutation {
warehouse_product_update(
data: {
sku: "123456"
warehouse_id: "UHJ1luZm86MjcyMDk"
price: "1.00"
value: "1.00"
value_currency: "USD"
reserve_inventory: 0
replenishment_level: 0
reorder_amount: 0
reorder_level: 0
}
) {
request_id
complexity
}
}
Where SKU and Warehouse ID is required.
In case it helps you could navigate the schema and check if there is anything else that could also be of any help.
Let me know if that was not what you were looking for.
Thanks!
Tom
Hi Tom,
I am trying to update the product update by using the mutation warehouse_product_update
but below these only two fields are not reflecting in shiphero, other fields are properly updating except below two,
price: "1.00"
value: "1.00"
Can you please what would be the reason and why these are not updating in shiphero,
Thanks
Mangesh
Hi @Mangesh
It seems to be working, but could you share the request_id? So I can check why the mutation is failing for you
Thanks again!
Tom
Hi Tom,
value and price are updating now. But when we are trying to update the final_Sale field vaue its not updating.
May I know How can I update final_Sale value in product_uopdate mutation.
As well as I need to know How I can update the Active field value.
Thanks
Mangesh
Thanks
Mangesh
Hi @Mangesh
Those fields are being added as a part of a bigger task this week.
The changes are currently being tested. I will let you know as soon as this is deployed to production.
Thanks again for the patience while we work on this.
Tom
Hi Tom,
Any Update on Final_Sale Field ?
Thanks
Mangesh
Hi @Mangesh
The task is currently under review, so it should be available soon. I will let you know as soon as the change is live.
Thanks again for the patience while we work on this
Tom
Hi Tom,
And I hope below fields are also getting in this change for Update mutations for Product
final sale
custom description
Vendor
vendor price
Image
Please confirm
Thanks
Mangesh
That is correct @Mangesh they are all under the scope of this change
Thanks again!
Tom
Hi Tom,
Do we have any ETA for this?
Thanks
Mangesh
I don’t have an ETA, but for this instance (In Review) it should be available in less than a week approximately
Hi Tom,
Any update on the above thread
Thanks
Mangesh
Hi @Mangesh!
Yes, the feature is currently being tested and approved by QA, it will be available in the next couple of days.
I will let you know as soon as it lands on production
Thanks once again for the patience!
Tom
Hi @Mangesh
An update about this fields:
Already available (On the Update Product mutation):
custom description
Vendor
vendor price
Still working on:
final sale
Image
Thanks again for the patience! I will let you know as soon as we have an update about it
Thanks again!
Tom
Hi @tomasw
Will images and final sale fields be available before the REST api is switched off tomorrow?
Thanks,
Shaunak
I don’t think it will be available for today, but I just wrote to the engineer working on this so he can provide an exact ETA.
I will let you know as soon as he responds.
Thanks again!
Tom
Thanks @tomasw. Will you be switching off the REST api tomorrow? Just trying to workout if we should leave the product updates via REST on, temporarily, until images and final sale are available in graphQL.
That is correct, Rest API would not be working tomorrow, I will try to expedite this fields, but in the meantime they won-t be available on the Product Update mutation
I apologize for the inconvenience with this and will update asap
Thanks again!
Tom