Retrieve a refund's details and current status using the refund_id returned
when you created it. Refund IDs from the legacy /refunds API are not supported.
API version required for V3 refund operations.
The XenPlatform subaccount user id that will perform this transaction.
Refund ID returned when creating a V3 refund.
Refund details and current status.
{
"refund_id": "rfd-1402feb0-8b79-85ae-9d1e-e69394d3949c",
"reference_id": "refund-order-123",
"business_id": "62440e322008e87fb29c1fd0",
"payment_id": "py-1402feb0-8b79-85ae-9d1e-e69394d3949c",
"status": "SUCCEEDED",
"amount": 10000,
"currency": "IDR",
"channel_code": "CARDS",
"reason": "REQUESTED_BY_CUSTOMER",
"created": "2024-10-28T05:29:07.000Z",
"updated": "2024-10-28T05:29:07.000Z",
"metadata": {
"order_id": "1234567890"
}
}Details and current status of a V3 refund.
Xendit-generated identifier for a refund.
A Reference ID from merchants to identify their request.
Xendit-generated identifier for the business that owns the transaction
Xendit unique Payment ID generated as reference for a payment.
PENDING: the refund is still processing.
SUCCEEDED: the refund completed successfully.
FAILED: the refund could not be completed; check failure_code for details.
The intended payment amount to be refunded to the end user.
ISO 4217 three-letter currency code for the payment.
Channel code used to select the payment method provider.
Reason for requesting the refund.
ISO 8601 date-time format.
ISO 8601 date-time format.
Channel-specific failure code if the refund fails; otherwise null or omitted.
Additional refund information, when available from the channel.
Reference provided by the acquirer to help trace the refund.
Custom data attached to the refund. Supports up to 50 entries. Keys must be no longer than 40 characters. Values may be strings (up to 500 characters), finite numbers, booleans, or null. Nested objects and arrays are not supported.
Bad request
Values in the payment request is not within expected range or expected configurations. Check the specific error message for debugging.
Fields or values in the payment request does not comply with our API specification. Check the specific error message for debugging.
Unauthorized
The API key is missing or invalid. Use a valid secret API key to authenticate the request.
Not found
ID specified in request cannot be found.
Internal server error
An unexpected error occured, our team has been notified and will troubleshoot the issue
Service unavailable
The channel requested is currently experiencing unexpected issues. The provider will be notified to resolve this issue.