> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blink.store/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a checkout session

> Fetches information of a checkout session by its ID, including payment status.

- **Request Headers:**
  - `x-store-id` (string, required): The store ID owning the checkout session.

- **Path Parameters:**
  - `id` (string, required): Identifier of the checkout session.

- **Response:** Details about the checkout session such as status, amount, and customer information.

Useful for verifying the result of a customer's purchase and providing relevant order tracking details.



## OpenAPI

````yaml /api-reference/blink-api.json get /checkouts/{id}
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /checkouts/{id}:
    get:
      tags:
        - Checkouts
      summary: Retrieve a checkout session
      description: >-
        Fetches information of a checkout session by its ID, including payment
        status.


        - **Request Headers:**
          - `x-store-id` (string, required): The store ID owning the checkout session.

        - **Path Parameters:**
          - `id` (string, required): Identifier of the checkout session.

        - **Response:** Details about the checkout session such as status,
        amount, and customer information.


        Useful for verifying the result of a customer's purchase and providing
        relevant order tracking details.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the checkout session.
      responses:
        '200':
          description: Checkout session details retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutSessionDetails'
        '404':
          description: Checkout session not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    CheckoutSessionDetails:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        status:
          type: string
        payment_status:
          type: string
        customer_email:
          type: string
        amount_total:
          type: integer
        currency:
          type: string
        product_id:
          type: string
        variant_id:
          type: string
        expires_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````