Re: cart_token is null in majority of orders in webhook

cart_token is null in majority of orders in webhook

Shopify Partner
5 0 6

We used cart_token in order/webhook to do connect identify carts created on customers' client side which completed in order. However, we noticed a majority of orders are not having cart_token data.


I understand in certain scenarios cart_token can be null, but for this store, more than 90 percent orders don't have cart_token. 


order_ids: 1054936956994, 1054934007874, 1054702075970, 1054702043202, 1054689656898

Replies 6 (6)

Shopify Staff
1134 84 234

Hey there, 


When orders are placed using an offsite gateway, they won't have a cart_token. I would imagine that the shop you mentioned is accepting card payments via an offsite gateway and causing their orders to lose their cart_tokens - this is normal though in that case.

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Shopify Partner
28 2 22

Gosh.... but why does offsite checkout would have empty cart token?

I need a way to save some data for the order when the customer is still in shopping cart, and the only thing I can see is the cart_token.

If the webhook does not have cart token for offsite checkout, what else I can reference?
I am a Freelance Web Engineer. Dedicated my life to e-commerce development.
2 0 2

Any solution to link an order to a cart when this value is missing ? 

Did not find anything and this is really important. 

For example if a user buys with paypal, we still should know the cart. Paypal is just the payment but the order is still linked to actions on this cart ...

2 0 2

Did anyone ever find a solution to this, I am also desperately looking for a solution for this

Shopify Partner
3 0 0

also need this information. Classic shopfiy

Shopify Partner
1 0 0

I need this information as well not sure how can we link the user journey's if we can't have cart_token only as the accessible thing only