Skip to content

Query Cash In by ID

Queries the status and details of a PIX transaction by transaction ID.

Endpoint

GET /api/external/transactions/:id

Headers

HeaderTypeRequiredDescription
AuthorizationStringYesApiKey {client_id}:{client_secret}

Path Parameters

ParameterTypeRequiredDescription
idStringYesTransaction ID (transaction_id)

Example

bash
curl -X GET https://api.owem.com.br/api/external/transactions/7popu57v6us7p6pcicgq12345 \
  -H "Authorization: ApiKey $CLIENT_ID:$CLIENT_SECRET"

Success Response (200)

json
{
  "worked": true,
  "data": {
    "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "transaction_id": "7popu57v6us7p6pcicgq12345",
    "end_to_end_id": "E37839059202603071530000001",
    "external_id": "order-9876",
    "type": "pix",
    "status": "completed",
    "amount": 300000,
    "fee_amount": 0,
    "net_amount": 300000,
    "description": "Pedido #1234",
    "direction": "inbound",
    "counterparty_name": "Maria Santos",
    "created_at": "2026-03-07T15:30:00Z",
    "completed_at": "2026-03-07T15:30:02Z"
  }
}
FieldTypeDescription
workedBooleantrue indicates operation success
data.idStringInternal transaction UUID
data.transaction_idStringPublic transaction identifier
data.end_to_end_idStringBACEN End-to-End ID (E2E)
data.external_idStringYour system identifier. null if not provided at creation
data.typeStringTransaction type (pix)
data.statusStringCurrent status (see table below)
data.amountIntegerAmount in base units (/ 10,000 for BRL). 300000 = R$ 30.00
data.fee_amountIntegerFee amount in base units
data.net_amountIntegerNet amount in base units
data.descriptionStringTransaction description
data.directionStringinbound for receipts
data.counterparty_nameStringPayer name
data.created_atStringCreation date (ISO 8601)
data.completed_atStringCompletion date (ISO 8601), null if pending

Possible Statuses

StatusDescription
activeQR Code generated, awaiting payment
pendingPayment detected, processing
completedPayment confirmed
failedPayment failed
cancelledCharge cancelled or expired

Error Response (404)

json
{
  "worked": false,
  "detail": "Transacao nao encontrada"
}

Error Response (401)

json
{
  "error": {
    "status": 401,
    "message": "Missing API key credentials. Use Authorization: ApiKey <client_id>:<client_secret>"
  }
}

Polling vs Webhook

To track charge status, prefer using Webhooks instead of polling. If you need to query, use intervals of at least 5 seconds.

Owem Pay Instituição de Pagamento — ISPB 37839059