I have read the docs and I find there is no way to get a cart ID using a Customer token or an ID so how can I manage my carts on multiple devices?
2 Likes
+1 here
If it’s not possible, I have no reason to use Cart API instead of Checkout API in my app and website.
+1 here
is there any to get the cart id using profile id.
Hello,
I have the same issue and I just discussed with Shopify support about it. They made 2 suggestions:
- their primary recommendation is to also migrate to the new Customer Account API and use the Customer.lastIncompleteCheckout field. It seems working similarly to the deprecated Checkout API, unless I guess it will return only the last incomplete checkout and not the last abandoned cart that is still a feature loss in my opinion.
- another recommendation is to use a custom middleware on our side and to store the customer id / cart id relationships into it.
Seems unfortunately there is no appetite from their API team to add a lastCartId field or something like that in the Storefront API Customer object.