The Pos Malaysia API consists of URLs which return responses in XML format. Some API features (marked '(i18n)' below) may respond with localised strings based on the request's 'Accept-Language' header field. Refer to the linked examples for response format.
Countries: To request a list of countries to which Pos Malaysia ships:
http://spider.my/posmalaysia-countries.xml ... (i18n)
Methods: To request a list of Pos Malaysia's shipping method names:
http://spider.my/posmalaysia-methods.xml ... (i18n)
Shipping Quote: To obtain shipping rates for a single parcel to a destination, construct an URL from 'posmalaysia-shipping-quote/', the weight of the parcel in kg, the string '-to-', the 2-letter country code (in upper case) of the destination country and the string '.xml'. For example, 0.55kg to Netherlands (NL):
http://spider.my/pos-malaysia-shipping-quote/0.55-to-NL.xml ... (i18n)
Download rates: To obtain full sets of shipping rates, construct an URL from 'pos-malaysia-shipping-rates/', the url-encoded (non-localised) name of the shipping method or '-ANY-' for all methods, the string '-to-', the 2-letter country code (in upper case) of the destination country or '-ANY-' and the string '.xml'. For example, all methods to Switzerland (CH):
http://spider.my/pos-malaysia-shipping-rates/-ANY--to-CH.xml ... (NOT i18n)