> ## Documentation Index
> Fetch the complete documentation index at: https://developer.hct.com.tw/llms.txt
> Use this file to discover all available pages before exploring further.

# 4. Confirm Shipment Data – TransReport

> **Version**: v1.0.0 \
>
> **Status**: Final \
>
> **Last Updated**: 2026-11-24

## Overview

### Purpose

Once all parcels are ready, call this API to confirm the uploaded shipment data immediately.

> **Note:**
>
> * After changing the COD amount, you **must** call this API.
> * Once shipment data is confirmed, it **can no longer be updated**.
> * For forward logistics only.

## Prerequisites

* [ ] Company account (`sCompany`) and company password (`sPassword`): request them from your HCT branch.

## Authentication

This API currently provides no separate authentication mechanism. Call it directly according to this API specification.

## API Overview

* For the SOAP Envelope, HTTP request headers, and namespace definitions, see **[SOAP Specification](https://developer.hct.com.tw/files/logistics-share-docs/protocol-specifications/en/soap-specification.md)**.

### Environments

| Environment | URL |
| - | - |
| Test | [https://hctrt.hct.com.tw/edi\_webservice2\_test/service1.asmx](https://hctrt.hct.com.tw/edi_webservice2_test/service1.asmx) |
| Production | [https://hctrt.hct.com.tw/edi\_webservice2/service1.asmx](https://hctrt.hct.com.tw/edi_webservice2/service1.asmx) |

| Item | Value | Notes |
| - | - | - |
| Response timeout | 60 s | Maximum time to wait for the server to process and return data. |

### Data Format

* Do not send more than **20 records** per request.
* Use **UTF-8** for text.

### Endpoint

| Method | Endpoint | SOAP Action | Authentication | Notes |
| - | - | - | - | - |
| POST | `/service1.asmx` | TransReport\_Json | None | Supports JSON format |

## API Specification

### Request

| No. | Parameter | Type | Required | Description | Example |
| - | - | - | - | - | - |
| 1 | Body | SOAP Body | Y | SOAP request body | `<soap12:Body> </soap12:Body>` |
| 2 | TransReport\_Json | Object | Y | SOAPAction: `TransReport_Json` Request object | `<TransReport_Json  xmlns="http://tempuri.org/"></TransReport_Json >` |

* **TransReport\_Json**

> **Note:** Parameter names in this API differ from other APIs (`sCompany`, `sPassword`, `dsCusJson`).

| No. | Parameter | Type | Required | Description | Example |
| - | - | - | - | - | - |
| 1 | sCompany | String | Y | Company account | |
| 2 | sPassword | String | Y | Company password | |
| 3 | dsCusJson | Object | Y | Shipments to confirm | |

* **dsCusJson object**

| No. | Parameter | Type | Required | Description | Example |
| - | - | - | - | - | - |
| 1 | edelno | String(10) | Y | HCT tracking number | 1234567891 |
| 2 | epino | String(30) | Y | Order number | 20260812000000000002 |

### Response

| No. | Parameter | Type | Description |
| - | - | - | - |
| 1 | Num | String(2) | Sequence number |
| 2 | success | String(1) | Result (`Y`: success / `N`: failed) |
| 3 | edelno | String(10) | HCT tracking number |
| 4 | epino | String(30) | Order number |
| 5 | ErrMsg | String(200) | Error message |

#### HTTP Status Codes

| Status Code | Description |
| - | - |
| 200 | Success |

#### Business Error Messages

> The following values are returned in `ErrMsg` as-is (in Chinese).

| ErrMsg Value | Description |
| - | - |
| 公司名稱或密碼錯誤 | Invalid company account or password |
| 查無貨號 | Tracking number not found |
| 已經上傳過此筆 | This shipment has already been confirmed |
| TransReport\_Json資料錯誤請確認 | Invalid `TransReport_Json` data; please check |

## SDK & Sample Code

### Example

#### Request

```bash theme={null}
curl --location 'https://hctrt.hct.com.tw/edi_webservice2_test/service1.asmx' \
--header 'Content-Type: application/soap+xml; charset=utf-8' \
--data '<?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>
        <TransReport_Json xmlns="http://tempuri.org/">
            <sCompany>sCompany</sCompany>
            <sPassword>sPassword</sPassword>
            <dsCusJson>
            [
                {
                    "epino"  : "20260820000000000002",
                    "edelno" : "1004378093"
                }
            ]
            </dsCusJson>
        </TransReport_Json>
    </soap12:Body>
</soap12:Envelope>'
```

#### Response

```xml theme={null}
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <TransReport_JsonResponse xmlns="http://tempuri.org/">
            <TransReport_JsonResult>[
  {
    "Num": "1",
    "success": "Y",
    "edelno": "1004378093",
    "epino": "20260820000000000002",
    "ErrMsg": ""
  }
]</TransReport_JsonResult>
        </TransReport_JsonResponse>
    </soap:Body>
</soap:Envelope>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.