---
search:
  tags:
    - Checkout Sessions
    - GET
seo:
  description: >-
    Default sort is last_activity_at descending. Reference for the GET
    /checkout-sessions endpoint in the Sarvex V1 API.
sidebar:
  label: List checkout sessions
  badge: GET
title: List checkout sessions
type: openapi-operation
---
Default sort is last_activity_at descending.

`GET /checkout-sessions`

**Responses**

- `200` — Checkout sessions.
- `422` — Request body failed validation.

Response example, 200:

```json
{
  "data": [
    {
      "checkout_id": "string",
      "store_id": "string",
      "surface": "ucp_checkout",
      "agent_platform": "string",
      "state": "initiated",
      "current_stage": "string",
      "started_at": "2019-08-24T14:15:22Z",
      "last_activity_at": "2019-08-24T14:15:22Z",
      "terminal_at": "2019-08-24T14:15:22Z",
      "cart_summary": {
        "currency": "AUD",
        "total_minor": 0,
        "item_count": 0
      },
      "escalation": {
        "reason": "string",
        "escalated_at": "2019-08-24T14:15:22Z",
        "continue_url_issued": true,
        "returned_at": "2019-08-24T14:15:22Z",
        "resolved": true
      },
      "failure": {
        "code": "string",
        "cause": "string",
        "stage": "string"
      },
      "diagnosis": {
        "stage_reached": "string",
        "cause": "connector_create_failed",
        "plain_language_summary": "string",
        "recommended_action": "string",
        "evidence": [
          0
        ]
      },
      "event_count": 0,
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "page": {
    "cursor": "string",
    "has_more": true
  }
}
```

Response example, 422:

```json
{
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "details": {
      "fields": {
        "email": "must be a valid email address"
      }
    }
  }
}
```
