Points To Note
EC-Ship / My Speedpost API offers 2 sets of API. Most of the operations, such as, creating posting items, generating address packs, calculating postage charges, tracing items, etc. are supported by both APIs. Here are the comparisons:
Web Service RESTful SOAP
Endpoint
(Trial Environment)
https://service.hongkongpost.hk/ecshipAPI-trial https://service.hongkongpost.hk/API-trial/services
Data Format JSON XML
HTTP Method GET, POST, DELETE POST
Security Control Use Basic HTTP authentication to authenticate user identification which requires credentials as API username and base64 encoded key pairs at HTTP request header Use WS-Security UsernameToken to authenticate user identification which requires credentials as API username and base64 encoded key pairs at SOAP header
Available Delivery Services (EC-Ship - Mail Posting API)
  • e-Express Services
  • Air/Surface Registered Mail
  • Air/Surface Parcel Mail
  • Speedpost Service / Speedpost Multipack Box Offer
  • EC-GET
  • Local CourierPost
  • Local Parcel
  • Local Registered Mail
  • e-Express Services
  • Air/Surface Registered Mail
  • Air/Surface Parcel Mail
  • Speedpost Service / Speedpost Multipack Box Offer
  • EC-GET
  • Local CourierPost
  • Local Parcel
  • Local Registered Mail
Available Delivery Services (EC-Ship - Bulk Mailing API) N/A
  • Bulk Air Mail
  • Identical mails not less than 100 in number
  • International Periodicals
  • Lightweight Air Mail Items
  • Lightweight Surface Mail Items
  • Local Bulk Mail
  • Local Periodicals
Available Delivery Services (My Speedpost - Mail Posting API) N/A
  • Speedpost Service / Speedpost Multipack Box Offer
  • MultiPack Service
  • Next Flight Out Service
  • EC Post Service
  • Economy Express Service
  • Local CourierPost
Available Delivery Services (EC-Ship / My Speedpost - Mail Tracking API) N/A

    EC-Ship Services

  • e-Express Services
  • Air/Surface Registered Mail
  • Air/Surface Parcel Mail
  • Speedpost Service / Speedpost Multipack Box Offer
  • EC-GET
  • Local CourierPost
  • Local Parcel
  • Local Registered Mail

    My Speedpost Services

  • Speedpost Service / Speedpost Multipack Box Offer
  • MultiPack Service
  • Next Flight Out Service
  • EC Post Service
  • Economy Express Service
  • Local CourierPost
Remarks N/A
  1. API web service definition files (".wsdl") for generating stub code

Testing EC-Ship Web Services with SOAP UI

Open source product Soap UI (https://www.soapui.org/) provides advanced support for testing API.