Avaneendra Alugupalli • 8 months ago
REST API for getting the details of cart, order etc?
hi
I am looking to see what the API end points for getting the details of cart, order etc?
I started a front-end service for the online-botique. But when I tried to curl -v GET http://34.171.20.58/cart it returns "200, OK" but it does not return the cart I created on the website.
Comments are closed.

2 comments
Giselle Ocampo Manager • 7 months ago
Hi there. I'll pass this along to the Google team and we'll get back to you as soon as we can! Thanks.
Avaneendra Alugupalli • 7 months ago
I think I figured out from the code that the following are the REST API end points exposed by the APP.
I guess Google team can confirm if my understanding is correct.
/ GET, HEAD Home page of the boutique
/product/{id} GET, HEAD Get the product details by product ID
/product-meta/{ids} GET Get metadata/details for one or more products
/cart GET, HEAD View the current cart
/cart POST Add an item to the cart (requires JSON body)
/cart/empty POST Empty the cart
/cart/checkout POST Place an order (checkout; requires JSON body with address/payment info)
/setCurrency POST Set currency preference (JSON body)
/logout GET Logout the current session
/assistant GET Access the customer support assistant (likely HTML page)
/bot POST Chatbot endpoint (likely takes user query in JSON and returns response)