cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Rest API in Magento 2.3.3

Problem with Rest API in Magento 2.3.3

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?

 

 

 

 

2 REPLIES 2

Re: Problem with Rest API in Magento 2.3.3

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

Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer

Re: Problem with Rest API in Magento 2.3.3

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.