---
title: "Get a checkout session by ID"
method: GET
path: "/api/v1/checkout-sessions/{id}"
tags: ["Checkout Sessions"]
---

# Get a checkout session by ID

`GET /api/v1/checkout-sessions/{id}`

## Path parameters

- `id` string, required

## Response `200`

Checkout session details

- GetCheckoutSessionResponse
  - `session` CheckoutSession, required
    - `billing_day_anchor` integer, nullable
    - `billing_start_date` string, date, nullable
    - `checkout_type` 'SELF_SERVE' | 'SUBSCRIPTION_ACTIVATION' | 'PLAN_CHANGE', required
    - `checkout_url` string, nullable
    - `completed_at` string, date-time, nullable
    - `coupon_code` string, nullable
    - `created_at` string, date-time, required
    - `customer_id` string, MeteroidId, required
    - `expires_at` string, date-time, nullable — When the session expires. None means the session never expires.
    - `id` string, MeteroidId, required
    - `net_terms` integer, nullable
    - `payment_methods_config` union — Online (card/direct debit), BankTransfer, or External.
      - object
        - `config` OnlineMethodsConfig
          - `card` OnlineMethodConfig
            - `enabled` boolean, required
          - `direct_debit` OnlineMethodConfig
            - `enabled` boolean, required
        - `type` 'online', required
      - object
        - `account_id` string, nullable
        - `type` 'bank_transfer', required
      - object
        - `type` 'external', required
    - `plan_version_id` string, MeteroidId, required
    - `status` 'CREATED' | 'AWAITING_PAYMENT' | 'COMPLETED' | 'EXPIRED' | 'CANCELLED', required
    - `subscription_id` string, MeteroidId
    - `trial_duration_days` integer, nullable

## Other responses

- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

## Changes

- **2026-03-06** (v1) `bfc7b3ed32b2` — 1 warning
  - added the new `PLAN_CHANGE` enum value to the `session/checkout_type` response property for the response status `200`
- **2026-02-05** (v1) `f9c417ec1ed4` — 1 info
  - added the optional property `session/payment_methods_config` to the response with the `200` status
- **2026-01-28** (v1) `44bcc86fb202` — 1 info
  - the endpoint scheme security `bearer_auth` was added to the API
- **2026-01-19** (v1) `7d4a46169b06` — 1 info
  - endpoint added
- **2025-07-09** (v1) `dece17f86f99` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/meteroid-oss/apis/meteroid/changes/api/v1/checkout-sessions/:id/get.md)

---

[API](https://skmtc.dev/meteroid-oss/apis/meteroid.md) · [All operations](https://skmtc.dev/meteroid-oss/apis/meteroid/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/meteroid-oss/meteroid/revisions/bfc7b3ed32b2/schema)
