Request Refund
Refund Process via API
To initiate a refund for a transaction, you need to make an API call to the following endpoint:
Refund Endpoint : /transaction/refund/{transactionCode}
Request:
{
"refundAmount": "20",
"apiKey": "9756d062-7fa1-4fce-805e-bc681ce133ac"
}
Response:
{
"transactionCode": "T20062024002",
"paymentInstrument": "CARD",
"paymentSubInstrument": "DEBIT_CARD",
"selectedOperatingCurrency": {
"currency": {
"code": "GBP",
"name": "Pound Sterling",
"knownName": "Pound Sterling",
"serviceable": false,
"notServiceableMessage": "",
"decimalPrecision": 2,
"id": "1ea8fe3a-717e-4c56-9afe-fca9e856f6fb",
"lastUpdated": "2024-06-12T14:44:14.946813Z",
"createdDate": "2024-06-12T14:44:14.946813Z",
"dataStatus": "ACTIVE"
},
"priorityOrder": 1,
"instrumentConfigs": [
{
"paymentInstrument": "CARD",
"subInstrumentConfigs": [
{
"paymentSubInstrument": null,
"forAllSubInstruments": true,
"pricingConfigs": [],
"paymentProviderPreference": [],
"paymentControl": {},
"id": "6258f4a6-7b74-45f0-8978-c02cb7681fed",
"lastUpdated": "2024-06-14T06:50:10.114512Z",
"createdDate": "2024-06-14T06:50:10.114512Z",
"dataStatus": "ACTIVE"
}
],
"pricingConfigs": [
{
"transactionRate": {},
"refundRate": {},
"chargeBackRate": {},
"miscParamsForPricing": [],
"hash": "UG5G6wtzyRs7hycjV1lYkA==",
"id": "8e3a5682-936d-46b9-bd46-d16e6ef59d48",
"lastUpdated": "2024-06-14T06:48:06.681355Z",
"createdDate": "2024-06-14T06:48:06.681355Z",
"dataStatus": "ACTIVE"
}
],
"paymentControl": {},
"id": "751ab226-ca58-4364-92ce-29904a4d2edc",
"lastUpdated": "2024-06-14T06:50:10.131244Z",
"createdDate": "2024-06-14T06:48:06.726909Z",
"dataStatus": "ACTIVE"
}
],
"pricingConfigs": [],
"paymentControl": {},
"minAmount": 10.0000,
"maxAmount": 1000.0000,
"id": "ea0a4e22-2b7b-404d-af54-b59ff912a521",
"lastUpdated": "2024-06-14T06:42:12.699271Z",
"createdDate": "2024-06-13T05:21:16.107251Z",
"dataStatus": "ACTIVE"
},
"selectedMerchantPaymentInstrumentConfig": {
"paymentInstrument": "CARD",
"subInstrumentConfigs": [
{
"paymentSubInstrument": null,
"forAllSubInstruments": true,
"pricingConfigs": [],
"paymentProviderPreference": [],
"paymentControl": {},
"id": "6258f4a6-7b74-45f0-8978-c02cb7681fed",
"lastUpdated": "2024-06-14T06:50:10.114512Z",
"createdDate": "2024-06-14T06:50:10.114512Z",
"dataStatus": "ACTIVE"
}
],
"pricingConfigs": [
{
"transactionRate": {
"slabs": [],
"innerRates": [],
"id": "c30fa278-588a-45f7-88d9-d489af031776",
"lastUpdated": "2024-06-14T06:48:06.555944Z",
"createdDate": "2024-06-14T06:48:06.555944Z",
"dataStatus": "ACTIVE"
},
"refundRate": {
"slabs": [],
"innerRates": [],
"id": "99931003-7cbe-4ea8-bf97-854f18ccd4da",
"lastUpdated": "2024-06-14T06:48:06.615001Z",
"createdDate": "2024-06-14T06:48:06.615001Z",
"dataStatus": "ACTIVE"
},
"chargeBackRate": {
"slabs": [],
"innerRates": [],
"id": "dd9d64f7-1445-4e8f-9664-eebe5fcf776a",
"lastUpdated": "2024-06-14T06:48:06.646584Z",
"createdDate": "2024-06-14T06:48:06.646584Z",
"dataStatus": "ACTIVE"
},
"miscParamsForPricing": [],
"hash": "UG5G6wtzyRs7hycjV1lYkA==",
"id": "8e3a5682-936d-46b9-bd46-d16e6ef59d48",
"lastUpdated": "2024-06-14T06:48:06.681355Z",
"createdDate": "2024-06-14T06:48:06.681355Z",
"dataStatus": "ACTIVE"
}
],
"paymentControl": {},
"id": "751ab226-ca58-4364-92ce-29904a4d2edc",
"lastUpdated": "2024-06-14T06:50:10.131244Z",
"createdDate": "2024-06-14T06:48:06.726909Z",
"dataStatus": "ACTIVE"
},
"selectedMerchantPaymentSubInstrumentConfig": {},
"selectedPricing": {},
"selectedPaymentControl": {},
"transactionCharge": 75.7000,
"refundCharge": 0.0000,
"chargeBackCharge": 0.0000,
"transactionCost": 6.4000,
"refundCost": 0.0000,
"chargeBackCost": 0.0000,
"amount": 220.0000,
"effectiveAmount": 0.0000,
"refundableAmount": 220.0000,
"state": "REFUND_REJECTED",
"cancelReason": null,
"comment": "",
"paymentProviderInstrument": {},
"steps": [
{
"state": "CAPTURED",
"comment": "Call captured from provider",
"description": "Call captured from provider",
"data": "",
"miscVars": [],
"id": "cd10fffb-12d1-49d4-9162-3fc699ce5a28",
"lastUpdated": "2024-06-20T08:16:37.494896Z",
"createdDate": "2024-06-20T08:16:37.494896Z",
"dataStatus": "ACTIVE"
}
],
"key": "9756d062-7fa1-4fce-805e-bc681ce133ac",
"extraCustomerInfo": "{\"firstName\":\"firstname\",\"lastName\":\"lastname\",\"emailId\":\"custemail\",\"customerUniqueId\":\"78234823384\"}",
"miscVars": [
"transactionid;'T23052024003'"
],
"paymentDetailsHash": null,
"miscParamsForPricing": [],
"billingCountryCode": "GB",
"id": "9976a32f-f419-441b-8654-66d08858b586",
"lastUpdated": "2024-07-22T12:31:52.529497+05:30",
"createdDate": "2024-06-20T08:15:12.838406Z",
"dataStatus": "ACTIVE",
"miscVarsDeCompressed": [
{
"first": "transactionid",
"second": "'T23052024003'"
}
]
}