Already have an account? Sign in below
Login Now
Track & Trace

HOME     ABOUT     NEWS     QUOTE & BOOK     EBAY     LOGIN     SIGNUP     FAQS     SUPPORT     CONTACT


The Shipping API: GetCountries
This function returns a list of all the countries we offer delivery services to. You need to use the appropriate country code when using the GetQuote function.

Input Fields

Field Name Required? Description Example
ShipAction YES This tells our system which function you require GetCountries
Username YES You must specify your username joebloggs
APIKey YES This is available from your Shipping Manager account page HJ1E6DOTRDXAOL4LWBB

Output Fields
 
Field Name Description Example
ShipAction Confirmation of the function used GetCountries
Status Either Success or Error Success
RequestDate The date your request was received (yyyy-mm-dd hh:mm:ss) 2008-01-10 12:15:31
Username The username used to make the request joebloggs
Countries An array containing all countries.
The key is the country code and the value is the country name
See example ..

Example Input

Array
(
    [ShipAction] => GetCountries
    [Username] => joebloggs
    [APIKey] => HJ1E6DOTRDXAOL4LWBB
)

Example Output
 
Array
(
    [ShipAction] => GetCountries
    [Status] => Success
    [RequestDate] => 2008-01-10 12:15:31
    [Username] => joebloggs
    [Countries] => Array
        (
            [AF] => Afghanistan
            [AL] => Albania
            [DZ] => Algeria
            [AS] => American Samoa
            [AD] => Andorra
            [AO] => Angola
            [AG] => Anguilla
            [AR] => Argentina
            [AM] => Armenia
            [AW] => Aruba
            [AU] => Australia
            [AT] => Austria
            [AZ] => Azerbaijan
            [BS] => Bahamas
            [BH] => Bahrain
            [BD] => Bangladesh
            [BB] => Barbados
            [BY] => Belarus
            [BE] => Belgium
            [BZ] => Belize
            [BJ] => Benin
            [BM] => Bermuda
            [BT] => Bhutan
            [BO] => Bolivia
            [BA] => Bosnia Herzegovina
            [BW] => Botswana
            [BR] => Brazil
            [BN] => Brunei
            [BG] => Bulgaria
            [BF] => Burkino Faso
            [BI] => Burundi
            [KH] => Cambodia
            [CM] => Cameroon
            [CA] => Canada
            [CV] => Cape Verde Islands
            [KY] => Cayman Islands
            [CF] => Central African Rep
            [TD] => Chad
            [CL] => Chile
            [CN] => China
            [CO] => Colombia
            [KM] => Comoros Islands
            [CD] => Congo
            [CG] => Congo, Dem. Rep.
            [CR] => Costa Rica
            [HR] => Croatia
            [CU] => Cuba
            [CY] => Cyprus
            [CZ] => Czech Republic
            [DK] => Denmark
            [DJ] => Djlbouti
            [DM] => Dominica
            [DO] => Dominican Rep.
            [TL] => East Timor
            [EC] => Ecuador
            [EG] => Egypt
            [SV] => El Salvador
            [GQ] => Equatorial Guinea
            [ER] => Eritrea
            [EE] => Estonia
            [ET] => Ethopia
            [FK] => Falkland Islands
            [FO] => Faroe Islands
            [FJ] => Fiji
            [FI] => Finland
            [FR] => France
            [GA] => Gabon
            [GM] => Gambia
            [GE] => Georgia
            [DE] => Germany
            [GH] => Ghana
            [GI] => Gibraltar
            [GR] => Greece
            [GL] => Greenland
            [GD] => Grenada
            [GU] => Guam
            [GT] => Guatemala
            [GN] => Guinea Rep
            [GW] => Guinea-Bissau
            [GY] => Guyana
            [HT] => Haiti
            [HN] => Honduras Rep.
            [HK] => Hong Kong
            [HU] => Hungary
            [IS] => Iceland
            [IN] => India
            [ID] => Indonesia
            [IR] => Iran
            [IQ] => Iraq
            [IE] => Ireland (South)
            [IL] => Israel
            [IT] => Italy
            [CI] => Ivory Coast
            [JM] => Jamaica
            [JP] => Japan
            [JO] => Jordan
            [KZ] => Kazakhstan
            [KE] => Kenya
            [KI] => Kiribati
            [KP] => Korea, D.P.R of (North)
            [KR] => Korea, Rep of (South)
            [KW] => Kuwait
            [KG] => Kyrghyzstan
            [LA] => Laos
            [LV] => Latvia
            [LB] => Lebanon
            [LS] => Lesotho
            [LR] => Liberia
            [LY] => Libya
            [LI] => Liechtenstein
            [LT] => Lithuania
            [LU] => Luxembourg
            [MO] => Macau
            [MK] => Macedonia
            [MG] => Madagascar
            [MW] => Malawi
            [MY] => Malaysia
            [MV] => Maldives
            [ML] => Mali
            [MT] => Malta
            [MH] => Marshall Islands
            [MR] => Martinique
            [MU] => Mauritius
            [MX] => Mexico
            [MD] => Moldova
            [MC] => Monaco
            [MN] => Mongolia
            [ME] => Montenegro
            [MS] => Montserrat
            [MA] => Morocco
            [MZ] => Mozambique
            [MM] => Myanmar
            [NA] => Namibia
            [NR] => Nauru, Rep of
            [NP] => Nepal
            [NL] => Netherlands
            [NZ] => New Zealand
            [NI] => Nicaragua
            [NE] => Niger
            [NG] => Nigeria
            [NO] => Norway
            [OM] => Oman
            [PK] => Pakistan
            [PA] => Panama
            [PG] => Papua New Guinea
            [PY] => Paraguay
            [PE] => Peru
            [PH] => Philippines
            [PL] => Poland
            [PT] => Portugal
            [PR] => Puerto Rico
            [QA] => Qatar
            [RO] => Romania
            [RU] => Russian Federation
            [RW] => Rwanda
            [WS] => Samoa
            [SM] => San Marino
            [ST] => Sao Tome & Prinipe
            [SA] => Saudi Arabia
            [SN] => Senegal
            [RS] => Serbia
            [SC] => Seychelles
            [SL] => Sierra Leone
            [SG] => Singapore
            [SK] => Slovakia
            [SI] => Slovenia
            [SB] => Solomon Islands
            [SO] => Somalia
            [ZA] => South Africa
            [ES] => Spain (Mainland Only)
            [LK] => Sri Lanka
            [KN] => St Kitts
            [LC] => St Lucia
            [VC] => St Vincent
            [SD] => Sudan
            [SR] => Suriname
            [SZ] => Swaziland
            [SE] => Sweden
            [CH] => Switzerland
            [SY] => Syria
            [TW] => Taiwan
            [TJ] => Tajikistan
            [TZ] => Tanzania
            [TH] => Thailand
            [TG] => Togo
            [TO] => Tonga
            [TT] => Trinidad & Tobago
            [TN] => Tunisia
            [TR] => Turkey
            [TM] => Turkmenistan
            [TV] => Tuvalu
            [UG] => Uganda
            [UA] => Ukraine
            [AE] => United Arab Emirates
            [UK] => United Kingdom
            [UY] => Uruguay
            [US] => USA
            [UZ] => Uzbekistan
            [VU] => Vanuatu
            [VE] => Venezuela
            [VN] => Vietnam
            [VG] => Virgin Islands, British
            [VI] => Virgin Islands, US
            [YE] => Yemen
            [ZM] => Zambia
            [ZW] => Zimbabwe
        )

)

<< Go back to API home page

 
 

Privacy Policy | Terms & Conditions | Site Map