Safira Paydocs

Query transaction status

GET /api/pix/transaction/{id}

Returns the current status of a PIX transaction with detailed information about amounts, counterparty, and timestamps.

The identifier can be:

  • Numeric ID: Internal transaction identifier returned by Avista
  • externalId: External identifier that you provided when creating the transaction

Authentication

Requires a Bearer token in the Authorization header.

Path Parameters

ParameterTypeRequiredDescription
idstringYesTransaction ID (numeric) or externalId (string)

Response (200)

FieldTypeDescription
idstringTransaction ID
externalIdstring | nullExternal ID provided by the client
typestringTransaction type: PAYMENT, WITHDRAW, REFUND_IN, REFUND_OUT, TRANSFER
statusstringStatus: PENDING, CONFIRMED, ERROR
originalAmountstringOriginal amount in BRL
feeAmountstringFee amount in BRL
finalAmountstringFinal amount in BRL
e2eIdstring | nullPIX End-to-end ID
counterpartNamestring | nullCounterparty name
counterpartDocumentstring | nullCounterparty document (CPF/CNPJ)
counterpartAccountBankCodestring | nullCounterparty bank code
counterpartAccountBranchstring | nullCounterparty branch
counterpartAccountNumberstring | nullCounterparty account number
counterpartAccountIspbstring | nullCounterparty bank ISPB
counterpartAccountBankNamestring | nullCounterparty bank name
createdAtstringCreation date (ISO 8601)
updatedAtstringUpdate date (ISO 8601)
processedAtstring | nullProcessing date (ISO 8601)
{
  "id": "123",
  "externalId": "ext-001",
  "type": "PAYMENT",
  "status": "CONFIRMED",
  "originalAmount": "100.00",
  "feeAmount": "1.50",
  "finalAmount": "98.50",
  "e2eId": "E00416968202512121343VX5Sx8fIpkY",
  "counterpartName": "John Marvin",
  "counterpartDocument": "12312312387",
  "counterpartAccountBankCode": "001",
  "counterpartAccountBranch": "0001",
  "counterpartAccountNumber": "123456-7",
  "counterpartAccountIspb": "00000000",
  "counterpartAccountBankName": "Banco do Brasil",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-15T10:35:00.000Z",
  "processedAt": "2024-01-15T10:35:00.000Z"
}

Errors

StatusDescription
401Missing or invalid token
404Transaction not found

On this page