---
title: "Get session details"
method: GET
path: "/v2/checkout/sessions/{session_id}"
tags: ["Hosted Checkout", "'@internal'"]
---

# Get session details

`GET /v2/checkout/sessions/{session_id}`

## Request

- Base URL: `https://docs.teya.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.teya.com/v2/checkout/sessions/{session_id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.teya.xyz/oauth/v2/oauth-authorize`
    - Client credentials
    - Token URL: `https://id.teya.xyz/oauth/v2/oauth-token`
  - OAuth 2
    - Authorization code: `https://id.teya.com/oauth/v2/oauth-authorize`
    - Client credentials
    - Token URL: `https://id.teya.com/oauth/v2/oauth-token`
- TypeScript: <https://skmtc.dev/teya/apis/teya-apis-for-external-plugins/docs/v2/checkout/sessions/:session_id/get.ts> (a function with typed inputs; its response is checked against the schema)

API to return details of a given session.
<br><strong>Access Token Required scope:</strong> checkout/sessions/id/get

## Path parameters

- `session_id` string, uuid, required: This is the id of the session that has been created and will be used to interact across different systems

## Headers

- `User-Agent` string, required

## Response `200`

Session has been returned

- CheckoutSessionInfoResponse: Returns the Hosted Checkout session information that will be used to process an Ecommerce transaction
  - `amount` CheckoutAmount, required: The transaction amount in the smallest currency unit according to ISO 4217 format. For example: - 100 ISK (Icelandic króna): the amount is 100 (since 1 ISK = 1 subunit). - 100 EUR (Euro): the amount is 10000 (since 1 EUR = 100 cents). - 100 USD (US Dollar): the amount is 10000 (since 1 USD = 100 cents). - 100 KWD (Kuwaiti Dinar): the amount is 100000 (since 1 KWD = 1000 fils).
    - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UZS' | 'VED' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XCG' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', enum, required: Currency code (e.g. `USD`, `GBP`, `EUR`) following ISO-4217 format.
    - `value` integer, required: The transaction amount in the smallest currency unit according to ISO 4217 format.
  - `billing_address` CheckoutBillingAddress: Customer's Billing Address
    - `city` string: The city where the business is located
    - `country` string, required: The country where the business is located (ISO-3166-1 alpha2)
    - `state` string: The state where the business is located
    - `street_address_line1` string: The street address of a business
    - `street_address_line2` string: The street address of a business
    - `street_address_line3` string: The street address of a business
    - `zipcode` string: The zipcode where the business is located
  - `business_data` CheckoutBackendBusinessData, required: The business information
    - `active` boolean, required
    - `address` CheckoutBusinessAddress, required: The address of a business
      - `city` string: The city where the business is located
      - `country` string, required: The country where the business is located (ISO-3166-1 alpha2)
      - `state` string: The state where the business is located
      - `street_address_line1` string: The street address of a business
      - `street_address_line2` string: The street address of a business
      - `street_address_line3` string: The street address of a business
      - `zipcode` string: The zipcode where the business is located
    - `id` string, uuid, required: The unique identifier of a business (associated store entity)
    - `name` string, required: The name of a business
    - `notification_email` string
  - `cancel_url` string: URL to bring back the customer to the cart. If included in the call we will render the “Back” button in the HostedCheckout UI
  - `customer` CheckoutCustomer
    - `email` string: Customer email address
    - `name` string: Customer name, used to prefill the hosted checkout form
    - `phone_number` string: Customer phone number An international phone number including the country code, formatted according to the E.164 standard.
  - `customer_success_email` string: If present, an e-mail is sent to the merchant customer upon successful payment with the receipt.
  - `dcc` CheckoutDccOfferInfo: Dynamic Currency Conversion offer info for a session.
    - `cardholder_amount` CheckoutAmount, required: The transaction amount in the smallest currency unit according to ISO 4217 format. For example: - 100 ISK (Icelandic króna): the amount is 100 (since 1 ISK = 1 subunit). - 100 EUR (Euro): the amount is 10000 (since 1 EUR = 100 cents). - 100 USD (US Dollar): the amount is 10000 (since 1 USD = 100 cents). - 100 KWD (Kuwaiti Dinar): the amount is 100000 (since 1 KWD = 1000 fils).
      - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UZS' | 'VED' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XCG' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', enum, required: Currency code (e.g. `USD`, `GBP`, `EUR`) following ISO-4217 format.
      - `value` integer, required: The transaction amount in the smallest currency unit according to ISO 4217 format.
    - `ecb_markup` string: Markup of the offered exchange rate (i.e. amount added) over the latest ECB exchange rate for a currency pair (decimal format, with 6 decimal places). Only provided when both currencies are EEA currencies.
    - `exchange_rate` string, required: Latest exchange rate for a currency pair (decimal format, with 6 decimal places)
    - `markup` string, required: Markup of the offered exchange rate (i.e. amount added) over the latest exchange rate for a currency pair (decimal format)
  - `enabled_card_brands` string[]: List of enabled card brands for the session.
  - `failure_url` string: URL to redirect the customer once the transaction has finished with error
  - `language` string: The language to be used in the Hosted Checkout session. IETF BCP 47. If not provided we will use for rendering in HC the Accept-Language request header.
  - `line_items` CheckoutSessionLineItem[]: Basket information to be shown in the payment screen
    - `description` string, required: This a description for a item in the basket
    - `quantity` integer, required: The number of items, Must to be a positive value
    - `unit_price` integer, required: The price of a single item including VAT, Can be negative for discounts
  - `merchant_reference` string: An identifier that can be used to reference the transaction on the merchant's side. Overrides 'source_reference_id
  - `merchant_success_email` string: If present, an e-mail is sent to the merchant upon successful payment with the receipt.
  - `metadata` object: Metadata key-value pairs for the session. Maximum 10 keys allowed. Keys must not exceed 40 characters and values must not exceed 500 characters.
  - `payment_link_id` string, uuid: A unique identifier for the created payment link
  - `payment_link_type` 'SINGLE_USE', enum: Type of the payment link used to create the session
  - `payment_status` 'NONE' | 'SUCCESS' | 'FAILED', enum, required: Status of the payment, only present when the session status is COMPLETED.
  - `post_success_payment` 'SHOW_SUCCESS_PAGE' | 'REDIRECT', enum: Where the customer browser will be sent after a successful transaction. Possible values: SHOW_SUCCESS_PAGE (Display the HostedCheckout payment completed page with a button to redirect to the success_url), REDIRECT (Redirect the customer browser directly to the success_url). Note: For transactions with Dynamic currency conversion (DCC), we will not redirect and will show success page if no customer_success_email is sent. Because we are required to show the rates to the customer.
  - `session_id` string, uuid, required: This is the id of the session that has been created and will be used to interact across different systems
  - `session_status` 'ACTIVE' | 'PROCESSING' | 'COMPLETED' | 'EXPIRED', enum, required: Indicates whether the session is still available for use. New payments can only happen when the status is ACTIVE
  - `required_customer_fields` string[]: Customer fields that must be collected during checkout
  - `success_url` string: URL to redirect the customer once the transaction has successfully finished
  - `logo_url` string: Public URL of the merchant's logo to display on the checkout page. Configured in the Teya Business Portal.
  - `checkout_custom_note` string: Custom note to display on the checkout page. Maximum 1000 characters. Configured in the Teya Business Portal.
  - `privacy_policy_url` string: HTTPS URL linking to the merchant's privacy policy. Displayed on the checkout page. Configured in the Teya Business Portal.
  - `terms_url` string: HTTPS URL linking to the merchant's terms and conditions. Displayed on the checkout page. Configured in the Teya Business Portal.
  - `transaction_id` string: The unique identifier for the new transaction
  - `type` 'ACCOUNT_VERIFICATION' | 'PRE_AUTHORISATION' | 'SALE', enum, required: Indicates the transaction type. Use SALE for standard payments, PRE_AUTHORISATION to reserve funds for later capture, or ACCOUNT_VERIFICATION to verify a card without charging it.

## Other responses

- `400`: Bad request
- `401`: Lacks valid authentication credentials for the requested resource
- `403`: The server understands the request but refuses to authorise it
- `404`: Session not found
- `429`: Too many requests in a given amount of time
- `500`: Internal Server Error

---

[API](https://skmtc.dev/teya/apis/teya-apis-for-external-plugins.md) - [All operations](https://skmtc.dev/teya/apis/teya-apis-for-external-plugins/llms.txt) - [OpenAPI document](https://skmtc.dev/teya/apis/teya-apis-for-external-plugins/revisions/e26c4d895fa7?raw)
