Skip to Content

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/summary

Response

// 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

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token
500INTERNAL_ERRORFailed to fetch cart summary
Last updated on