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
| Property | Typical value | Type | Required | Description |
|---|---|---|---|---|
| IPC_Trnref | 12345678923 | String | YES | Used to uniquely identify a transaction in IPC. Used as a parameter for subsequent refund or reversal if needed. |
| OrderID | 201203319999999 | String | NO | Placeholder 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). |
| Amount | 23.45 | Double | YES | The amount of the payment requested. |
| Currency | EUR | A(3) | YES | ISO 3-character currency code. The currency for the payment should be registered and approved. |
| OutputFormat | XML | String | NO | The 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
| Property | Typical value | Type | Required | Description |
|---|---|---|---|---|
| IPC_Trnref | 12345678923 | String | YES | Used to uniquely identify a transaction in IPC. Used as a parameter for subsequent refund or reversal if needed. |
| Amount | 23.45 | Double | YES | The amount of the payment requested. |
| Currency | EUR | A(3) | YES | ISO 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.
| Property | Typical value | Type | Description |
|---|---|---|---|
| PartnerID | mps-p-XXXXXXXX | String | Identical number for the partner |
| ApplicationID | mps-app-XXXXXXXX | String | Identical 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>