post
https://sandbox-api.bxnk.com/api/v1/product-apis/payments//refund
Refund a payment.
Authentication
Requires X-Access-Key and X-Secret-Key headers.
Path parameters
paymentId(string): the payment identifier to refund
Request body
JSON payload matching RefundPaymentDto.
Required fields:
refundAmount(number, min 0.01)
Optional fields:
reason(string)
Response
201: Refund processed successfully. Returneddata(RefundResponseDto) includes:refundIdpaymentIdrefundAmountrefundStatusreason(object)createdAt
400: Bad request401: Unauthorized403: Forbidden404: Not found500: Internal server error