Loading...
The Refund method returns stored dollar value back to a card.
| Name | Type | Description |
|---|---|---|
| Credentials | MerchantCredentials | A MerchantCredentials object used to authenticate against Merchantware. |
| PaymentData | GiftPaymentData | A PaymentData object containing the payment details of the card used to process the transaction. |
| Request | GiftRefundRequest | A Gift Refund object containing the data used to return stored dollar value back to a card. |
A GiftResponse46 is returned.
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Refund xmlns="http://schemas.merchantwarehouse.com/merchantware/46/Giftcard">
<Credentials>
<MerchantName>Zero Inc</MerchantName>
<MerchantSiteId>00000000</MerchantSiteId>
<MerchantKey>00000-00000-00000-00000-00000</MerchantKey>
</Credentials>
<PaymentData>
<Source>PREVIOUSTRANSACTION</Source>
<Token>1970177862</Token>
</PaymentData>
<Request>
<Amount>1.00</Amount>
<InvoiceNumber>GIFT123</InvoiceNumber>
<MerchantTransactionId>TRX123</MerchantTransactionId>
</Request>
</Refund>
</soap12:Body>
</soap12:Envelope><?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<RefundResponse xmlns="http://schemas.merchantwarehouse.com/merchantware/46/Giftcard">
<RefundResult>
<ApprovalStatus>APPROVED</ApprovalStatus>
<CardNumber />
<ErrorMessage />
<ExpirationDate />
<InvoiceNumber>GIFT123</InvoiceNumber>
<ReaderEntryMode>1</ReaderEntryMode>
<ResponseMessage>00GMJR</ResponseMessage>
<Token>1970178389</Token>
<TransactionDate>01/22/2020 16:32:55</TransactionDate>
<Gift>
<ApprovedAmount>1.00</ApprovedAmount>
<RequestedAmount>1.00</RequestedAmount>
<RedeemableBalance>274.96</RedeemableBalance>
</Gift>
<CustomerEmailAddress>na@yahoo.com</CustomerEmailAddress>
</RefundResult>
</RefundResponse>
</soap12:Body>
</soap12:Envelope>