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

# Consultar transação

> Consulta uma transação pelo UUID ou identificador externo.

Use este endpoint para consulta e conciliação. Para atualizações em tempo real, implemente também os [webhooks](https://docs.skalepayments.com.br/guias/webhooks.md).


## OpenAPI

````yaml openapi.yaml GET /transactions/{id}
openapi: 3.1.0
info:
  title: SkalePayments API
  version: 1.0.0
  description: |
    API para criação e consulta de pagamentos PIX na SkalePayments.
    Valores monetários das requisições são expressos em centavos.
  contact:
    name: SkalePayments
    url: https://skalepayments.com.br
servers:
  - url: https://api.skalepayments.com.br
    description: Produção
security:
  - ApiKeyAuth: []
tags:
  - name: Transações
    description: Criação e consulta de cobranças PIX
  - name: Empresa
    description: Perfil e permissões da conta autenticada
paths:
  /transactions/{id}:
    get:
      tags:
        - Transações
      summary: Consultar transação
      description: |
        Retorna uma transação pertencente à conta autenticada. O identificador
        pode ser o UUID ou o identificador externo aceito pela API.
      operationId: consultarTransacao
      parameters:
        - name: id
          in: path
          required: true
          description: UUID ou identificador externo da transação
          schema:
            type: string
          example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Transação encontrada
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
              examples:
                paid:
                  summary: PIX pago
                  value:
                    success: true
                    id: abc123456789
                    status: paid
                    metadata:
                      pedido: PED-123
                    postbackUrl: https://api.seudominio.com.br/webhooks/skale
                    pix:
                      qrcode: 00020126580014br.gov.bcb.pix0136...
                      end2EndId: E1823612020260331143000123456789
                    statusCode: 200
                    timestamp: '2026-03-31T15:00:00-03:00'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Transação inexistente ou não pertencente à conta
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                statusCode: 404
                message: Transação não encontrada
                code: HTTP_EXCEPTION
                timestamp: '2026-03-31T15:10:00-03:00'
                path: /transactions/550e8400-e29b-41d4-a716-446655440099
                method: GET
        '500':
          $ref: '#/components/responses/InternalError'
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |
            curl --request GET \
              --url 'https://api.skalepayments.com.br/transactions/550e8400-e29b-41d4-a716-446655440000' \
              --header 'X-API-Key: sk_sua_chave_aqui'
components:
  schemas:
    TransactionResponse:
      type: object
      required:
        - success
        - id
        - status
        - statusCode
        - timestamp
      properties:
        success:
          type: boolean
          const: true
        id:
          type: string
          description: Identificador da transação.
        status:
          $ref: '#/components/schemas/TransactionStatus'
        pix:
          oneOf:
            - $ref: '#/components/schemas/PixResponse'
            - type: 'null'
        metadata:
          type: object
          additionalProperties: true
        postbackUrl:
          type:
            - string
            - 'null'
          format: uri
        statusCode:
          type: integer
        timestamp:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
        - success
        - statusCode
        - message
        - code
        - timestamp
        - path
        - method
      properties:
        success:
          type: boolean
          const: false
        statusCode:
          type: integer
        message:
          type: string
        code:
          type: string
          example: HTTP_EXCEPTION
        timestamp:
          type: string
          format: date-time
        path:
          type: string
        method:
          type: string
    TransactionStatus:
      type: string
      enum:
        - waiting_payment
        - paid
        - refused
        - cancelled
        - refunded
    PixResponse:
      type: object
      properties:
        qrcode:
          type:
            - string
            - 'null'
        end2EndId:
          type:
            - string
            - 'null'
        qrcodeImage:
          type:
            - string
            - 'null'
        receiptUrl:
          type:
            - string
            - 'null'
        expirationDate:
          type:
            - string
            - 'null'
          format: date-time
  responses:
    Unauthorized:
      description: API Key ausente ou inválida
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Erro interno da API
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Chave de integração obtida no painel SkalePayments

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.