Retrieves paginated records of processed refunds (result = 'REFUND') matching a given reference ID
Fetch Bulk Refund Details (/fetch-bulk-refund-by-reference)
/fetch-bulk-refund-by-reference)- URL:
https://sandboxapi.upayments.com/api/v1/fetch-bulk-refund-by-reference - HTTP Method:
POST
Request Parameters
| Parameter | Type | Required / Optional | Constraints | Description |
|---|---|---|---|---|
reference | String | Required | Max: 500 | The reference identifier for which refunds were initiated. |
perPage | Integer | Optional | Numeric, Min: 10, Max: 100 | Number of records per page (Default: 10). |
page | Integer | Optional | Numeric, Min: 1 | Page number to retrieve (Default: 1). |
Example Request
{
"reference": "ORD_REF_892341",
"perPage": 20,
"page": 1
}'Success Response Payload
HTTP 200 OK
{
"status": true,
"message": "Response received successfully",
"data": {
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"from": 1,
"to": 2,
"total": 2,
"path": "https://sandboxapi.upayments.com/api/v1/fetch-bulk-refund-by-reference",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://apiv2api.upayments.com/api/v1/fetch-bulk-refund-by-reference?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
]
},
"refund": [
{
"id": 894120,
"orderId": "rfd_928174910283",
"invoiceId": 74120,
"reference": "ORD_REF_892341",
"amount": 15.5,
"totalPrice": 15.5,
"currency": "KWD",
"result": "REFUND",
"status": "paid",
"notifyUrl": "https://merchant.example.com/webhooks/refunds",
"transactionDate": "2026-11-30 13:20:15"
},
{
"id": 894121,
"orderId": "rfd_928174910284",
"invoiceId": 74121,
"reference": "ORD_REF_892341",
"amount": 15.5,
"totalPrice": 15.5,
"currency": "KWD",
"result": "REFUND",
"status": "paid",
"notifyUrl": "https://merchant.example.com/webhooks/refunds",
"transactionDate": "2026-11-30 13:20:16"
}
]
}
}Refund Record Field Descriptions
| Field | Type | Description |
|---|---|---|
id | Integer | Unique transaction ID in the API gateway. |
orderId | String | Unique refund order identifier. |
invoiceId | Integer | Internal refund invoice ID generated in the merchant portal. |
reference | String | The merchant reference ID tied to this refund. |
amount | Float | Refunded amount for this specific transaction. |
totalPrice | Float | Total refund price (equal to amount). |
currency | String | Three-letter currency code (e.g., KWD, USD). |
result | String | Gateway result code (always "REFUND" for completed refunds). |
status | String | Status of the refund invoice ("paid"). |
notifyUrl | String | Webhook URL assigned to receive transaction callbacks. |
transactionDate | String | Date and time when the refund transaction was created (YYYY-MM-DD HH:MM:SS). |
🚦 HTTP Response Codes Reference
| HTTP Code | Description & Scenario |
|---|---|
200 OK | Request succeeded (e.g., fetching bulk refund records or business error checks). |
201 Created | Bulk refund processing jobs successfully dispatched or approval requested. |
401 Unauthorized | Missing or invalid API key, invalid HMAC signature, or expired timestamp. |
403 Forbidden | Access forbidden or merchant account disabled. |
404 Not Found | No matching captured transactions or refund records found for the reference. |
422 Unprocessable Entity | Validation failure on request body parameters. |
