When i try to add an item to the cart with the quantity i want the api responses with the Quantity added everything thing is working fine but when i request the CartCount its zero , when i try to add a new utem to the cart it dose restart from zero although i added a few items seconds ago
Without preserving cookies in the first response that the storefront returns, your next request will be interpreted as from a new anonymous user and storefront will create a new empty cart for it.
Solutions:
You need to first redirect the user to back-office storefront, to receive auth cookies, then your client scripts will use it for each cross-domain API call from your store to the back-office storefront API.
When i try to add an item to the cart with the quantity i want the api responses with the Quantity added everything thing is working fine but when i request the CartCount its zero , when i try to add a new utem to the cart it dose restart from zero although i added a few items seconds ago
When i add items: 101_Full.txt
When i Check the Cart: 102_Full.txt