Skip to main content
GET
Get Unique Refund

Get Unique Refund

Returns the refund using its unique identifier.

Path Parameters

refundId
integer
required
The unique ID of the refund to retrieve.Example: 1234

Response

id
integer
Refund ID.
payin_id
integer
ID of the payin (payin) that was refunded.
status_id
integer
Current status of the refund.Status codes:
  • 2: REQUESTED
  • 4: PAID (refund completed)
  • 5: ERROR
user
object
User object.
status_id
integer
Refund status ID.
name
string
Refund status name.
notification
string
Notification message.
created_at
string
Creation date time.
end_to_end_id
string
End-to-end ID (Pix transaction identifier).
reason
string
Reason for the refund.
wallet_error_code
string
Wallet error code (if applicable).
notification_url
string
Payin where notification will be sent.
created_at
string
Creation date time.
updated_at
string
Update date time.
refund_amount
integer
Refund value in cents.
status_history
array
Array of status history.

Request Example

Use Cases

Monitor the status of a refund:
View the complete history of a refund:
Check if a refund has been completed:
Retrieve refund details for accounting reconciliation:
Check status of multiple refunds:

Status Codes

Best Practices

Status History: Use the status_history array to track the complete timeline of the refund process.
End-to-End ID: The end_to_end_id is only available after the refund is completed (status = PAID). Use it for Pix transaction tracking.
Error Handling: Always check the wallet_error_code field when status is ERROR to understand why the refund failed.