> ## 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.

# 5. Request Pickup Dispatch – TransDispatchOrder

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

## Overview

### Purpose

Once all parcels are ready to ship, call this API to dispatch an HCT driver for pickup.

> **Note:**
>
> * Only shipments uploaded within the **past 30 days** can be dispatched.
> * Reverse logistics dispatch is **not** supported.
> * No dispatch on Saturdays, Sundays, or national holidays.
> * After a dispatch request, the driver receives the pickup notification at **15:00**. Requests made after 15:00 are included in the next business day's notification.
> * To check whether a parcel has been picked up, is in transit, or has been delivered, enter the tracking number on the HCT website, or apply to your HCT branch for the shipment status API.

> **Dispatch failure:**
>
> * An error email is sent to the designated email address.
> * Fix the issue described in **Dispatch failure reason**, then request dispatch again.
> * If the failure reason is **Dispatch canceled (dispatch stopped because the customer canceled the pickup)**, upload new shipment data and then request dispatch again.

## Prerequisites

* [ ] Company account (`company`) and company password (`password`): request them from your HCT branch.
* [ ] Shipment manifest (two copies): see [Shipment Manifest](https://developer.hct.com.tw/files/logistics-share-docs/other/en/logistics-shipping-manifest.md).

## 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` | TransDispatchOrder\_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 | TransDispatchOrder\_Json | Object | Y | SOAPAction: `TransDispatchOrder_Json` Request object | `<TransDispatchOrder_Json  xmlns="http://tempuri.org/"></TransDispatchOrder_Json >` |

* **TransDispatchOrder\_Json**

| No. | Parameter | Type | Required | Description | Example |
| - | - | - | - | - | - |
| 1 | company | String | Y | Company account | |
| 2 | password | String | Y | Company password | |
| 3 | json | Object | Y | Shipments to dispatch | |

* **json object**

| No. | Parameter | Type | Required | Description | Example |
| - | - | - | - | - | - |
| 1 | epino | String(30) | Y | Order number | 20260812000000000002 |
| 2 | edelno | String(10) | Y | HCT tracking number | 1234567891 |
| 3 | emark | String(30) | Y | Format: `{platform or company}-{sender name}` | 智生活-王小明 |

### Response

| No. | Parameter | Type | Description |
| - | - | - | - |
| 1 | rtn\_code | Integer | Result code |
| 2 | rtn\_msg | String(200) | Result message |
| 3 | rtn\_data | Object | Result data |

* **rtn\_data**

| 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 Codes

> The messages below are returned in `rtn_msg` as-is (in Chinese).

| Code | Message | Description |
| - | - | - |
| 111000001 | 公司名稱或密碼錯誤.. | Invalid company account or password |
| 111000001 | 傳入資料為空.. | Request data is empty |
| 120000001 | 服務發生例外錯誤，請稍後再試 | Service exception; please try again later |
| 120000004 | 派遣收貨異常 (在企業代碼(Company)所設定的「派遣類型」，尚未配置參數，目前整批資料無法處理) | Pickup dispatch error: the dispatch type configured for this company account has no parameters set up, so the entire batch cannot be processed |

## 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>
        <TransDispatchOrder_Json  xmlns="http://tempuri.org/">
            <company>company</company>
            <password>password</password>
            <json>
            [
                {
                    "epino"  : "20260820000000000002",
                    "edelno" : "1004378093",
                    "emark":"我是測試"
                }
            ]
            </json>
        </TransDispatchOrder_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>
        <TransDispatchOrder_JsonResponse xmlns="http://tempuri.org/">
            <TransDispatchOrder_JsonResult>{
  "rtn_data": [
    {
      "num": "1",
      "success": "N",
      "edelno": "1004378093",
      "epino": "20260820000000000002",
      "emark": "我是測試",
      "errMsg": "查無此資料或已超過30日，請確認資料"
    }
  ],
  "rtn_code": 120000004,
  "rtn_msg": "派遣收貨異常 (在企業代碼(Company)所設定的「派遣類型」，尚未配置參數，目前整批資料無法處理)"
}</TransDispatchOrder_JsonResult>
        </TransDispatchOrder_JsonResponse>
    </soap:Body>
</soap:Envelope>
```


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