Shop
Get a cart
get/carts/{id}
Request
- Base URLhttps://gorest.co.in/public/v3
- URLhttps://gorest.co.in/public/v3/carts/{id}
- Auth
- none
- or HTTP bearer
Query parameters
fields[carts]=status,currency returns only those fields; included items are added whole.
includestring
Adds related items to each item, one level deep: user, items. Comma separated.
Headers
If-None-Matchstring
An ETag from an earlier answer; an unchanged item answers 304 with no body.
Response
The cart. With include the ETag is weak, as it covers the included items too.
Example response
{
"currency": "INR",
"items": [
{
"product": {
"category": {
"name": "Home and kitchen",
"slug": "home-kitchen"
},
"currency": "INR",
"name": "Wireless earbuds",
"price_minor": 249900,
"sku": "EL-1001"
}
}
],
"user": {
"email": "aarav.sharma@example.com",
"name": "Aarav Sharma"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.