Rob
Rob

Reputation: 1636

Shopify cart/update abandoned carts

Does Shopify carts/update Webhooks fire when the cart session expires?

I need to interact with the cart each time it is updated - I also need to do something when the cart expires. Shopify keeps a cart alive for 14 days before clearing it...

I can't wait 14 days to test if it fires a Webhook...

Some people will suggest I hook into abandoned checkouts - but I need access to the cart.

Edit - I know I can hook into the add/remove events with my own listener... But I need access to the cart when the customer isn't interacting with it - they've abandoned their cart... its been 14 days... their session has expired and all the items within their cart have been returned to inventory.

I need to trigger something when their cart expires.

Upvotes: 0

Views: 1290

Answers (1)

David Lazar
David Lazar

Reputation: 11427

Cart/Update webhook has a both a token and timestamp. If no order arrives matching the token within 14 days, you can do what you need to do with the now expired cart.

Upvotes: 1

Related Questions