What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Storefront api Cart item is null!

Storefront api Cart item is null!

hates
Shopify Partner
7 1 4

Hello,

I want to sync our customer's website cart and mobile app's cart. For example customer logins from website and adds 2 items to cart tehn left it. After that customer opens the mobile app, I want to show dialog "you have added 2 items before, Do you want to add these items your cart?"

For this purpose, I will save all carts changes to our backend and I managed to listen carts/create and carts/update webhook. I can receive carts changes immediately, but when I use the storefront API to retrive a cart to detect cart belongs which customer, api is returning cart is null.

{"data":{"cart":null}}
Replies 0 (0)