URI054 代碼API

Tony Fan

tags: 舊API API規格

代碼查詢

(CP案)擴充項目清單

網址

  • path : ${TT-API網址}/codemetas/{languageId}/{codemetaId}

Input JSON Path

  • path : ${TT-API網址}/codemetas/{languageId}/{codemetaId}
  • method : GET
  • query :
    • parentId:父類別value
    • parentCode:父類別code
  • body : 無

輸入參數說明

代碼查詢欄位

欄位名稱 欄位說明 型態 是否必要欄位
languageId 語系代碼 number Y
codemetaId 在 TT 資料庫內之 code meta String Y
parentId 父類別的value String N
parentCode 父類別的code number N
  • languageId : 參考 URI054 language
  • codemetaId : 種類參考代碼對應說明
  • parentId : 輸入對應父類別(參考代碼對應說明父類別)中的value,即可獲得該父類別下的codemetaId代碼表
  • parentCode : 輸入對應父類別(參考代碼對應說明父類別)中的code,即可獲得該父類別下的codemetaId代碼表

代碼對應說明表

codemetaId 說明 顯示telcode 父類別 (使用API)
product-sort產品排序之下拉選單(URI009)
payment-method付款方式(URI010)
product-industry產品產業別(URI041)
product-category產品子產業別product-industry(URI041)
product-certification產品認證(URI041)
product-main-export-market產品主要出口市場(URI041)
product-shipping-way產品運送方式(URI041)
product-co-certification產品認證機構(URI041)
supplier-industry供應商產業別(URI041)
supplier-category供應商子產業別supplier-industry(URI041)
supplier-certification供應商認證(URI041)
supplier-main-export-market供應商主要出口市場(URI041)
supplier-company-business-type供應商業務類型(URI041)
supplier-co-certification供應商認證機構(URI041)
company-industry公司產業別(URI041)
company-certification公司認證(URI041)
company-main-export-market公司主要出口市場(URI041)
company-company-business-type公司業務類型(URI041)
event-industry活動產業別(URI041)
event-continent活動國家所屬洲別(URI041)
event-country活動國家event-continent(URI041)
event-sort活動排序之下拉選單(URI041)
news-category新聞子產業別(URI041)
news-continent新聞發布國家洲別(URI041)
news-sort新聞排序之下拉選單(URI041)
language語系
以下為CP案新增
event-type活動類型(URI-B-02)
offer-type商機類型(URI-D-01) (URI-D-02)
post-category商機產業別(URI-D-01)
post-continent商機洲別(URI-D-01)
post-country商機國家post-continent (URI-O-03) (URI-D-01)
post-day商機發佈時間間距(URI-D-01)
user-title-code會員稱謂代碼(URI-G-02)
user-country會員國家(URI-G-02)
user-country-state會員國家行政區user-country (URI-G-02) (URI-O-04)
quantity-unit數量單位(URI-O-02)
appellation稱謂appellation(URI-O-01)

Output JSON Path

{ 
  "pagelabel" : <pagelabel>, //代碼分類名稱 ex payment-method,
  "label": [
    {
      "value": <value>, // 系統ID 2307,
      "code": <code>, //顯示code識別碼(字串唯一值),
      "name": <name>,  //顯示名稱 Paypal
      "telcode": <telcode> // `post-country` `user-country` 輸出對應的國碼
    },
}

輸出參數說明

代碼輸出欄位

欄位名稱 欄位說明 型態 是否可為空值
pagelabel 代碼分類名稱 String N
label 代碼 代碼欄位(Array) Y
代碼欄位
欄位名稱 欄位說明 型態 是否可為空值
value codemetaId String N
code 顯示code識別碼(字串唯一值) String N
name 顯示名稱 String N
telcode 國家國碼 String Y

API 邏輯

參考 URI054 API邏輯 (需有權限才能瀏覽)

範例

參考 URI054 測試案例