Request Body
| Field | Type | Required | Description |
|---|---|---|---|
paymentId | string | Yes | Payment ID (Short ID format PAY_xxx) |
reason | string | Yes | Reason for the refund request |
amount | integer | No | Partial refund amount in smallest currency unit. Omit for full refund |
Example Request
Success Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
ticketId | string | Refund ticket ID (Short ID format TKT_xxx) |
status | string | Ticket status (initially pending) |
requestedAmount | integer | Refund amount in smallest currency unit |
Error Responses
| Status | Description |
|---|---|
| 400 | Missing paymentId or reason |
| 400 | Refund window expired (7 days for one-time products) |
| 400 | Partial refund amount exceeds original payment |
| 401 | Authentication failed |
| 404 | Payment not found |
| 500 | Internal server error |