---
title: "Retrieve Checkout Session"
method: GET
path: "/checkout/sessions/{id}"
---

# Retrieve Checkout Session

`GET /checkout/sessions/{id}`

## Path parameters

- `id` string, required

## Response `200`

200

- object
  - `id` string — The unique identifier of the checkout session (MAX 64; MIN 36).
  - `merchant_order_id` string — The unique identifier of the customer's order (MAX 255; MIN 3).
  - `country` string — Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1).
  - `payment_description` string — The description of the payment (MAX 255; MIN 3).
  - `customer_id` string — The unique identifier of the customer (MAX 64; MIN 36).
  - `callback_url` string — The URL where to redirect the customer after the payment (MAX 526; MIN 3).
  - `amount` object — Specifies the payment amount object, with the value and currency.
    - `currency` string — The currency used to make the payment (MAX 3; MIN 3; ISO 4217).
    - `value` number — The payment amount (multiple of 0.0001).
  - `created_at` string — Checkout Session creation date and time (MAX 27; MIN 27; ISO 8601).
  - `metadata` object[], nullable — Specifies a list of metadata objects. You can add up to 50 metadata objects.
    - `key` string — Specifies one metadata key.
    - `value` string — Specifies the value for the defined metadata key.
  - `workflow` string — The payment workflow type that specifies how the checkout session will be processed.
  - `installments` object — The object to send the installment plan created in Yuno to show your customers and let them choose from.
    - `plan_id` string, nullable — Specifies a plan id created in Yuno to show your customer in the checkout session (MAX 64; MIN 64).
    - `plan` object[], nullable — Installments to show the customer with the checkout session.
      - `installment` integer — The number of monthly installments shoppers can choose.
      - `rate` number — The rate that will be applied to the final amount of the transaction by the payment provider after using installments.
  - `used` boolean — Specifies whether a checkout session was used previously or not.
  - `checkout_id` string

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403

---

[API](https://skmtc.net/y/apis/ai-caller.md) · [All operations](https://skmtc.net/y/apis/ai-caller/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/y/ai-caller/versions/05b629819b49/schema)
