List carts
Request
- Base URLhttps://gorest.co.in/public/v3
- URLhttps://gorest.co.in/public/v3/carts
- Auth
- none
- or HTTP bearer
Query parameters
Items on one page.
The cursor of the next page, from meta.next_cursor or the Link header. Treat it as opaque; it works only with the same query.
Offset paging, 1 based, at most 10,000. Cannot be sent with page[after]. Pages can shift while you write.
true adds meta.total to a cursor page (it costs a count).
filter[user_id]= (one user), filter[status]=active,abandoned,ordered (any of). An id you cannot see gives an empty list.
One field; a leading - sorts descending. Default -created_at.
fields[carts]=status,currency returns only those fields; included items are added whole.
Adds related items to each item, one level deep: user, items. Comma separated.
Headers
An ETag from an earlier answer; an unchanged item answers 304 with no body.
Response
One page of carts.
Example response
{
"data": [
{
"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.