# Terminal API : Upload Transaction Info

### The payment application reports back transaction information using this API.

{% hint style="warning" %}
This API is for Payment Application
{% endhint %}

## Upload Transaction Info

<mark style="background-color:blue;">**Test Enviroment:**</mark>

<mark style="color:green;">`POST`</mark> [`https://uat.paywizard.biz/ovstrade/sysTransLog/updateTransInfo`](https://oversea.paywizard.biz/ovstrade/sysTransLog/updateTransInfo)&#x20;

<mark style="background-color:green;">**Production Enviroment:**</mark>

<mark style="color:green;">`POST`</mark> [`https://portal.paywizard.biz/ovstrade/sysTransLog/updateTransInfo`](https://portal.paywizard.biz/ovstrade/sysTransLog/updateTransInfo)

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Request Body**

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td>invoice</td><td>string</td><td>true</td><td>Invoice No.</td></tr><tr><td>trace</td><td>String</td><td>false</td><td>Trace No.</td></tr><tr><td>mid</td><td>String</td><td>true</td><td>Merchant ID</td></tr><tr><td>tid</td><td>String</td><td>true</td><td>Terminal ID</td></tr><tr><td>merchantName</td><td>String</td><td>false</td><td></td></tr><tr><td>packageName</td><td>String</td><td>true</td><td>Payment Application Package Name</td></tr><tr><td>batch</td><td>String</td><td>true</td><td>Batch No.</td></tr><tr><td>cardPan</td><td>String</td><td>true</td><td><strong>Masked Card Number</strong></td></tr><tr><td>sn</td><td>String</td><td>true</td><td>Terminal S/N</td></tr><tr><td>dateTime</td><td>String</td><td>true</td><td>yyyyMMddHHmmss</td></tr><tr><td>storeName</td><td>String</td><td>false</td><td></td></tr><tr><td>email</td><td>String</td><td>false</td><td></td></tr><tr><td>phone</td><td>String</td><td>false</td><td></td></tr><tr><td>type</td><td>String</td><td>true</td><td><p>Transaction Type:</p><p><code>Purchase</code><br><code>PreAuth</code><br><code>AuthCompletion</code><br><code>Reversal</code><br><code>Refund</code></p></td></tr><tr><td>oriDate</td><td>String</td><td>false</td><td></td></tr><tr><td>amount</td><td>Long</td><td>true</td><td></td></tr><tr><td>rrn</td><td>String</td><td>false</td><td>Reference Number</td></tr><tr><td>approvalCode</td><td>String</td><td>false</td><td>APPR Code</td></tr><tr><td>tsi</td><td>String</td><td>false</td><td>TSI</td></tr><tr><td>atc</td><td>String</td><td>false</td><td>ATC</td></tr><tr><td>tvr</td><td>String</td><td>false</td><td>TVR</td></tr><tr><td>apsn</td><td>String</td><td>false</td><td>APSN</td></tr><tr><td>appName</td><td>String</td><td>false</td><td>EMV APP Name</td></tr><tr><td>aid</td><td>String</td><td>false</td><td>AID</td></tr><tr><td>expDate</td><td>String</td><td>false</td><td>Card Expire Date</td></tr><tr><td>currencyCode</td><td>String</td><td>true</td><td>Currency Code</td></tr><tr><td>currencyName</td><td>String</td><td>false</td><td>Currency Name</td></tr></tbody></table>

**Request Sample**

```json
{
        "mid": "10800000003",
        "invoice": "000024072215488",
        "trace": "99",
        "tid": "00000001",
        "merchantName": "Test Merchant Name",
        "batch": "0000000002",
        "cardPan": "541333******0190",
        "sn": "WP20031Q21000819",
        "dateTime": "20241223222428",
        "amount": "100",
        "rrn": "819154323807",
        "approvalCode": "137379",
        "tsi": "0000",
        "atc": "0140",
        "tvr": "0000000000",
        "apsn": "00",
        "appName": "VISA DEBIT",
        "aid": "A0000000031010",
        "expDate": "25/25",
        "currencyName": "USD",
        "currencyCode": "840",
        "cardType": "VISA CARD",
        "packageName": "com.wizarpos.usbdevicedemo"
}
```

**Request Data Sample**

```java
{
    "Data":"dN7dv7+HW7e+6EvP5P4iNq4NtAg8IMmuhfFp2bj8u8xceItpvExXdCkHB/2V3wrVQoX7Ooh+mPzKmV/ma7UQcXnLDuD9PCBeHcrO3HFS8lJKQKruEumpaHvtVoW+lM4v7uRh5mV+CFPCBUff0u10M8+WSdprwnEB2blqN6uuqGSAqJnhCLZVZUdYEwH/mIdhWEEXjQDlBmC1K0Cje2e5s+PI87fxrmJJ3qrYDtTEZ+L+kNRSVdNBs6kGouKJ/C4mNF6O6zJtB8EkBrpPibJ9XSIFLku+JPMmYU2Aj+/qbWaQXZOaLp9inQlt+1IUzfT8vggsXDWwmjPcVpyj/dDW/Q=="
}
```

**Response Body**

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td>code</td><td>int</td><td>true</td><td><p>Response Code</p><p><code>(200 Success,</code></p><p><code>Non-200 Failed)</code></p></td></tr><tr><td>msg</td><td>String</td><td>true</td><td>Response Message</td></tr></tbody></table>

**Response Sample**

{% tabs %}
{% tab title="200" %}
```json
{
    "code": 200,
    "msg": "200"
}
```
{% endtab %}
{% endtabs %}
