---
title: "Obter transacao"
method: GET
path: "/v1/transactions/{transactionId}"
tags: ["Transacoes"]
---

# Obter transacao

`GET /v1/transactions/{transactionId}`

Retorna os dados completos de uma transacao especifica.

## Path parameters

- `transactionId` string, uuid, required

## Response `200`

Dados da transacao

- GetTransactionResponse
  - `data` TransactionDetail, nullable
    - `id` string, uuid
    - `externalId` string, nullable
    - `method` string
    - `amount` integer
    - `fee` integer
    - `netAmount` integer
    - `currency` string
    - `status` string
    - `description` string, nullable
    - `failureReason` string, nullable
    - `environment` string
    - `metadata` string, nullable
    - `callbackUrl` string, nullable
    - `customerId` string, uuid, nullable
    - `expiresAt` string, date-time, nullable
    - `completedAt` string, date-time, nullable
    - `refundedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time, nullable
    - `pix` PixDetailData, nullable — Detalhes do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.
      - `txId` string — ID da transacao PIX (TxId)
      - `endToEndId` string, nullable — Identificador unico da transacao PIX no SPI (preenchido apos pagamento)
      - `copyAndPaste` string — Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code.
      - `payerName` string, nullable — Nome do pagador (preenchido apos pagamento)
      - `payerDocument` string, nullable — Documento do pagador mascarado (preenchido apos pagamento)
      - `payerBank` string, nullable — Banco do pagador (preenchido apos pagamento)
      - `expiresAt` string, date-time, nullable — Data de expiracao do codigo PIX
    - `card` CardTransactionData, nullable
      - `lastFour` string — Ultimos 4 digitos do cartao
      - `brand` string — Bandeira do cartao
      - `installments` integer — Numero de parcelas
      - `authorizationCode` string — Codigo de autorizacao
    - `boleto` BoletoTransactionData, nullable
      - `barcode` string — Codigo de barras
      - `digitableLine` string — Linha digitavel
      - `pdfUrl` string — URL do PDF do boleto
      - `dueDate` string, date-time — Data de vencimento
    - `customer` TransactionCustomerDetail, nullable
      - `id` string, uuid
      - `name` string
      - `email` string
      - `document` string, nullable
      - `phone` string, nullable
  - `message` string, nullable
  - `error` ApiErrorResponse, nullable
    - `message` string — Mensagem de erro
    - `code` string — Codigo do erro

## Other responses

- `401` — Nao autorizado
- `404` — Transacao nao encontrada

---

[API](https://skmtc.net/safefy-pay/apis/safefy-pix-gateway.md) · [All operations](https://skmtc.net/safefy-pay/apis/safefy-pix-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/safefy-pay/safefy-pix-gateway/revisions/57157be53ccc/schema)
