2022-Front-SQL
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # URI-B-07 Shipping & Packaging API > [name=JasonWu] ###### tags: `URI-B` ## 內容 ### 網址 ## 相關示意圖 ![](https://i.imgur.com/VlouGOm.jpg) ### 相關程式 ### Input JSON Path #### 規格 - path : ${TT-API網址}/products/shipping/{did}/{id}/{countryId} - method : GET ~~- query : ?userId={userId}~~ - query : ?userAccessTicket={userAccessTicket} #### Input 欄位名稱 | 欄位說明 | 資料型態 | 是否必要欄位 | 備註 -----------|--------------|----------|--------------|--------- did | domain id | number | Y | int id | 型錄 id | number | Y | int countryId | 運送國家 id | number | Y | int userAccessTicket | 登入者使用者Ticket | string | N | ==舊版紀錄如下 Column | Type | Require | Desc -----------|----------|---------|--------- did | number | Y | domain id id | number | Y | 型錄 id countryId | number | Y | 運送國家 id ~~userId~~ | ~~number~~ | ~~N~~ | ~~登入使用者 id~~ userAccessTicket | String | N | 登入者使用者Ticket #### 範例 ```=json https://tt-api.taiwantrade.com/products/shipping/2/1896775/481 ``` #### 邏輯 - 查詢參數說明如下 - did : domain id,與頁面及版型相關參數,例如英文主頁 did = 2 - id : 型錄 id,參考 http://www.ttstaging.com.tw/product/1893926 ,其中 "1893926" 就是型錄 id - countryId : 運送國家 id,當使用者操作過程中有選擇國家時,需要傳入對應的國家 id 來取得對應的運費 - userAccessTicket 為登入者使用者Ticket,AEM 透過 header service 取得 userAccessTicket,如果有傳入,且經過解析後是正常的 ticket,後續 api 就會判斷此次呼叫是有登入的呼叫 - 使用者已登入與使用者未登入,相關的國家選單會有差異 - 如果使用者未登入,此時國別下拉選單的順序與公司相關,第一筆會是公司的國別 ![](https://i.imgur.com/mUlYqKA.jpg) - 以 https://www.ttstaging.com.tw/product/1893926 為例,如果使用者未登入,下拉選單的第一筆是 United States - 如果使用者有登入,此時國別下拉選單的順序與使用者有關,第一筆會是使用者對應的國別 ![](https://i.imgur.com/m6P7uMK.jpg) - 以 https://www.ttstaging.com.tw/product/1893926 為例,如果使用者已登入,下拉選單的第一筆是 Taiwan - ~~userId 為非必填參數,如果有參數,代表使用者已登入~~ - 如果輸入參數 userAccessTicket 有值,代表使用者已登入 - API 回傳 json 供頁面解析 - shippingCountryList 為國別列表,第一筆依照使用者登入狀態決定哪一個國別要放在第一筆 - shippingAreaList 為洲別/區別列表,與傳入的 {countryId} 有關,找出該國別對應的 洲別/區別 資料 - shippingInfo 為對應的貨運公司與相關運費資訊 ### Output JSON Path #### 規格 #### 輸出參數說明 欄位名稱 | 欄位說明 | 資料型態 | 是否可為空值 | 備註 -----------|--------------|----------|--------------|--------- code | 執行狀態代碼 | number | N | int<br/>code=0為正常<br/>code<0為錯誤 errorMsg | 錯誤訊息 | string | N | intervalTime | 執行時間 | string | N | 顯示執行時間,單位 ms shippingCountryList | 運費國別清單 | [`選單資料(Object)`](#選單資料) | Y | shippingAreaList | 運費區域清單 | [`選單資料(Object)`](#選單資料) | Y | shippingInfo | 運費資料 | [`運費資料(Object)`](#運費資料) | Y | ==舊版紀錄如下 |欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | |---------------------|---------------|-----------|--------------| |code | 代碼 | int | 0表示ok | |errorMsg | 錯誤訊息 | String | | |shippingCountryList | 運費國別清單 | [`選單資料(Object)`](#選單資料) | Y | |shippingAreaList | 運費區域清單 | [`選單資料(Object)`](#選單資料) | Y | |shippingInfo | 運費資料 | [`運費資料(Object)`](#運費資料) | Y | ##### 選單資料 欄位名稱 | 欄位說明 | 資料型態 | 是否可為空值 | 備註 -----------|--------------|----------|--------------|--------- code | 資料代碼 | number | N | int name | 資料名稱 | string | N | ==舊版紀錄如下 |欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | |-------------------|-----------------------------|--------|--------------| |code | 資料代碼 | int | N | |name | 資料名稱 | String | N | ##### 運費資料 欄位名稱 | 欄位說明 | 資料型態 | 是否可為空值 | 備註 -----------|--------------|----------|--------------|--------- shippingCountryId | 預設運輸國家代碼 | number | N | int shippingAreaId | 預設運輸區域代碼 | number | Y | int shippingDataList | 運費列表 | [`運費列表(Object)`](#運費列表) | N | ==舊版紀錄如下 |欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | |-------------------|-----------------------------|--------|--------------| |shippingCountryId | 預設運輸國家代碼 | int | N | |shippingAreaId | 預設運輸區域代碼 | int | Y | |shippingDataList | 運費列表 | [`運費列表(Object)`](#運費列表) | N | ##### 運費列表 欄位名稱 | 欄位說明 | 資料型態 | 是否可為空值 | 備註 -----------|--------------|----------|--------------|--------- id | shipping pk id | number | N | int deliveryCompanyId | 運送公司id | number | N | int deliveryCompanyCode | 運送公司代碼 | string | N | deliveryCompanyName | 運送公司名 | string | N | forAllCountry | 是否可達所有國家 | number | N | int,<br/>0(否)/1(是) fixFee | 固定運費 | number | Y | float customPortage | 自訂運費 | number | Y | float customAmount | 自訂運費,運送設置件數 | number | Y | int customOverPortage | 自訂運費,每多 n 件多收的金額 | number | Y | float customOverAmount | 自訂運費,結合 customOverPortage 的應用,紀錄 每多 n 件的件數 | number | Y | int shippingType | 運費類型 | number | N | int,<br/>0:免運費;<br/>1:自訂運費;<br/>2:固定運費;<br/>3:UPS專用的會員專屬優惠運費 durationStart | Estimated Delivery Time start | number | Y | int,日數 durationEnd | Estimated Delivery Time end | number | Y | int,日數 monetaryValue | UPS 優惠運費,shippingType=3 時使用 | number | Y | float ==舊版紀錄如下 |欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | |--------------------|-------------------------------|--------|--------------| |id | shipping pk id | int | N | |deliveryCompanyId | 運送公司id | int | N | |deliveryCompanyCode | 運送公司代碼 | String | N | |deliveryCompanyName | 運送公司名 | String | N | |forAllCountry | 是否可達所有國家 | int | 0(否)/1(是) | |fixFee | 固定運費 | ~~int~~<br/>number | Y | |customPortage | 自訂運費 | ~~int~~<br/>number | Y | |customAmount | 自訂運費,運送設置件數 | ~~int~~<br/>number | Y | |customOverPortage | 自訂運費,每多 n 件多收的金額 | ~~int~~<br/>number | Y | |customOverAmount | 自訂運費,結合 customOverPortage 的應用,紀錄 每多 n 件的件數 | ~~int~~<br/>number | Y | |shippingType | 運費類型 | int | 0:免運費; 1:自訂運費; 2:固定運費; 3:UPS專用的會員專屬優惠運費 | |durationStart | Estimated Delivery Time start | ~~String~~<br/>number | Y | |durationEnd | Estimated Delivery Time end | ~~String~~<br/>number | Y | #### 範例 ```=json { "code": 0, "errorMsg": "", "intervalTime": "123 ms", "data": { "shippingCountryList": [ { "code": 481, "name": "United States" }, { "code": 586, "name": "Afghanistan" }, { "code": 692, "name": "Albania" }, { "code": 658, "name": "Algeria" }, { "code": 523, "name": "American Samoa" }, { "code": 600, "name": "Andorra" }, { "code": 647, "name": "Angola" }, { "code": 483, "name": "Anguilla" }, { "code": 551, "name": "Antarctica" }, { "code": 669, "name": "Antigua And Barbuda" }, { "code": 510, "name": "Argentina" }, { "code": 601, "name": "Armenia" }, { "code": 511, "name": "Aruba" }, { "code": 524, "name": "Australia" }, { "code": 602, "name": "Austria" }, { "code": 693, "name": "Azerbaijan" }, { "code": 509, "name": "BR T/C C A" }, { "code": 670, "name": "Bahamas" }, { "code": 587, "name": "Bahrain" }, { "code": 563, "name": "Bangladesh" }, { "code": 485, "name": "Barbados" }, { "code": 606, "name": "Belarus" }, { "code": 604, "name": "Belgium" }, { "code": 487, "name": "Belize" }, { "code": 650, "name": "Benin" }, { "code": 486, "name": "Bermuda" }, { "code": 686, "name": "Bhutan" }, { "code": 512, "name": "Bolivia" }, { "code": 603, "name": "Bosnia-Herzegowina" }, { "code": 651, "name": "Botswana" }, { "code": 552, "name": "Bouvet Island" }, { "code": 678, "name": "Brazil" }, { "code": 553, "name": "British Indian Ocean Territory" }, { "code": 564, "name": "Brunei Darussalam" }, { "code": 605, "name": "Bulgaria" }, { "code": 648, "name": "Burkina Faso" }, { "code": 649, "name": "Burundi" }, { "code": 618, "name": "CROATIA (Local Name: Hrvatska)" }, { "code": 570, "name": "Cambodia" }, { "code": 655, "name": "Cameroon" }, { "code": 667, "name": "Canada" }, { "code": 656, "name": "Cape Verde" }, { "code": 496, "name": "Cayman Islands" }, { "code": 652, "name": "Central African Republic" }, { "code": 468, "name": "Chad" }, { "code": 513, "name": "Chile" }, { "code": 526, "name": "Christmas Island" }, { "code": 525, "name": "Cocos (Keeling) Islands" }, { "code": 514, "name": "Colombia" }, { "code": 446, "name": "Comoros" }, { "code": 653, "name": "Congo" }, { "code": 682, "name": "Cook Islands" }, { "code": 488, "name": "Costa Rica" }, { "code": 654, "name": "Cote D'Ivoire" }, { "code": 671, "name": "Cuba" }, { "code": 690, "name": "Cyprus" }, { "code": 694, "name": "Czech Republic" }, { "code": 1371, "name": "Democratic Republic of Congo" }, { "code": 609, "name": "Denmark" }, { "code": 657, "name": "Djibouti" }, { "code": 489, "name": "Dominica" }, { "code": 490, "name": "Dominican Republic" }, { "code": 543, "name": "East Timor" }, { "code": 679, "name": "Ecuador" }, { "code": 659, "name": "Egypt" }, { "code": 502, "name": "El Salvador" }, { "code": 443, "name": "Equatorial Guinea" }, { "code": 661, "name": "Eritrea" }, { "code": 610, "name": "Estonia" }, { "code": 662, "name": "Ethiopia" }, { "code": 508, "name": "F T/C C A" }, { "code": 515, "name": "Falkland Islands (Malvinas)" }, { "code": 612, "name": "Faroe Islands" }, { "code": 527, "name": "Fiji" }, { "code": 695, "name": "Finland" }, { "code": 613, "name": "France" }, { "code": 614, "name": "France, Metropolitan" }, { "code": 516, "name": "French Guiana" }, { "code": 537, "name": "French Polynesia" }, { "code": 557, "name": "French Southern Territories" }, { "code": 663, "name": "Gabon" }, { "code": 561, "name": "Gambia" }, { "code": 616, "name": "Georgia" }, { "code": 608, "name": "Germany" }, { "code": 664, "name": "Ghana" }, { "code": 696, "name": "Gibraltar" }, { "code": 617, "name": "Greece" }, { "code": 477, "name": "Greenland" }, { "code": 672, "name": "Grenada" }, { "code": 478, "name": "Guadeloupe" }, { "code": 528, "name": "Guam" }, { "code": 491, "name": "Guatemala" }, { "code": 7435, "name": "Guernsey" }, { "code": 562, "name": "Guinea" }, { "code": 444, "name": "Guinea-Bissau" }, { "code": 518, "name": "Guyana" }, { "code": 493, "name": "Haiti" }, { "code": 668, "name": "Heard and Mc Donald Island" }, { "code": 492, "name": "Honduras" }, { "code": 566, "name": "Hong Kong" }, { "code": 619, "name": "Hungary" }, { "code": 621, "name": "Iceland" }, { "code": 568, "name": "India" }, { "code": 567, "name": "Indonesia" }, { "code": 590, "name": "Iran" }, { "code": 589, "name": "Iraq" }, { "code": 620, "name": "Ireland" }, { "code": 7436, "name": "Isle of Man" }, { "code": 588, "name": "Israel" }, { "code": 697, "name": "Italy" }, { "code": 494, "name": "Jamaica" }, { "code": 569, "name": "Japan" }, { "code": 7427, "name": "Jersey" }, { "code": 591, "name": "Jordan" }, { "code": 623, "name": "Kazakhstan" }, { "code": 445, "name": "Kenya" }, { "code": 529, "name": "Kiribati" }, { "code": 571, "name": "Korea, North Korea" }, { "code": 572, "name": "Korea, South Korea" }, { "code": 5745, "name": "Kosovo" }, { "code": 592, "name": "Kuwait" }, { "code": 622, "name": "Kyrgyzstan" }, { "code": 573, "name": "Lao People's Democratic Republic" }, { "code": 626, "name": "Latvia" }, { "code": 593, "name": "Lebanon" }, { "code": 448, "name": "Lesotho" }, { "code": 447, "name": "Liberia" }, { "code": 449, "name": "Libyan Arab Jamahiriya" }, { "code": 624, "name": "Liechtenstein" }, { "code": 698, "name": "Lithuania" }, { "code": 625, "name": "Luxembourg" }, { "code": 576, "name": "Macau" }, { "code": 699, "name": "Macedonia, The Former Yugoslav Rep. Of" }, { "code": 451, "name": "Madagascar" }, { "code": 565, "name": "Mainland China" }, { "code": 455, "name": "Malawi" }, { "code": 577, "name": "Malaysia" }, { "code": 532, "name": "Maldives" }, { "code": 452, "name": "Mali" }, { "code": 629, "name": "Malta" }, { "code": 530, "name": "Marshall Islands" }, { "code": 673, "name": "Martinique" }, { "code": 453, "name": "Mauritania" }, { "code": 454, "name": "Mauritius" }, { "code": 559, "name": "Mayotte" }, { "code": 499, "name": "Mexico" }, { "code": 683, "name": "Micronesia, Federated States Of" }, { "code": 628, "name": "Moldova Rep." }, { "code": 450, "name": "Monaco" }, { "code": 575, "name": "Mongolia" }, { "code": 441, "name": "Montenegro" }, { "code": 498, "name": "Montserrat" }, { "code": 627, "name": "Morocco" }, { "code": 456, "name": "Mozambique" }, { "code": 574, "name": "Myanmar" }, { "code": 457, "name": "Namibia" }, { "code": 535, "name": "Nauru" }, { "code": 578, "name": "Nepal" }, { "code": 630, "name": "Netherlands" }, { "code": 484, "name": "Netherlands Antilles" }, { "code": 554, "name": "Neutral Zone" }, { "code": 507, "name": "Nevis" }, { "code": 533, "name": "New Caledonia" }, { "code": 536, "name": "New Zealand" }, { "code": 500, "name": "Nicaragua" }, { "code": 458, "name": "Niger" }, { "code": 459, "name": "Nigeria" }, { "code": 442, "name": "Niue" }, { "code": 534, "name": "Norfolk Island" }, { "code": 531, "name": "Northern Mariana Islands" }, { "code": 631, "name": "Norway" }, { "code": 594, "name": "Oman" }, { "code": 689, "name": "Oth African" }, { "code": 472, "name": "Oth Asian" }, { "code": 676, "name": "Oth C A" }, { "code": 645, "name": "Oth Europ" }, { "code": 598, "name": "Oth M Near E" }, { "code": 482, "name": "Oth N A" }, { "code": 681, "name": "Oth S A" }, { "code": 439, "name": "Other" }, { "code": 558, "name": "Other" }, { "code": 560, "name": "Other" }, { "code": 684, "name": "Other E.C.C." }, { "code": 549, "name": "Other Oceania" }, { "code": 579, "name": "Pakistan" }, { "code": 539, "name": "Palau" }, { "code": 501, "name": "Panama" }, { "code": 538, "name": "Papua New Guinea" }, { "code": 520, "name": "Paraguay" }, { "code": 519, "name": "Peru" }, { "code": 688, "name": "Philippines" }, { "code": 555, "name": "Pitcairn" }, { "code": 632, "name": "Poland" }, { "code": 633, "name": "Portugal" }, { "code": 674, "name": "Puerto Rico" }, { "code": 595, "name": "Qatar" }, { "code": 5747, "name": "Republic of Somaliland" }, { "code": 5746, "name": "Republic of South Sudan" }, { "code": 460, "name": "Reunion" }, { "code": 634, "name": "Romania" }, { "code": 635, "name": "Russian Federation" }, { "code": 461, "name": "Rwanda" }, { "code": 584, "name": "Ryukyu" }, { "code": 517, "name": "S. Georgia And The S. Sandwich Islands" }, { "code": 497, "name": "Saint Lucia" }, { "code": 547, "name": "Samoa" }, { "code": 639, "name": "San Marino" }, { "code": 665, "name": "Sao Tome " }, { "code": 691, "name": "Saudi Arabia" }, { "code": 465, "name": "Senegal" }, { "code": 440, "name": "Serbia" }, { "code": 646, "name": "Serbia and Montenegro" }, { "code": 462, "name": "Seychelles" }, { "code": 464, "name": "Sierra Leone" }, { "code": 580, "name": "Singapore" }, { "code": 638, "name": "Slovakia (Slovak Republic)" }, { "code": 637, "name": "Slovenia" }, { "code": 540, "name": "Solomon Islands" }, { "code": 466, "name": "Somalia" }, { "code": 473, "name": "South Africa" }, { "code": 611, "name": "Spain" }, { "code": 687, "name": "Sri Lanka" }, { "code": 495, "name": "St Kitts and Nevis" }, { "code": 504, "name": "St Vincent" }, { "code": 480, "name": "St. Helena St.Helena" }, { "code": 479, "name": "St. Pierre and Miquelon" }, { "code": 5785, "name": "State of Palestine" }, { "code": 463, "name": "Sudan" }, { "code": 680, "name": "Suriname" }, { "code": 556, "name": "Svalbard And Jan Mayen Islands" }, { "code": 467, "name": "Swaziland" }, { "code": 636, "name": "Sweden" }, { "code": 607, "name": "Switzerland" }, { "code": 596, "name": "Syrian Arab Republic" }, { "code": 4665, "name": "TIMOR-LESTE" }, { "code": 548, "name": "Tahiti" }, { "code": 582, "name": "Taiwan" }, { "code": 640, "name": "Tajikistan" }, { "code": 666, "name": "Tanzania, United Republic Of" }, { "code": 581, "name": "Thailand" }, { "code": 469, "name": "Togo" }, { "code": 541, "name": "Tokelau" }, { "code": 542, "name": "Tonga" }, { "code": 503, "name": "Trinidad And Tobago" }, { "code": 470, "name": "Tunisia" }, { "code": 597, "name": "Turkey" }, { "code": 641, "name": "Turkmenistan" }, { "code": 675, "name": "Turks And Caicos Islands" }, { "code": 544, "name": "Tuvalu" }, { "code": 677, "name": "US T/P C A" }, { "code": 550, "name": "US T/P P A" }, { "code": 471, "name": "Uganda" }, { "code": 642, "name": "Ukraine" }, { "code": 585, "name": "United Arab Emirates" }, { "code": 615, "name": "United Kingdom" }, { "code": 685, "name": "United States Minor Outlying Islands" }, { "code": 521, "name": "Uruguay" }, { "code": 643, "name": "Uzbekistan" }, { "code": 545, "name": "Vanuatu" }, { "code": 644, "name": "Vatican City State (Holy See)" }, { "code": 522, "name": "Venezuela" }, { "code": 583, "name": "Viet Nam" }, { "code": 505, "name": "Virgin Islands (British)" }, { "code": 506, "name": "Virgin Islands (U.S.)" }, { "code": 546, "name": "Wallis And Futuna Islands" }, { "code": 660, "name": "Western Sahara" }, { "code": 599, "name": "Yemen" }, { "code": 475, "name": "Zaire" }, { "code": 474, "name": "Zambia" }, { "code": 476, "name": "Zimbabwe" } ], "shippingAreaList": [ { "code": 811, "name": "ALABAMA" }, { "code": 812, "name": "ARIZONA" }, { "code": 813, "name": "ARKANSAS" }, { "code": 814, "name": "CALIFORNIA" }, { "code": 815, "name": "COLORADO" }, { "code": 816, "name": "CONNECTICUT" }, { "code": 817, "name": "DELAWARE" }, { "code": 818, "name": "DISTRICT OF COLUMBIA" }, { "code": 819, "name": "FLORIDA" }, { "code": 820, "name": "GEORGIA" }, { "code": 821, "name": "HAWAII" }, { "code": 822, "name": "IDAHO" }, { "code": 823, "name": "ILLINOIS" }, { "code": 824, "name": "INDIANA" }, { "code": 825, "name": "IOWA" }, { "code": 826, "name": "KANSAS" }, { "code": 827, "name": "KENTUCKY" }, { "code": 828, "name": "LOUISIANA" }, { "code": 829, "name": "MAINE" }, { "code": 830, "name": "MARYLAND" }, { "code": 831, "name": "MASSACHUSETTS" }, { "code": 832, "name": "MICHIGAN" }, { "code": 833, "name": "MINNESOTA" }, { "code": 834, "name": "MISSISSIPPI" }, { "code": 835, "name": "MISSOURI" }, { "code": 836, "name": "MONTANA" }, { "code": 837, "name": "NEBRASKA" }, { "code": 838, "name": "NEVADA" }, { "code": 839, "name": "NEW HAMPSHIRE" }, { "code": 840, "name": "NEW JERSEY" }, { "code": 841, "name": "NEW MEXICO" }, { "code": 842, "name": "NEW YORK" }, { "code": 843, "name": "NORTH CAROLINA" }, { "code": 844, "name": "NORTH DAKOTA" }, { "code": 845, "name": "OHIO" }, { "code": 846, "name": "OKLAHOMA" }, { "code": 847, "name": "OREGON" }, { "code": 848, "name": "PENNSYLVANIA" }, { "code": 849, "name": "PUERTO RICO" }, { "code": 850, "name": "RHODE ISLAND" }, { "code": 851, "name": "SOUTH CAROLINA" }, { "code": 852, "name": "SOUTH DAKOTA" }, { "code": 853, "name": "TENNESSEE" }, { "code": 854, "name": "TEXAS" }, { "code": 855, "name": "UTAH" }, { "code": 856, "name": "VERMONT" }, { "code": 857, "name": "VIRGINIA" }, { "code": 858, "name": "VIRGIN ISLANDS" }, { "code": 859, "name": "WASHINGTON" }, { "code": 860, "name": "WEST VIRGINIA" }, { "code": 861, "name": "WISCONSIN" }, { "code": 862, "name": "WYOMING" } ], "shippingInfo": { "shippingCountryId": 481, "shippingAreaId": null, "shippingDataList": [ { "id": 421274, "deliveryCompanyId": 3, "deliveryCompanyCode": "FEDEX", "deliveryCompanyName": "FEDEX", "forAllCountry": 1, "fixFee": null, "customPortage": 111, "customAmount": 1, "customOverPortage": 20, "customOverAmount": 1, "shippingType": 1, "durationStart": 3, "durationEnd": 7, "monetaryValue": null }, { "id": 421275, "deliveryCompanyId": 4, "deliveryCompanyCode": "EMS", "deliveryCompanyName": "EMS", "forAllCountry": 1, "fixFee": null, "customPortage": null, "customAmount": null, "customOverPortage": null, "customOverAmount": null, "shippingType": 0, "durationStart": 3, "durationEnd": 7, "monetaryValue": null } ] } } } ``` ==舊版紀錄如下 ```=json { "code" : 0, "errorMsg" : "", "data" : { "shippingCountryList" : [ { "code" : 481, "name" : "United States" }, { "code" : 582, "name" : "Taiwan" } ], "shippingAreaList" : [ { "code" : 811, "name" : "ALABAMA" }, { "code" : 812, "name" : "ARIZONA" } ], "shippingInfo" : { "shippingCountryId" : 481, "shippingAreaId" : "", "shippingDataList" : [ { "id" : 420938, "deliveryCompanyId" : 2, "deliveryCompanyCode" : "UPS", "deliveryCompanyName" : "UPS", "forAllCountry" : 1, "fixFee" : 5, "customPortage" : "", "customAmount" : "", "customOverPortage" : "", "customOverAmount" : "", "shippingType" : 2, "durationStart" : "", "durationEnd" : "" } ] } } } ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully