Replies: 1
Hi there,
I generate my own cart key with a random UUID (36 characters) in Flutter. Then I try to call the endpoint ‘add to cart’ in postman with this URL: https://websitename.com/wp-json/cocart/v2/cart/add-item?cart_key=74d18590-a5d8-11ec-9c30-2b53d1a7744e
The cart key : 74d18590-a5d8-11ec-9c30-2b53d1a7744e
It does return a cart with the item that I added, however… when I call the GET cart endpoint, the items 0. An empty array. The Get URL: https://websitename/wp-json/cocart/v2/cart/?cart_key=74d18590-a5d8-11ec-9c30-2b53d1a7744e
This GET endpoint returns a cart with no items. For both requests, no token is sent in the headers. The status is 200.
What am I doing wrong?