I am using the rest api in a multi shop and multi view.
store id (en): 6
store id (fr): 7
POST : /rest/en/V1/guest-carts/
return : cart id
GET : /rest/en/V1/guest-carts/{cart-id}
return : store_id:"6"
GET : /rest/fr/V1/guest-carts/{cart-id}
return : store_id:"6"
The problem will effective for add items name, when i use (en) to get the guest-carts, the item name will display as (en) , how can i display the (fr) in the item name with rest api ? Or How can i update it the store id to 7 with rest api in guest-carts?
Hello @adamlike19
This is not working for you?
http://localhost/rest/{store code}/V1/guest-carts
Just replace the {store code} with yours.
For example english:
http://localhost/rest/en/V1/guest-carts
It is not working.
If i use post {en}/V1/guest-carts to get the carts id , the store id is :6
after i get the carts data. the store id is :6 , after that get {fr}/V1/guest-carts also store id is 6
If i use post {fd}/V1/guest-carts to get the carts id , the store id is :7
after i get the carts data. the store id is :7 , after that get {en}/V1/guest-carts also store id is 7
That mean the store_id is not updated.