Refund
Create a full refund#
POST /fullrefund
Refunds a successful payment. Refund of a transaction in full amount only.
Parameters#
- Request Body
- Example
| Name | Type | Required | Description |
|---|---|---|---|
| transactionID | integer(int64) | true | Unique id of the transaction to be refunded |
| refundReferenceID | string(50) | false | Unique reference that can be used to check the status of this refund. |
| checkSum | string | true | Checksum of the query string. See Checksum for how the checksum value is calculated |
Returns#
- Response Body
- Example (200)
- Example (4xx)
| Name | Type | Required | Description |
|---|---|---|---|
| responseCode | string | true | See Appendix A |
| transactionID | integer | true | Unique id of the original payment transaction |
| refundTransactionID | integer | true | Unique id of this refund transaction |
| refundReferenceID | string | false | Unique reference of refund |
| checkSum | string | true | Checksum of the query string. See Checksum for how the checksum value is calculated |
Create a partial refund#
POST /partialrefund
Partial refunds a successful payment.
Parameters#
- Request Body
- Example
| Name | Type | Required | Description |
|---|---|---|---|
| transactionID | integer(int64) | true | Unique id of the transaction to be refunded |
| refundReferenceID | string(50) | false | Unique reference that can be used to check the status of this refund. |
| amount | string | true | Amount to be paid for the transaction. Amount always show two decimal points even if they are zeros. i.e. Amount โ100.00โ is defined as โ100.00โ, Amount โ99.12โ is defined as โ99.12โ. |
| checkSum | string | true | Checksum of the query string. See Checksum for how the checksum value is calculated |
Returns#
- Response Body
- Example (200)
- Example (4xx)
| Name | Type | Required | Description |
|---|---|---|---|
| responseCode | string | true | See Appendix A |
| transactionID | integer | true | Unique id of the original payment transaction |
| refundTransactionID | integer | true | Unique id of this refund transaction |
| refundReferenceID | string | false | Unique reference of refund |
| checkSum | string | true | Checksum of the query string. See Checksum for how the checksum value is calculated |