> ## Documentation Index
> Fetch the complete documentation index at: https://docs.easner.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List checkout sessions

> Sessions in this mode, newest first. The list reads Easner's record, so a status can lag a webhook. Retrieve one session for the live status. `ending_before` is `400`: page forward with `starting_after`.



## OpenAPI

````yaml /openapi.yaml get /v1/checkout/sessions
openapi: 3.2.0
info:
  title: Easner API
  version: '1'
  summary: Banking, Checkout, Connect and platform routes on the Easner v1 API.
  description: >
    Every route and method under `/v1`. The paths, scopes and fields are taken
    from the route handlers and their

    validators. Amounts are integers in the smallest currency unit (cents).
    Every list uses one cursor shape:

    `limit`, `starting_after`, `ending_before`, and `created[gte]` /
    `created[lte]` where the endpoint is dated.


    Authenticate with a secret key (`easner_sk_test_…` or `easner_sk_live_…`) as
    a bearer token. One key works for

    Banking, Checkout and Connect; scopes decide what each key can call. See
    [Authentication](/authentication) and

    [API keys and scopes](/api-keys). Webhook payloads are described under
    `webhooks`.
  termsOfService: https://www.easner.com
  contact:
    name: Easner support
    url: https://www.easner.com
servers:
  - url: https://api.easner.com
    description: Production (live and test, chosen by the key)
security:
  - bearerAuth: []
tags:
  - name: Customers
    description: Banking customers (`cus_`). Create, list, retrieve and start verification.
  - name: Accounts
    description: Banking accounts (`acct_`), deposit details and card onramp sessions.
  - name: Payment methods
    description: The catalogue of ways to send and receive money.
  - name: Destinations
    description: Where money is sent (`dest_`).
  - name: Quotes
    description: Priced quotes for a send (`qt_`).
  - name: Transfers
    description: Sends of money (`tr_`), with customer authorization.
  - name: Transactions
    description: The ledger of banking movements (`txn_`).
  - name: Checkout sessions
    description: Hosted, overlay and inline checkout sessions (`cs_`).
  - name: Payments
    description: Settled checkout payments.
  - name: Refunds
    description: Refunds of checkout payments (`re_`).
  - name: Subscriptions
    description: Recurring checkout subscriptions (`sub_`).
  - name: Checkout customers
    description: Checkout customers (UUID ids). Not the banking customers above.
  - name: Customer portal
    description: Signed links to the customer portal.
  - name: Products
    description: Products for checkout and payment links.
  - name: Prices
    description: 'Prices on products. A price is immutable: only `active` changes.'
  - name: Promotion codes
    description: >-
      Codes customers type at checkout. A code is immutable: only `active`
      changes.
  - name: Discounts
    description: A discount granted to one email. It applies when that email checks out.
  - name: Publishable keys
    description: Browser check for a publishable key. Not for your server.
  - name: Connect
    description: >-
      Payees (`pye_`), credits, payouts and the ledger. Pay the people on your
      platform into their own Easner accounts.
  - name: API keys
    description: Keys of this mode. Creating a key stays in Console.
  - name: Webhook endpoints
    description: Where Easner sends events. The signing secret is shown once, on create.
  - name: Webhooks
    description: >-
      Events Easner sends to your endpoints. Each is a POST with an
      `easner-signature` header.
paths:
  /v1/checkout/sessions:
    get:
      tags:
        - Checkout sessions
      summary: List checkout sessions
      description: >-
        Sessions in this mode, newest first. The list reads Easner's record, so
        a status can lag a webhook. Retrieve one session for the live status.
        `ending_before` is `400`: page forward with `starting_after`.
      operationId: listCheckoutSessions
      parameters:
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/StartingAfter'
        - $ref: '#/components/parameters/EndingBefore'
        - $ref: '#/components/parameters/CreatedGte'
        - $ref: '#/components/parameters/CreatedLte'
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - open
              - processing
              - complete
              - expired
              - failed
        - name: customer
          in: query
          required: false
          description: A checkout customer id (UUID).
          schema:
            type: string
            format: uuid
        - name: payment_link
          in: query
          required: false
          description: >-
            A payment link id, in the UUID form the list returns as
            `payment_link`.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: A page of checkout sessions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutSessionList'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    Limit:
      name: limit
      in: query
      required: false
      description: >-
        Whole number from 1 to 100. Default 20. Anything else is `400`
        `invalid_request`.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    StartingAfter:
      name: starting_after
      in: query
      required: false
      description: >-
        The id of the last item you have. Returns the items after it: the next
        page.
      schema:
        type: string
    EndingBefore:
      name: ending_before
      in: query
      required: false
      description: >-
        The id of the first item you have. Returns the page just before it. Send
        one cursor or the other, not both. Checkout sessions, payments and
        subscriptions refuse it with `400`.
      schema:
        type: string
    CreatedGte:
      name: created[gte]
      in: query
      required: false
      description: >-
        Keeps the items created at or after this time. Unix seconds, or an ISO
        8601 date.
      schema:
        type: string
    CreatedLte:
      name: created[lte]
      in: query
      required: false
      description: >-
        Keeps the items created at or before this time. Unix seconds, or an ISO
        8601 date.
      schema:
        type: string
  schemas:
    CheckoutSessionList:
      allOf:
        - $ref: '#/components/schemas/ListEnvelope'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/CheckoutSessionSummary'
    ListEnvelope:
      type: object
      required:
        - object
        - data
        - has_more
        - url
      properties:
        object:
          const: list
        has_more:
          type: boolean
          description: Read this before you assume the list ended.
        url:
          type: string
          description: The path of the list.
    CheckoutSessionSummary:
      type: object
      description: >-
        A session in a list. The list reads Easner's record, so the status can
        lag a webhook.
      required:
        - object
        - id
        - checkout_session_id
        - url
        - status
        - mode
        - amount_total
        - currency
        - created
        - livemode
      properties:
        object:
          const: checkout.session
        id:
          type: string
          pattern: ^cs_
        checkout_session_id:
          type: string
          pattern: ^cs_
        url:
          type: string
          format: uri
        status:
          type: string
          enum:
            - open
            - processing
            - complete
            - expired
            - failed
        mode:
          type: string
          enum:
            - payment
            - subscription
        amount_total:
          type: integer
        currency:
          type: string
        customer:
          type:
            - string
            - 'null'
          format: uuid
        customer_email:
          type:
            - string
            - 'null'
        payment_link:
          type:
            - string
            - 'null'
          format: uuid
        subscription_id:
          type:
            - string
            - 'null'
        metadata:
          type: object
          additionalProperties:
            type: string
        created:
          type: string
          format: date-time
        livemode:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    Error:
      type: object
      required:
        - type
        - code
        - message
      properties:
        type:
          type: string
          enum:
            - authentication
            - permission
            - invalid_request
            - rate_limit
            - api_error
          description: >-
            authentication is 401. permission is 403. invalid_request is 400,
            404 or 409. rate_limit is 429. api_error is 5xx.
        code:
          type: string
          description: >-
            The stable code, for example invalid_api_key, key_forbidden,
            invalid_amount or rate_limit.
        message:
          type: string
        fields:
          type: array
          description: The fields that are wrong, on validation errors.
          items:
            type: object
            required:
              - name
              - message
            properties:
              name:
                type: string
              message:
                type: string
  responses:
    Error:
      description: >-
        An error. Branch on `error.type` and `error.code`. Do not parse
        `error.message`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: easner_sk_test_…
      description: >-
        A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization:
        Bearer. Each key has one business, one mode and fixed scopes. Transfer
        routes also accept a transfer's easner_ta_… secret for the customer.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.