WAPIsv2.0.0Transactions
Refund Request
Submit a refund request for a transaction
Submit a refund request for a completed WiPay transaction. Each transaction can only have one active refund request.
Endpoint
POST /transactions/{transaction_id}/refund| Access | Requirement |
|---|---|
| Authenticated | Yes |
| Required Scope | wapi-transactions-refund-request, or wapi-transactions-all |
| Rate Limit | 15 requests per minute |
Request
Headers
| Header | Value |
|---|---|
Accept | application/json |
Authorization | Bearer <access_token> |
X-WAPI-Key | wapi_live_<kid>_<secret> or wapi_test_<kid>_<secret> |
Send exactly one of Authorization or X-WAPI-Key.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | string | Yes | The transaction ID to request a refund for |
No request body required.
Responses
201 Created
{
"message": "Refund request successfully created."
}400 Bad Request
{
"message": "The selected transaction id is invalid."
}{
"message": "The selected transaction id has invalid status."
}{
"message": "The selected transaction id has an existing refund request."
}{
"message": "The selected transaction id has already been refunded."
}{
"message": "The selected transaction id cannot be refunded."
}401 Unauthorized
{
"message": "Unauthorized"
}403 Forbidden
{
"message": "Forbidden"
}{
"message": "Insufficient funds on WiPay account to request refund."
}{
"message": "Invalid scope(s) provided."
}Example
curl -X POST "https://ttsb.wipayfinancial.com/wapi/transactions/SB-32-55179-oId_123-Abc1-20260202232018/refund" \
-H "Accept: application/json" \
-H "Authorization: Bearer <access_token>"