Sub Merchant Refund 360
This api can be used to trigger a refund against a successful sub-merchant transaction.
This is an idempotent api.
application/json
Will be shared while onboarding.
Will be shared while onboarding.
application/json
This is an epoch unix timestamp string. For example, 1496918882000. It can be used by us to invalidate older requests.
This is a signature over combination of headers, payload. Refer Signature Calculation section for more details.
Provided during on-boarding. To be passed in the apis if it needs to be invoked in sub merchant mode.
Provided during on-boarding. To be passed in the apis if it needs to be invoked in sub merchant mode.
UPI request id for the original transaction against which refund is being initiated
Constraints: 35 character alphanumeric
Timestamp of the original transaction
Constraints: As returned in the response of original transaction api, String (YYYY-MM-DDTHH:MM:SS+05:30)
Merchant generated unique id for the refund
Constraints: 35 characters alphanumeric
The amount to be refunded
Constraints: String with mandatory two decimals
Type of refund being initiated
Constraints: OFFLINE, ONLINE
Merchant refund vpa of parent merchant is to be used for online refund
Constraints: mandatory for refundType = ONLINE, vpa@handle
Remarks or reason for the refund
Constraint: The transaction note must be alphanumeric, with a minimum length of 1 character and a maximum length of 50 characters.
Stringified JSON for udf parameters
Example: "{\"udf1\":\"value1\",\"udf2\":\"value2\",…}"
Note: Few special characters are not allowed. Regex for the characters which are not allowed : ^[^/#-()*!%~`]+$
Timestamp to be used in JWS
Constraints: As passed in the request body
PSP status of the API
SUCCESS, FAILURE
PSP response code for the API
Refer error code section
PSP response message for the API
Refer error code section
Unique id for the merchant
As passed in request headers
Unique id for the merchant channel
As passed in request headers
Merchant generated unique id for the refund
As passed in the request body
The total amount for which original transaction was performed
String with mandatory two decimals
The amount to be refunded
As passed in the request body
Type of refund being initiated
As passed in the request body
Timestamp of when refund request was initiated
String (YYYY-MM-DDTHH:MM:SS+05:30)
UPI request id returned by gateway for the transaction
Same as originalUpiRequestId passed in request
Reference id returned by the gateway for the refund
Response status returned by gateway for the refund
String (SUCCESS, PENDING, DEEMED, FAILURE)
Response code returned by gateway for the refund
Response message for code returned by gateway for the refund
Udf parameters
As passed in the request body
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

