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

# Obter transacao

`GET /v1/transactions/{transactionId}`

## Request

- Base URL: `https://api-payment.safefypay.com.br`
- URL: `https://api-payment.safefypay.com.br/v1/transactions/{transactionId}`
- Auth: HTTP bearer

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

## Changes

- **2026-01-18** `b1ec8dd7262c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway/changes/v1/transactions/:transactionId/get.md)

---

[API](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway.md) - [All operations](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/safefy-pay/apis/safefy-pix-gateway/revisions/57157be53ccc?raw)
