Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: API CHANGED - carts/create webhook structure suddenly changed

API CHANGED - carts/create webhook structure suddenly changed

Levi3
Shopify Partner
13 0 5

About 20 minutes ago (5:40pm EDT) we started getting hundreds of invalid carts/create webhook calls across multiple shopify accounts. It looks exactly like the last issue I posted on here where it started ramping up like a recent roll-out, and the rate is still increasing.

The payloads look like:

{"cart":{"id":"a3f1...","token":"a3f1....","line_items":[],"note":null,"updated_at":"2018-10-23T21:44:49.031Z","created_at":"2018-10-23T21:44:49.031Z"}}

The documentation (and historical events) do not have the data nested in a "cart" object. this is a sudden undocumented breaking change as far as I can tell. see the documentation: https://help.shopify.com/en/api/reference/events/webhook

Help. Can you guys roll back whatever deploy caused this, or does everyone need to suddenly handle a new format?

This also affects the carts/update webhook in the same way.

Replies 6 (6)

Levi3
Shopify Partner
13 0 5

When I said hundreds, I meant hundreds per minute. We've seen over 13k of these requests in the last 25 minutes and the rate is still increasing.

FiveThrive
Shopify Partner
20 0 3

We are having the same issue. From preliminary triage it looks like the carts/create and carts/update webhooks have had an extra node added to the webhook data.

Levi3
Shopify Partner
13 0 5

I've been unable to get help through shopify support. They could not confirm the issue, but escalated my concern and will be in touch in 1 to 3 business days... in the meantime we're deploying a work around to our servers.

Hopefully our past experience helps you out. The last time something like this happened, shopify was able to roll back a deploy causing the issue within a few hours. however, even after rolling back, the invalid requests continued for days because of their backoff/retry logic. So in that case, we had to deploy a fix on our end as well to drop the bad requests and return a 200 status code so they would stop retrying. They did not resend the data in the correct format.

Here's that thread in case it helps: https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/product-webhook-sending-variants-as-a-...

FiveThrive
Shopify Partner
20 0 3

Thanks for the update Levi, I've had no luck other than getting one response on Twitter. I've deployed a workaround as well that is backwards compatible if they do roll it back.

Mike_Arsenault_
Shopify Staff (Retired)
1 0 0

Hello everyone! We were able to roll back the change that broke the WebHooks integration, that *just* happened. Can you confirm things are looking normal for you again?

To learn more visit the Shopify Help Center or the Community Blog.

Levi3
Shopify Partner
13 0 5

I can confirm new cart events are normal again for us. Thanks.