---
title: "Get a Session"
method: GET
path: "/checkout/v1/sessions/{id}"
tags: ["Hosted Checkout"]
---

# Get a Session

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

Retrieves the details of a payment session by its ID. This is the recommended way to check 
the final status of a payment after the customer is redirected back to your site.

## Path parameters

- `id` string, required

## Response `200`

Session retrieved successfully

- CheckoutSession
  - `id` string — Unique session identifier
  - `url` string, uri — Redirect your customer to this URL to begin the payment
  - `status` 'pending' | 'completed' | 'expired' — Session status
  - `payment_id` number — Associated payment ID
  - `amount_total` number — Total amount to be charged
  - `currency` string — Currency used
  - `expires_at` integer — Expiration time (Unix timestamp in seconds)
  - `external_id` string — Order reference from the merchant
  - `session_type` string — Type of session
  - `checkout_type` string — Checkout method
  - `success_url` string, uri, nullable — Success redirect URL
  - `return_url` string, uri — Return/fallback redirect URL
  - `pending_url` string, uri, nullable — Pending redirect URL
  - `metadata` object — Custom data sent by the merchant
  - `payment_method_types` string[] — Allowed payment methods
  - `ui_config` object — UI configuration applied
  - `ui_config_version` string — Version of UI config
  - `created_at` integer — Creation timestamp in milliseconds
  - `modified_at` integer — Last modification timestamp in milliseconds
  - `paid_at` integer, nullable — Payment completion timestamp in milliseconds
  - `customer` object
    - `first_name` string
    - `last_name` string
    - `email` string
  - `line_items` object[]
    - `name` string
    - `quantity` number
    - `unit_price` number
    - `product_id` string
  - `transaction_status` 'Pending' | 'Success' | 'Declined' | 'Expired' — Result of transaction
  - `provider` string — Gateway used

---

[API](https://skmtc.net/tonderio/apis/tonder.md) · [All operations](https://skmtc.net/tonderio/apis/tonder/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonderio/tonder/revisions/aface34fb9b2/schema)
