Hi all,
We made a script to normalize, validate and update addresses of all new orders coming in ShipHero using the GraphQL API, we did that because ShipHero doesn’t offer address validation in Canada. The script is working great, but addresses in Shopify are not being updated by ShipHero, even if the option is checked in the settings of the store connection.
As for the graphQL I’m doing a simple order_update
:
mutation {
order_update(data: {
order_id: "T3JkZXI6MTk4NzAzMTE1" shipping_address: {
first_name: "XXXX"
last_name: "XXXXXXXXX"
address1: "70 RUE XXXX"
address2: "APP 300"
city: "MONTREAL"
state: "QC"
zip: "X2X1X8"
country: "CA" }
})
{
request_id
complexity
}
}
Here a couple request_id:
60d24b0b35efd395cdb706ff
60d252146fef93f9aab5a65d
60d2672f34cf464f961194b1
This mutation does update the address in ShipHero, but not in Shopify.
If I change the address manually in the GUI, it does get push to Shopify, leading me to believe that the issue lies within the API.
==
My question is: I’m I doing something wrong? Is there something missing to trigger the push to Shopify?
==
Thank you,
Hans Daigle
I also submitted a ticket to support:
https://shiphero.na3.teamsupport.com/ticket/156000