post
https://sandbox-api.bxnk.com/api/v1/product-apis/payments//refund
Authentication
Requires product-api-token (sent via the configured auth header as a JWT bearer token) 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.
Returned data includes:
refundIdpaymentIdrefundAmountrefundStatus : 'processing' | 'completed' | 'failed'reason(string or null)createdAtrefundedAmountremainingRefundableAmountisFullyRefunded
400: Bad request
401: Unauthorized
403: Forbidden
404: Not found
502: Refund declined by the card provider
503: Refund result could not be confirmed and requires manual reconciliation
500: Internal server error