Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

List parked carts

Any signed in user. Returns the caller’s carts here, newest first with item count and total. Recalled and voided carts drop out of the list, so only carts still on hold come back.

GET/api/v1/parked
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Responses
200

The caller's parked carts

itemsobject[]required
Show properties
Array of object
idstringrequired
session_idstring | nullrequired
cartobject[]required
Show properties
Array of object
unit_pricenumber | string
quantitynumber | string
parked_atstringrequired
statusstringrequired
item_countintegerrequired
min -9007199254740991 · max 9007199254740991
totalnumberrequired
401

Not authenticated

detailstringrequired
Try it
Server
Authorization
Request
curl -X GET 'http://localhost:8000/api/v1/parked' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "items": [
    {
      "id": "string",
      "session_id": "string",
      "cart": [
        {
          "unit_price": 0,
          "quantity": 0,
          "property1": null,
          "property2": null
        }
      ],
      "parked_at": "string",
      "status": "string",
      "item_count": -9007199254740991,
      "total": 0
    }
  ]
}