cURL
curl --request GET \ --url https://api-payment.safefypay.com.br/v1/transactions/{transactionId} \ --header 'Authorization: Bearer <token>'
{ "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "externalId": "pedido_12345", "method": "Pix", "amount": 10000, "fee": 150, "netAmount": 9850, "currency": "BRL", "status": "Completed", "description": "Pagamento do pedido #12345", "failureReason": null, "environment": "Sandbox", "metadata": "{\"orderId\": 12345}", "callbackUrl": "https://seusite.com.br/webhook", "customerId": "550e8400-e29b-41d4-a716-446655440000", "expiresAt": "2025-01-15T15:30:00Z", "completedAt": "2025-01-15T15:10:00Z", "refundedAt": null, "createdAt": "2025-01-15T15:00:00Z", "updatedAt": "2025-01-15T15:10:00Z", "pix": { "txId": "SAFEFY2025011512345678901234", "endToEndId": "E12345678202501151510abc123def456", "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...", "copyAndPaste": "00020126580014br.gov.bcb.pix0136a1b2c3d4...", "payerName": "Joao Silva", "payerDocument": "***456789**", "payerBank": "Banco do Brasil", "expiresAt": "2025-01-15T15:30:00Z" }, "card": null, "boleto": null, "customer": { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Joao Silva", "email": "[email protected]", "document": "123.456.789-00", "phone": "11999998888" } }, "message": null, "error": null }
Consulte uma transacao por ID
pix.payerName
pix.payerDocument
pix.payerBank
pix.endToEndId
Token JWT obtido via /v1/auth/token
ID da transacao
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Dados da transacao
Mostrar atributos filhos