Enkash APIs
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Refund
  • Payment Gateway Overview
  • Getting Started
  • Payment Methods
  • Integration
  • API Endpoints
  • APIs
    • Authorisation
      • Get Authorization Token
    • Order
      • Create Order
      • Get Order Status
      • Get Order By Merchant Order Id
      • Get BNPL Payment Modes
      • Get Dynamic QR Code
      • UPI Intent Links
    • Payment
      • Submit Payment Detail
      • Get Transaction Status
      • Validate OTP
      • Resend OTP
      • Payment Notify Request
      • Get UPI Transaction Status
      • Verify VPA
    • Refund
      • Refund
        POST
    • Settlement
      • Settlement Reporting
      • Get Settlement Payout By ID
      • Search Settlement Payouts
    • Split Settlement
      • Create Split Settlement Account
      • Update Split Settlement Account
      • Get All Split Settlement Account
      • Deactivate Split Settlement Account
      • Activate Split Settlement Account
      • Submit Payment with Split Details
      • Edit/Deferred Split Settlement
    • E-Commerce Plugins
    • Payment Button
    • Qr Code
      • Create Qr Code
      • Get QR Code
      • Search QR Code
      • createCustomer
      • searchCustomer
      • Cancel QR Code
    • UPI Mandate
      • Create UPI Mandate
      • Update UPI Mandate
      • Revoke UPI Mandate
      • Get UPI Mandate
      • UPI mandate create callback
      • Mandate Pre-debit Notification
      • Execute mandate debit
      • Mandate Debit callback
    • Payment Links
      • Payment Links Overview
      • Payment Link APIs
      • Payment Link
        • Create Payment Link
        • Get Payment Link Details
        • Delete Payment Link
      • Payment Link Webhook
        • Payment Link Webhook Request
  1. Refund

Refund

POST
/api/v0/payment/{transactionId}/refund
order-controller

Request

Path Params
transactionId
string 
required
The transaction id for which you want to initiate refund, this the successful transactionId generated post successful payment against transaction
Header Params
Authorization
string 
required
merchantAccessKey
string 
required
Body Params application/json
amount
number 
required
The amount to be refunded.
remarks
string 
optional
Additional remarks or comments regarding the refund.
requestId
string 
required
The unique identifier for the refund request.
Example
{
    "amount": 0,
    "remarks": "string",
    "requestId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v0/payment//refund' \
--header 'Authorization;' \
--header 'merchantAccessKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 0,
    "remarks": "string",
    "requestId": "string"
}'

Responses

🟢200OK
application/json
Body
response_code
integer <int32>
optional
response_message
string 
optional
payload
object (RefundResponse) 
optional
amount
number 
optional
The amount associated with the transaction.
paymentMode
enum<string> 
optional
The mode of payment used for the transaction.
Allowed values:
NET_BANKINGUPICREDIT_CARDDEBIT_CARDPREPAID_CARDPOINTSPAY_LATERWALLETCORPORATE_CARDUPI_CREDIT_CARDSEAMLESS_BANKINGENKASH_COIN
bankCode
string 
optional
The code identifying the bank associated with the transaction.
bankName
string 
optional
The name of the bank associated with the transaction.
currency
string 
optional
The currency in which the transaction amount is specified.
status
enum<string> 
optional
The current status of the transaction.
Allowed values:
CREATEDPENDING_WITH_BANKSUCCESSFAILEDCANCELLEDEXPIREDAUTHENTICATION_IN_PROCESSOTP_RENDEREDCHECKOUT_RENDEREDMPI_PROCESSEDINVALID_STATUSAUTHORIZEDPROCESSINGHOLD
transactionId
string 
optional
The unique identifier for the transaction.
txnMsg
string 
optional
Additional message or information related to the transaction.
txnDate
string 
optional
The date when the transaction was initiated.
uniqueTransactionId
string 
optional
The unique identifier for the transaction.
bankTransactionId
string 
optional
The identifier provided by the bank for the transaction.
Example
{
    "response_code": 0,
    "response_message": "string",
    "payload": {
        "amount": 0,
        "paymentMode": "NET_BANKING",
        "bankCode": "string",
        "bankName": "string",
        "currency": "string",
        "status": "CREATED",
        "transactionId": "string",
        "txnMsg": "string",
        "txnDate": "string",
        "uniqueTransactionId": "string",
        "bankTransactionId": "string"
    }
}
Previous
Refund
Next
Settlement
Built with