POSTInitiate Refund
Refund a failed transaction to the customer after OTP consent.
Refunds the e-value for a failed transaction back to your account, acting as consent that you have returned the cash to the customer. Requires the OTP (and otp_ref_id) from Get Refund OTP. Returns the financial response envelope with the refund transaction id and reversed amounts.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
tid | string | required | Transaction ID from the Initiate Transaction call.e.g. 13192443 |
tidstringRequiredTransaction ID from the Initiate Transaction call.
example: 13192443
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
initiator_id | string | required | Registered mobile number of the API user (see Platform Credentials).e.g. 9962981729 |
user_code | string | required | User code of the retailer/agent the service is run for.e.g. 20810200 |
otp | integer | required | OTP sent to the customer's mobile number.e.g. 123456 |
otp_ref_id | string | optional | otp_ref_id received from Get Refund OTP.e.g. zCISyglexo0Pjqp4YrS2ssweuD9v1c3aLKGxjTW8wU7An8Wem1UyNws5830yh7q/sf5J4R3BY= |
service_code | integer | optional | Fixed service code. For PayPoint send 80.e.g. 80 |
state | integer | optional | Fixed value. Send 1.e.g. 1 |
initiator_idstringRequiredRegistered mobile number of the API user (see Platform Credentials).
example: 9962981729
user_codestringRequiredUser code of the retailer/agent the service is run for.
example: 20810200
otpintegerRequiredOTP sent to the customer's mobile number.
example: 123456
otp_ref_idstringoptionalotp_ref_id received from Get Refund OTP.
example: zCISyglexo0Pjqp4YrS2ssweuD9v1c3aLKGxjTW8wU7An8Wem1UyNws5830yh7q/sf5J4R3BY=
service_codeintegeroptionalFixed service code. For PayPoint send 80.
example: 80
stateintegeroptionalFixed value. Send 1.
example: 1
Headers
| Field | Type | Required | Description |
|---|---|---|---|
developer_key | string | required | Static API key issued to your account after KYC. |
secret-key | string | required | Dynamic per-request signature: base64(HMAC-SHA256(timestamp, base64(access_key))). |
secret-key-timestamp | string | required | Current time in milliseconds since UNIX epoch, used to compute secret-key. Must match server time. |
content-type | string | required | application/jsone.g. application/json |
developer_keystringRequiredStatic API key issued to your account after KYC.
secret-keystringRequiredDynamic per-request signature: base64(HMAC-SHA256(timestamp, base64(access_key))).
secret-key-timestampstringRequiredCurrent time in milliseconds since UNIX epoch, used to compute secret-key. Must match server time.
content-typestringRequiredapplication/json
example: application/json
Responses
statusnumberPrimary success indicator (0 = success).
messagestringHuman-readable response / error message.
response_status_idnumberGranular status id; see the shared error-codes table.
response_type_idnumberA unique id for every possible response shape (success or error) — useful for client logic branching and analytics.
tx_statusstringTransaction state: 0=Success, 1=Fail, 2=Awaited, 3=Refund Pending, 4=Refunded, 5=On Hold.
txstatus_descstringHuman-readable transaction status.
dataobjectAPI-specific response payload.
refund_tidstringTransaction ID of the refund.
refunded_amountstringTotal amount refunded (INR).
amountstringOriginal transaction amount (INR).
feestringFee reversed (INR).
balancestringAccount balance after the refund (INR).
tidstringOriginal transaction ID.