# 860 – Refund Notification

## **860 Notification Data description**

| NODE              | INCLUDE IN CHECKSUM (IN THIS ORDER) | REQUIRED | DATA TYPE                 | DESCRIPTION                                                                                                                                                                                                                       |
| ----------------- | ----------------------------------- | -------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| apiUser           | YES (1)                             | YES      | Character max 50.         | The API user assigned by the Gateway to the merchant. Can be obtained from the website inside your merchant account.                                                                                                              |
| apiPassword       | YES (2)                             | YES      | Character max 50.         | The API password assigned by Gateway to the merchant. Can be obtained from the website inside your merchant account.                                                                                                              |
| apiCmd            | YES (3)                             | YES      | 860                       | 3 digit numeric transaction code must be 860                                                                                                                                                                                      |
| gatetransid       | YES (4)                             | YES      | Character max 50.         | Unique gateway transaction id refers to charge transaction for which the refund has been requested.                                                                                                                               |
| amount            | Yes (5)                             | YES      | Number with point decimal | Full amount to charge in specified currency. Decimal separator must be point (.). example: 125.45 = One hundred and twenty-five Major Currency Units with forty-five Minor Currency Units.                                        |
| status            | YES (7)                             | YES      | Character                 | Last change in the status of the transaction. DECLINED: The Refund Request was declined. SUCCESS: The Refund has been successfully Processed                                                                                      |
| reason            |                                     | OPT      | Character max 256.        | The gateway may optionally include an explanation for Approving or Declining a Request for Refund. This field will contain the reason for a REFUND processed by GPN DATA where no request for refund has been made.               |
| merchantspecific1 |                                     | YES      | Character max 200.        | Merchant specific data for merchant use only. Data sent is the same as was sent in the 700 transaction.                                                                                                                           |
| merchantspecific2 |                                     | YES      | Character max 200.        | Merchant specific data for merchant use only. Data sent is the same as was sent in the 700 transaction.                                                                                                                           |
| merchantspecific3 |                                     | YES      | Character max 200.        | Merchant specific data for merchant use only. Data sent is the same as was sent in the 700 transaction.                                                                                                                           |
| merchantspecific4 |                                     | YES      | Character max 200.        | Merchant specific data for merchant use only. Data sent is the same as was sent in the 700 transaction.                                                                                                                           |
| merchantspecific5 |                                     | YES      | Character max 200.        | Merchant specific data for merchant use only. Data sent is the same as was sent in the 700 transaction.                                                                                                                           |
| time              |                                     | YES      | Character 25.             | Date and time of notification generation in ISO 8601 format, example: 2015-11-07T15:04:42+00:00                                                                                                                                   |
| checksum          |                                     | YES      | Character 36              | SHA-1 calculated using the fields specified by the transaction plus the API key assigned by GPN DATA to the merchant. This field must be calculated using the fields marked as “Include in checksum” plus the API key at the end. |

## 860 Notification Sample

```xml
<?xmlversion="1.0" encoding="utf-8" ?>
<transaction>
		<apiUser> </apiUser>
		<apiPassword> </apiPassword>
		<apiCmd>860</apiCmd>
		<gatetransid> </gatetransid>
		<amount> </amount>
		<status> </status>
		<reason> </reason>
		<merchantspecific1> </merchantspecific1>
		<merchantspecific2> </merchantspecific2>
		<merchantspecific3> </merchantspecific3>
		<merchantspecific4> </merchantspecific4>
		<merchantspecific5> </merchantspecific5>
		<time> </time>
		<checksum> </checksum>		
</transaction> 
```
