Refund

Programmatically Issue Refunds via API or Dashboard

Purpose

This method is used by the Merchant to initiate a refund of a previously executed payment. The myPOS Checkout API will return an XML with the result. This method is intended to be utilized by the Merchant in their website back-end. The Merchant could decide whether or not to use this method.

Method Properties

PropertyTypical valueTypeRequiredDescription
IPC_Trnref12345678923StringYESUsed to uniquely identify a transaction in IPC. Used as a parameter for subsequent refund or reversal if needed.
OrderID201203319999999StringNOPlaceholder for the merchant. Used to put some data that will help the merchant to recognize for which order is the payment. Up to 80 characters. Note: Use separate IDs for this method to differentiate from the IDs of other methods. For example, for IPCPurchase use one ID (Purchase01), but for IPCRefund use different IDs (Refund01).
Amount23.45DoubleYESThe amount of the payment requested.
CurrencyEURA(3)YESISO 3-character currency code. The currency for the payment should be registered and approved.
OutputFormatXMLStringNOThe output format of data. The property can be “XML” or “JSON”. If it is not specified in the request, the default value is “XML”.

Response Properties

PropertyTypical valueTypeRequiredDescription
IPC_Trnref12345678923StringYESUsed to uniquely identify a transaction in IPC. Used as a parameter for subsequent refund or reversal if needed.
Amount23.45DoubleYESThe amount of the payment requested.
CurrencyEURA(3)YESISO 3-character currency code. The currency for the payment should be registered and approved.

Partner Identification

If you are part of our Partners Program, you will need to submit these two additional parameters with each of your requests to the API. This will provide you with analytics about the usage in your myPOS Partners Portal account and help our support teams assist you better.

Note - This requires you to set the API version of your requests to 1.4.1. No other changes in the code/requests are necessary.

PropertyTypical valueTypeDescription
PartnerIDmps-p-XXXXXXXXStringIdentical number for the partner
ApplicationIDmps-app-XXXXXXXXStringIdentical number for the application

Example Request

<IPC_response>
    <IPCmethod>IPCRefund</IPCmethod>
    <IPC_Trnref>12345678923</IPC_Trnref>
    <Amount>23.45</Amount>
    <Currency>EUR</Currency>
    <Status>0</Status>
    <StatusMsg>Success</StatusMsg>
</IPC_response>