v1
latestOpenAPI 3.0.02026-07-2431146358.7 KBRefund
Create Refund
A refund can be initiated for a transaction using the Create Refund API.
Multiple refund requests can be initiated against the same transactionid such that the sum of the refund amounts do not exceed the transaction amount.
post/payments/ve1_2/refunds/create
Headers
BD-Traceidstring required
Example:20201203182838
BD-TraceID is a unique identifier passed by the merchant to ensure request idempotency. Requests with identical BD-TraceID within a 24 hour window would fail.
BD-Timestampstring required
Example:20201203182838
Request timestamp to identify date and time of origin of request. Example, a value of BD-Timestamp 20210113180403 identifies the request to have originated on 13th January 2021 at 06:04:03 PM.
Content-Typestring required
Example:application/json
Request Content-Type to take the values application/jose
Acceptstring required
Example:application/jose
Accept Response Content-Type to take the values application/jose
Request body
Example request
{
"transactionid": "U4560001099939",
"orderid": "TEST0000009005",
"mercid": "BDMERCID",
"transaction_date": "2023-03-14T15:14:39+05:30",
"txn_amount": "2400.00",
"refund_amount": "1100.00",
"merc_refund_ref_no": "REFTS14RTEST001",
"split_payment": {
"mercid": "BDMERCID",
"txn_amount": "299.28",
"refund_amount": "299.28"
}
}Response
OK
Example response
{
"refundid": "X45604776418751",
"transactionid": "U4560001099939",
"orderid": "TEST0000009005",
"mercid": "BDMERCID",
"transaction_date": "2023-03-14T15:14:39+05:30",
"txn_amount": "2400.00",
"refund_amount": "1100.00",
"merc_refund_ref_no": "REFTS14RTEST001"
}