order/updated webhook payload does not have the updated shipping_address

Highlighted
New Member
12 0 0

@Kevin_A in case the other examples I sent before are now out of your logging window, I am posting a new one.

This one has two order/update webhook requests:

 

Request 1 (Received On 2020-10-01 11:40:42 pm EDT)

--request POST 'https://xxxwynd-domainxxx/shopify/orders/update' \
--header 'X-Shopify-Test:false' \
--header 'X-Request-Id:6c8527cd-4df4-4bde-a3d3-f099a5e01729' \
--header 'Content-Length:8644' \
--header 'Version:HTTP/1.1' \
--header 'X-Shopify-Api-Version:2020-04' \
--header 'X-Shopify-Topic:orders/updated' \
--header 'User-Agent:Shopify-Captain-Hook' \
--header 'X-Request-Start:1601610042134' \
--header 'Host:xxxwynd-domainxxx' \
--header 'X-Shopify-Order-Id:2775482302624' \
--header 'Accept-Encoding:gzip;q=1.0,deflate;q=0.6,identity;q=0.3' \
--header 'X-Forwarded-Port:443' \
--header 'Total-Route-Time:0' \
--header 'Connection:close' \
--header 'X-Shopify-Hmac-Sha256:UedL372YhnBV9NKUL7X0d2OW9zRpzqQxUIr/bj2fIXs=' \
--header 'X-Shopify-Shop-Domain:some-shop.myshopify.com' \
--header 'Via:1.1 vegur' \
--header 'X-Forwarded-For:xxx.xxx.xxx.xxx' \
--header 'Accept:*/*' \
--header 'X-Forwarded-Proto:https' \
--header 'Connect-Time:1' \
--header 'Content-Type:application/json' \
--data '{ ... redacted ... }'

 

shipping_address part of the payload for Request 1

"shipping_address": {
    "first_name": "xxxx",
    "address1": "12xxx Aneta St",
    "phone": "xxxxxxxxxx",
    "city": "Los Angeles",
    "zip": "900xx",
    "province": "California",
    "country": "United States",
    "last_name": "xxxx",
    "address2": "Aneta St", <=== Was NOT removed!
    "company": null,
    "latitude": xx.xx,
    "longitude": xx.xx,
    "name": "xxxx xxxx",
    "country_code": "US",
    "province_code": "CA"
}

 

Request 2 (Received On 2020-10-01 11:40:29 pm EDT)

--request POST 'https://xxxwynd-domainxxx/shopify/orders/update' \
--header 'X-Shopify-Test:false' \
--header 'X-Request-Id:02b2ed46-d302-4c60-9045-6538eb1a9800' \
--header 'Content-Length:8644' \
--header 'Version:HTTP/1.1' \
--header 'X-Shopify-Api-Version:2020-04' \
--header 'X-Shopify-Topic:orders/updated' \
--header 'User-Agent:Shopify-Captain-Hook' \
--header 'X-Request-Start:1601610029781' \
--header 'Host:xxxwynd-domainxxx' \
--header 'X-Shopify-Order-Id:2775482302624' \
--header 'Accept-Encoding:gzip;q=1.0,deflate;q=0.6,identity;q=0.3' \
--header 'X-Forwarded-Port:443' \
--header 'Total-Route-Time:0' \
--header 'Connection:close' \
--header 'X-Shopify-Hmac-Sha256:UedL372YhnBV9NKUL7X0d2OW9zRpzqQxUIr/bj2fIXs=' \
--header 'X-Shopify-Shop-Domain:some-shop.myshopify.com' \
--header 'Via:1.1 vegur' \
--header 'X-Forwarded-For:xxx.xxx.xxx.xxx' \
--header 'Accept:*/*' \
--header 'X-Forwarded-Proto:https' \
--header 'Connect-Time:0' \
--header 'Content-Type:application/json' \
--data '{ ... redacted ... }'

 

shipping_address part of the payload for Request 2


"shipping_address": {
    "first_name": "xxxx",
    "address1": "12xxx Aneta St",
    "phone": "3107178794",
    "city": "Los Angeles",
    "zip": "900xx",
    "province": "California",
    "country": "United States",
    "last_name": "xxxx",
    "address2": "Aneta St",  <=== Was NOT removed!
    "company": null,
    "latitude": xx.xx,
    "longitude": xx.xx,
    "name": "xxxx xxxx",
    "country_code": "US",
    "province_code": "CA"
}

 

See the changes to address on the shop's Shopify dashboard:

Screen Shot 2020-10-02 at 12.12.34 .png

0 Likes
Highlighted
New Member
12 0 0

@james-langille Can you please take a look at this?

0 Likes
Highlighted
New Member
12 0 0

Hi, we are still having this issue.

I was able to replicate this problem just today:

  1. Placed an order via Shopify store front of my test shop
  2. The order/create webhook was called and the payload had all the relevant info
  3. I then opened the order on Shopify Dashboard and changed the shipping address. A few seconds later Shopify made a call to order/update webhook and the changes to the shipping address was present in the payload.
  4. 1 minute later, I changed the shipping address on Shopify Dashboard for a 2nd time but this time the order/update webhook was not called. (even after hours)
  5. 20 minutes later I changed the shipping address on Shopify Dashboard for a 3rd time and this time the order/update webhook was called and I got the shipping address change in the payload.

 

Screen Shot 2020-11-12 at 13.21.03 .png

0 Likes
Highlighted
Shopify Staff
Shopify Staff
181 22 29

Hey @wynd 

It looks like the root of this issue is related to how we deal with duplicate webhooks. There is some work being done to address this behaviour which will hopefully improve situations like this. In the meantime, you may want to consider using the order API to reconcile any webhooks that may have come in at a set time interval (perhaps once a week, or once a day depending on how many events you see per day). 

Kevin_A | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes