@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:
Hi, we are still having this issue.
I was able to replicate this problem just today:
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
User | Count |
---|---|
28 | |
7 | |
7 | |
6 | |
5 |