Create Refund
Changed onA 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.
Request
- Base URLhttps://uat1.billdesk.com/u2
- URLhttps://uat1.billdesk.com/u2/payments/ve1_2/refunds/create
- Authnone declared. Required headers: BD-Traceid, BD-Timestamp, Content-Type, Accept
Headers
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.
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.
Request Content-Type to take the values 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"
}Changes
- warning
added the new
refundenum value to theresponse property for the response status
- warning