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

# 1、取得標籤所需內容-WS_addrCompare1

> **版本**：v1.0.1 \
>
> **狀態**：最終版  \
>
> **最後更新日期**：2026-11-24

## 文件概述

### 文件目的

* 提供地址API，讓客戶可以藉由此次API獲取到標籤上面對應內容。

| 編號 | 參數 | 說明 |
| - | - | - |
| 1 | addrCompare\_Json | 【多筆】地址比對新集貨註區地址比對 |

### 前置需求

* [ ] 登入帳號(USER)：向營業所申請
* [ ] 客戶代號(ESCSNO)：簽約時由新竹物流提供
* [ ] 重量(EQAMT)：簽約時雙方訂定

## 身分驗證

本 API 目前不提供身份驗證機制，使用者可直接依 API Specification 進行呼叫。

## API 規格總覽

* SOAP Envelope、HTTP Request Header 及 Namespace 定義請參考 **[SOAP規格](https://developer.hct.com.tw/files/logistics-share-docs/protocol-specifications/zh/soap-specification.md)**。

| 環境 | 網址 |
| - | - |
| 測試環境 | [https://is1fax.hct.com.tw/Webedi\_Erstno\_NEW2/WS\_addrCompare1.asmx](https://is1fax.hct.com.tw/Webedi_Erstno_NEW2/WS_addrCompare1.asmx) |
| 正式環境 | [https://is1fax.hct.com.tw/Webedi\_Erstno\_NEW2/WS\_addrCompare1.asmx](https://is1fax.hct.com.tw/Webedi_Erstno_NEW2/WS_addrCompare1.asmx) |

| 規範項目 | 設定值 | 備註 |
| - | - | - |
| 回應逾時時間 | 60s | 伺服器處理並回傳資料的最大等待時間 |

### 資料格式

* 中文請輸入**繁體字**
* 文字請使用utf-8

### API 端點

| 請求方法 | 端點 | SOAP 動作 | 驗證方式 | 說明 |
| - | - | - | - | - |
| POST | `/WS_addrCompare1.asmx` | addrCompare\_Json | X | |

## API 規格

### 支援格式

| 序號 | 參數 | 資料型態 | 是否必填 | 說明 | 範例 |
| - | - | - | - | - | - |
| 1 | Body | SOAP Body | Yes | SOAP Request Body | `<soap12:Body> </soap12:Body>` |
| 2 | addrCompare\_Json | Object | Yes | Request 物件 | `<addrCompare_Json xmlns="http://tempuri.org/"> </addrCompare_Json>` |

* addrCompare\_Json Object 定義

| 序號 | 參數 | 資料型態 | 是否必填 | 說明 | 範例 |
| - | - | - | - | - | - |
| 1 | Json | JSON Array | Yes | 地址比對內容物件 | `<Json> </Json>` |

* Json JSON Array 定義

| 序號 | 參數 | 資料型態 | 是否必填 | 說明 | 範例 |
| - | - | - | - | - | - |
| 1 | USER | String(20) | Y | 登入帳號 | |
| 2 | NO | String(50) | Y | 編號 規則：該批NO不可重複 | |
| 3 | ADDR | String(100) | Y | 收件人地址 [請參考【送貨地址輸入規則-規則】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/eraddr.md) | [請參考【送貨地址輸入規則-範例】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/eraddr.md) |
| 4 | ESDATE | String(8) | N | 發送日期 (時區：UTC+8) 格式：yyyymmdd  若無帶入值，將預設當天日期(UTC+8) | 20210416 |
| 5 | TEL | String(20) | N | 收件人電話，[請參考【電話輸入規則-規則】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/ertel.md) | [請參考【電話輸入規則-範例】](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/ertel.md) |
| 6 | TEL2 | String(20) | N | 收件人電話2，[請參考【電話輸入規則-規則】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/ertel.md) | [請參考【電話輸入規則-範例】](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/ertel.md) |
| 7 | EPRDCL | String(3) | Y | 商品種類  [請參考【商品種類-列舉值】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/eprdcl2.md) | 100 |
| 8 | EMARK | String(100) | N | 備註，若取貨地在[請參考【備註-說明】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/emark.md)內請帶入對應關鍵字 | 我是備註(全家) |
| 9 | ESCSNO | String(11) | N | 客戶代號 | |
| 10 | EJAMT | String(4) | Y | 外箱件數，請填整數  [ 請參考【商品重量-件數】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/package-weight.md) | 1 |
| 11 | EQAMT | String(5) | Y | 重量，請填整數  [ 請參考【商品重量-重量】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/package-weight.md) | 5 |
| 12 | EQAMTTYPE | String(1) | N | 重量單位，若未填寫一律為1  [請參考【商品重量-重量單位】說明](https://developer.hct.com.tw/files/logistics-share-docs/fields/zh/package-weight.md) | 1 |

### 回應規格

| 序號 | 參數 | 資料型態 | 是否必填 | 說明 | 範例 |
| - | - | - | - | - | - |
| 1 | NO | String(50) | | 編號，同`Request.NO` | A0000001 |
| 2 | PUTDATA\_M | String(4) | | 站所四碼代號 | 4402 |
| 3 | PUTDATA\_S | String(3) | | 站所簡碼 | 44 |
| 4 | PUTDATANAME | String(10) | | 站所名稱 | 草屯 |
| 5 | PUTDATAZIP | String(3) | | 郵遞區號 | 556 |
| 6 | PUTOUT\_AREA1 | String(3) | | SD註區 | 935 |
| 7 | PUTOUT\_AREA11 | String(1) | | SD疊區 | 2 |
| 8 | PUTOUT\_AREA2 | String(3) | | DD註區 | 935 |
| 9 | PUTOUT\_AREA21 | String(1) | | DD疊區 | 2 |
| 10 | PUTOUT\_AREA4 | String(3) | | MD註區 | 935 |
| 11 | PUTOUT\_AREA41 | String(1) | | MD疊區 | 2 |
| 12 | PUTOUT\_AREA6 | String(3) | | 低溫註區 | 935 |
| 13 | PUTOUT\_AREA61 | String(1) | | 低溫疊區 | 2 |
| 14 | PUTF5STAR | String(3) | | 聯運費用(起碼) | 160 |
| 15 | PUTF5GWET | String(3) | | 聯運費用(百公斤) | 320 |
| 16 | PUTAO\_FLAG | String(1) | | 優勢困聯配區(不可使用) | |
| 17 | PUTNEWRKZONE | String(20) | | 新集貨註區 | - 44- -935-2 |
| 18 | PUTCODE1 | String(1) | | 類別(不可使用) | |
| 19 | PUTCODE2 | String(3) | | 到著簡碼(不可使用) | 323 |
| 20 | PUTCODE3 | String(1) | | 衛星區(不可使用) | |
| 21 | PUTCODE4 | String(3) | | 註區(不可使用) | 021 |
| 22 | PUTCODE5 | String(1) | | 疊區(不可使用) | 3 |
| 23 | PUTCODE6 | String(11) | | QRCode(不可使用) | ^044935935^ |
| 24 | CODE1 | String(1) | | 類別 | |
| 25 | CODE2 | String(3) | | 到著簡碼（印在標籤上） | 44 |
| 26 | CODE3 | String(1) | | 衛星區（印在標籤上） | |
| 27 | CODE4 | String(3) | | 註區（印在標籤上） | 935 |
| 28 | CODE5 | String(1) | | 疊區（印在標籤上） | 2 |
| 29 | CODE6 | String(11) | | QRCode（印在標籤上） | ^044935935^ |
| 30 | AREAS | String(3) | | 聯運區提醒（`*` 表示有聯運區，空白表示沒有聯運區） | `*` |
| 31 | MDCODE1 | String(1) | | MD到著衛星區碼（印在標籤上） | |
| 32 | MDCODE2 | String(3) | | MD到著註區碼（印在標籤上） | 935 |
| 33 | MDCODE3 | String(1) | | MD到著疊區碼（印在標籤上） | |
| 34 | F5MEMO | String(200) | | 聯運說明 | 信義鄉：潭南村（等５村），每週１、３、５配送；東埔村（等４村），每週２、４、６配送。 |
| 35 | MSG | String(50) | | 訊息 | |

### 錯誤處理

#### HTTP 狀態碼

| 狀態碼 | 說明 |
| - | - |
| 200 | 成功 |

#### 業務錯誤代碼

| 錯誤代碼 | 說明 |
| - | - |
| User 帳號資料錯誤 | |

## SDK 與範例程式碼

### 範例

#### Request

```bash theme={null}
curl --location 'https://is1fax.hct.com.tw/Webedi_Erstno_NEW2/WS_addrCompare1.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>
    <addrCompare_Json xmlns="http://tempuri.org/">
      <Json>[{
        "USER":"TEST2",
        "NO":"A0000001", 
        "ADDR":"南投縣信義鄉東埔村東埔23號",
        "ESDATE":"20260428", 
        "TEL":"",
        "TEL2":"",
        "EPRDCL":"001",
        "EMARK":"我是備註(全家)", 
        "ESCSNO":"00000000000",
        "EJAMT":"1",
        "EQAMT":"5", 
        "EQAMTTYPE":"1"
        }]  </Json>
    </addrCompare_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>
        <addrCompare_JsonResponse xmlns="http://tempuri.org/">
            <addrCompare_JsonResult>[
  {
    "NO": "A0000001",
    "PUTDATA_M": "4402",
    "PUTDATANAME": "草屯    ",
    "PUTDATA_S": "44  ",
    "PUTDATAZIP": "556",
    "PUTOUT_AREA1": "935",
    "PUTOUT_AREA11": "2",
    "PUTOUT_AREA2": "935",
    "PUTOUT_AREA21": "2",
    "PUTOUT_AREA4": "935",
    "PUTOUT_AREA41": "2",
    "PUTOUT_AREA6": "935",
    "PUTOUT_AREA61": "2",
    "PUTF5STAR": "160",
    "PUTF5GWET": "320",
    "PUTAO_FLAG": "",
    "PUTNEWRKZONE": " - 44- -935-2",
    "PUTCODE1": " ",
    "PUTCODE2": " 44",
    "PUTCODE3": " ",
    "PUTCODE4": "935",
    "PUTCODE5": "2",
    "PUTCODE6": "^044935935^",
    "CODE1": " ",
    "CODE2": " 44",
    "CODE3": " ",
    "CODE4": "935",
    "CODE5": "2",
    "CODE6": "^044935935^",
    "AREAS": "*",
    "MDCODE1": "",
    "MDCODE2": "935",
    "MDCODE3": "2",
    "F5MEMO": "信義鄉：潭南村（等５村），每週１、３、５配送；東埔村（等４村），每週２、４、６配送。",
    "MSG": ""
  }
]</addrCompare_JsonResult>
        </addrCompare_JsonResponse>
    </soap:Body>
</soap:Envelope>
```


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