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

# Buscar Checkout

> Retorna os dados do checkout incluindo o histórico de sessões de pagamento.



## OpenAPI

````yaml GET /v1/checkouts/{checkout_id}
openapi: 3.1.0
info:
  title: Valora Payment Gateway
  description: >-
    Gateway de pagamentos brasileiro com suporte a PIX e cripto (USDT/USDC/EURC
    na rede Solana).


    ## Autenticação

    Todas as rotas exigem o header `x-api-key` com sua chave de API.


    ## Convenção de valores

    - **Request**: valores em **centavos** (inteiro). Ex: `5000` = R$50,00

    - **Response**: valores em **BRL** (float). Ex: `50.0` = R$50,00


    ## Formato de erro

    Todos os erros retornam `{ "error": { "code": "ERROR_CODE", "message": "..."
    } }`
  version: 1.0.0
  contact:
    name: Suporte Valora
    url: https://valorapayments.com.br
servers:
  - url: https://api.valorapayments.com.br
    description: Produção
  - url: https://sandbox.api.valorapayments.com.br
    description: Sandbox
security:
  - ApiKey: []
paths:
  /v1/checkouts/{checkout_id}:
    get:
      tags:
        - Checkouts
      summary: Buscar checkout
      description: >-
        Retorna os dados do checkout incluindo o histórico de sessões de
        pagamento.
      operationId: getCheckout
      parameters:
        - $ref: '#/components/parameters/CheckoutId'
      responses:
        '200':
          description: Dados do checkout com sessões
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutWithSessions'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    CheckoutId:
      name: checkout_id
      in: path
      required: true
      description: ID do checkout
      schema:
        type: string
        example: chk_a1b2c3d4
  schemas:
    CheckoutWithSessions:
      allOf:
        - $ref: '#/components/schemas/CheckoutObject'
        - type: object
          properties:
            sessions:
              type: array
              description: Histórico de sessões de pagamento deste checkout
              items:
                $ref: '#/components/schemas/CheckoutSession'
    CheckoutObject:
      type: object
      properties:
        checkout_id:
          type: string
          example: chk_a1b2c3d4
        business_id:
          type: string
        product_id:
          type: string
        slug:
          type: string
          example: plano-premium-x7a3b2c1
        title:
          type: string
          nullable: true
        return_url:
          type: string
        cancel_url:
          type: string
        metadata:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - active
            - inactive
        created_at:
          type: string
          format: date-time
    CheckoutSession:
      type: object
      properties:
        session_id:
          type: string
        checkout_id:
          type: string
        payment_id:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - initiated
            - completed
            - cancelled
            - expired
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Código de erro em SNAKE_UPPER_CASE
              example: NOT_FOUND
            message:
              type: string
              description: Descrição legível do erro
              example: Pagamento não encontrado.
  responses:
    NotFound:
      description: Recurso não encontrado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Pagamento não encontrado.
    RateLimited:
      description: Limite de requisições excedido (60 req/min por API key)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMITED
              message: Muitas requisições. Tente novamente em alguns instantes.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Chave de API gerada no painel Valora. Envie em todas as requisições.

````