# Retrieve Checkout Session

This request retrieves a checkout session using its unique identifier.

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

Base URL: `https://api-sandbox.whitelabel.com/v1`

Retrieve Checkout Session

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `id` (string, required)
  The unique identifier of the checkout session (UUID, 36 chars).

## Responses

### 200

200

- `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[])
  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 WHITELABEL to show your customers and let them choose from.
  - `plan_id` (string)
    Specifies a plan id created in WHITELABEL to show your customer in the checkout session (MAX 64; MIN 64).
  - `plan` (object[])
    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)
- `wallet_card_acceptance` (object)
  Card acceptance rules sent when the checkout session was created. Returned only when the session was created with it.
  - `supported_countries` (string[])
    Countries that issued the card, as ISO 3166-1 alpha-2 codes. This is the card's issuing country, not the customer's location.
  - `supported_networks` (string[])
    Card networks the customer can select. Replaces the default list (AMEX, DISCOVER, ELECTRON, ELO, MASTERCARD, VISA, MAESTRO).
  - `supported_funding_types` ("CREDIT" | "DEBIT"[])
    Funding types the customer can select: CREDIT, DEBIT, or both.

Example:

```json
{
  "id": "02caeb08-45c0-4670-9736-5bdee1b311f8",
  "merchant_order_id": "1752072398",
  "country": "AR",
  "payment_description": "Test Cards",
  "customer_id": "e937e18e-a684-4d7b-a1a1-ab64c10a941d",
  "callback_url": "https://google.com/?checkoutSession=02caeb08-45c0-4670-9736-5bdee1b311f8",
  "amount": {
    "currency": "ARS",
    "value": 520
  },
  "created_at": "2025-07-09T14:46:39.515251Z",
  "metadata": [
    {
      "key": "age",
      "value": "28"
    }
  ],
  "workflow": "SDK_CHECKOUT",
  "installments": {
    "plan_id": "string",
    "plan": [
      {
        "installment": 3,
        "rate": 1.5
      }
    ]
  },
  "used": true,
  "checkout_id": "6822f80c-684e-41a3-8628-78963d3d60f7",
  "wallet_card_acceptance": {
    "supported_countries": [
      "BR"
    ],
    "supported_networks": [
      "VISA",
      "MASTERCARD"
    ],
    "supported_funding_types": [
      "CREDIT"
    ]
  }
}
```

### 400

400

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_REQUEST",
  "messages": [
    "Invalid request"
  ]
}
```

### 401

401

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_CREDENTIALS",
  "messages": [
    "Invalid credentials"
  ]
}
```

### 403

403

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "AUTHORIZATION_REQUIRED",
  "messages": [
    "The merchant has no authorization to use this API."
  ]
}
```