cart_token is null when order placed using web

cart_token is null when order placed using web

adityaklean
Shopify Partner
1 0 3

I've configured a webhook in my Shopify store to capture order details via my API. According to the documentation, if an order is made using POS or the Control Panel, the cart_token value will be null. Conversely, if a customer directly orders from my store, the cart_token value is expected to have a non-null value. In my widget, customers select a project during the ordering process, and upon order completion, I anticipate receiving a cart_token. The challenge arises because Shopify isn't populating the cart_token, even when the "source_name" is tagged as "web." I presume that when the source_name is "web," the cart_token should not be null, as this order is directly placed through the website, not via POS or the control panel.

Replies 0 (0)