POST /v1/{{API_KEY}}/transactons/{{id}}/refund/10Content-Type: application/jsonHost: api-sandbox.bridgerpay.comAuthorization: Bearer {{ACCESS_TOKEN}}
{"response": {"status": "OK", //Response status"code": 200, //Response code"message": "200" //Comment associated with the response code},"result": {"refund_transaction_id": "8ac7a...60f", //Refund transaction ID within the BridgerPay system"amount": 10.0, //Transaction amount"processing_date": "2020-08-06T08:41:47.3921711Z",//Date and time when the transaction was processed by BridgerPay"decline_code": "", //Declination reason code"decline_reason": "", //Reason of why the transaction was declined"status": "approved", //Transaction status"currency": "EUR", //Transaction currency"created_by": "[email protected]" //User on the merchant's side who initiated the transaction (identified by the email address used as a login name)}}
{"response": {"status": "BadRequest","code": 400,"message": "Amount '10' is higher than the available amount for refund '3.0'"},"result": null}
{"response": {"code": 401,"message": "merchant api key '<API_KEY>' is invalid"}}