Magento 2 – How to Get Cart ID

apicartmagento2

I am trying to learn swagger in magento 2.

In core APIs of Magento 2 there is a required field cart_id.

enter image description here

enter image description here

I don't know what is this cart id and how can i find this ?

Best Answer

*Cart id it means Quote id you will get quote Id in your Database Under "quote" table It seems you want payment information use the below API try this for payment method :

67 is my quote Id : In your case you will get under Quote Table

GET : your-domain-url/index.php/rest/V1/carts/67/payment-methods

you will get the below resonse response : [ { "code": "checkmo", "title": "Check / Money order" } ]*

Related Topic