Output parameters for the REFUND call:
Field | Type | Description |
---|---|---|
STATUS | ascii | The outcome of the request. Possible values: • SUCCEEDED • FAILED |
REFUNDID | ascii | Unique refund identifier. Maximum 20 characters [a-zA-Z0-9.,-_]. In case of severe errors (e.g. authentication not possible) this will be “0”, otherwise a valid refund identifier is always assigned. |
MERCHANTREFUNDID | ascii | The value of the merchantrefundid parameter sent by the client in the REFUND request |
ERRMSG | utf8 | Human readable error message - up to 128 characters. |
FAILREASON | ascii | Returned only if STATUS is FAILED . Possible values:• UNKNOWN : the refund failed for unknown reasons (also default in reporting in case of succeeded refunds).• QUOTA : money-holding, AML or other banking regulations make in unable to fulfill the refund request.• LOCAL_ERROR : local system error. Contact Payment Gateway support.• REMOTE_ERROR : a remote processing error occurred. If this is not temporary, contact Payment Gateway support.• LOCAL_DECLINE : The Payment Gateway declined the refund, for example due to risk management.• REMOTE_DECLINE : a remote system declined the refund, for example due to a failed payment process authentication. |
SUCCEEDED response
This example shows a successful refund call.
STATUS=SUCCEEDED
&RAND12346789=dd69b8124a89415e0390a5a95b087c93a9b7769e
&REFUNDID=223887123
&MERCHANTREFUNDID=MS123R
&ERRMSG=
FAILED response
STATUS=FAILED
&REFUNDID=0
&MERCHANTREFUNDID=MS123R
&ERRMSG=Transaction%20not%20found
&FAILREASON=INPUT_DATA
&RAND4874524632=d3534885f2975b9852970607c054dd2cddbf2c48