GET /api/v1/cart/summary
Get item counts grouped by cart type, plus a total count.
Authentication: Required
Cache: None
Sample Request
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://api.grails.app/api/v1/cart/summaryResponse
// 200 OK
{
"success": true,
"data": {
"summary": {
"buy": 3,
"register": 1,
"renew": 0
},
"total": 4
},
"meta": {
"timestamp": "2026-04-08T00:00:00.000Z",
"version": "1.0.0"
}
}Error Responses
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid token |
| 500 | INTERNAL_ERROR | Failed to fetch cart summary |
Last updated on