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

# Consultar status

> Retorna uma transação específica por ID com todos os detalhes (requer autenticação JWT)



## OpenAPI

````yaml GET /api/v1/transactions/{id}
openapi: 3.0.3
info:
  title: Bob Payments API
  description: >-
    API de pagamentos Bob Payments para criar, acompanhar e conciliar transações
    com PIX e cartão de crédito.
  version: 1.0.0
servers:
  - url: https://api.payments.bob.company
    description: Servidor de produção
security: []
paths:
  /api/v1/transactions/{id}:
    get:
      summary: Buscar transação por ID
      description: >-
        Retorna uma transação específica por ID com todos os detalhes (requer
        autenticação JWT)
      parameters:
        - schema:
            type: string
            format: cuid
            pattern: ^[cC][^\s-]{8,}$
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    default: true
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      externalId:
                        type: string
                      transactionCode:
                        nullable: true
                        type: string
                      pixCode:
                        nullable: true
                        type: string
                      expirationDate:
                        nullable: true
                        type: string
                      status:
                        type: string
                        enum:
                          - waiting_payment
                          - paid
                          - refunded
                          - cancelled
                          - expired
                          - processing
                      amountCents:
                        type: number
                      product:
                        type: string
                      quantity:
                        type: number
                      paidAt:
                        nullable: true
                        type: string
                      refundedAt:
                        nullable: true
                        type: string
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                      customer:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          document:
                            type: string
                          email:
                            type: string
                          phone:
                            type: string
                        required:
                          - id
                          - name
                          - document
                          - email
                          - phone
                        additionalProperties: false
                      originDomain:
                        nullable: true
                        type: string
                      customerEmail:
                        nullable: true
                        type: string
                      customerName:
                        nullable: true
                        type: string
                    required:
                      - id
                      - externalId
                      - transactionCode
                      - pixCode
                      - expirationDate
                      - status
                      - amountCents
                      - product
                      - quantity
                      - paidAt
                      - refundedAt
                      - createdAt
                      - updatedAt
                      - customer
                      - originDomain
                      - customerEmail
                      - customerName
                    additionalProperties: false
                required:
                  - success
                  - data
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  detail:
                    type: string
                  instance:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                required:
                  - type
                  - title
                  - status
                  - detail
                  - instance
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  detail:
                    type: string
                  instance:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                required:
                  - type
                  - title
                  - status
                  - detail
                  - instance
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  detail:
                    type: string
                  instance:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                required:
                  - type
                  - title
                  - status
                  - detail
                  - instance
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  title:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  detail:
                    type: string
                  instance:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                required:
                  - type
                  - title
                  - status
                  - detail
                  - instance
                additionalProperties: false
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Autenticação por API Key usando token SK (sk_live_xxx ou sk_test_xxx).
        Envie como: Authorization: Bearer sk_live_xxx
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token JWT para endpoints autenticados do dashboard

````