Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table of Contents
I. Xend Web Service ........................................................................................................................................................... 1
A. Services ................................................................................................................................................................... 1
B. Complex Types ........................................................................................................................................................ 1
1. AuthHeader (see Authentication) .................................................................................................................. 1
2. Shipment ........................................................................................................................................................ 1
3. Tracking .......................................................................................................................................................... 2
4. Address ........................................................................................................................................................... 2
C. Simple Types ........................................................................................................................................................... 3
1. ServiceType..................................................................................................................................................... 3
2. ShipmentType................................................................................................................................................. 3
3. PackagingType ................................................................................................................................................ 3
4. PurposeOfExportType .................................................................................................................................... 3
D. Authentication ........................................................................................................................................................ 3
1. AuthHeader .................................................................................................................................................... 3
2. Using myXend User Token.............................................................................................................................. 4
3. Using myXend Developer ID ........................................................................................................................... 4
II. ShipmentService ............................................................................................................................................................. 4
A. Web Reference ....................................................................................................................................................... 4
B. Methods.................................................................................................................................................................. 4
C. Create Method........................................................................................................................................................ 4
1. Parameters ..................................................................................................................................................... 4
2. Return Value ................................................................................................................................................... 5
3. Remarks .......................................................................................................................................................... 5
D. CreateDev Method ................................................................................................................................................. 5
1. Parameters ..................................................................................................................................................... 5
2. Return Value ................................................................................................................................................... 5
3. Remarks .......................................................................................................................................................... 5
E. Get Method ............................................................................................................................................................ 5
1. Parameters ..................................................................................................................................................... 5
Xend Web Service
November 7, 2014
Revision History
Version
Date Revision Changed By
Updated
September 10, 2012 Updated list of provinces in Appendix A.A. ProvincialExpress 1.6 Rom Gapuz Jr.
and added provinces: Batanes, Camarines Norte, Mountain
Province, Quirino, Eastern Samar, Guimaras, Siquijor,
Camiguin, Davao Oriental, North Cotabato, Maguindanao,
Sultan Kudarat, Sulu, Tawi-tawi
January 29, 2012 Added CalculateByPackaging in RateService 1.7 Rom Gapuz Jr.
July 10, 2014 Updated list of provinces in Appendix A.A. ProvincialExpress 1.7.1 Rom Gapuz Jr.
and added provinces: Zamboanga Sibugay
September 5, 2014 Updated list of provinces based on NSCB list in Appendix 1.7.2 Rom Gapuz Jr.
A.A. Provincial Express and added provinces: Davao
Occidental, Dinagat Islands, Kalinga, Davao del Norte,
Occidental Mindoro, Oriental Mindoro, Cotabato and
Western Samar
Added AccountService
November 7, 2014 Updated Web Reference URLs 1.8 Rom Gapuz Jr.
Changed “Apply in Xend Developer Program” instruction
Xend Web Service
November 7, 2014
A. Services
Service Description
ShipmentService Provides methods for managing shipments
TrackingService Provides methods for retrieving tracking information of shipments
RateService Provides methods for calculating shipping charges
BookingService Provides methods for scheduling for pickup
AccountService Provides methods for account information
B. Complex Types
These complex types are used to store information that defines a particular entity in the system.
Object Description
Shipment Defines the shipment entity
Tracking Defines the tracking entity
Address Defines an address of the account
2. Shipment
Element Type Direction Required
WaybillNo String Output No
ServiceTypeValue ServiceType Input/Output Yes
ShipmentTypeValue ShipmentType Input/Output Yes
PurposeOfExportValue PurposeOfExportType Input/Output Yes
Description String Input/Output No
ClientReference String Input/Output No
SpecialInstructions String Input/Output No
CountryManufactured String Input/Output Subjective
Weight Decimal Input/Output Yes
DimensionL Decimal Input/Output Yes
DimensionW Decimal Input/Output Yes
3. Tracking
Element Type Direction Required
Activity String Output No
DateLogged String Output No
TimeLogged String Output No
Location String Output No
Comment String Output No
4. Address
Element Type Direction Required
AddressRefNo Int Output No
Address1 String Output No
Address2 String Output No
City String Output No
Province String Output No
PostalCode String Output No
Country String Output No
C. Simple Types
The simple types define list of values that is used with complex types.
Object Description
ServiceType Defines the service type of a shipment
ShipmentType Defines the shipment type of a shipment
PackagingType Defines the packaging type of a shipment
PurposeOfExportType Defines the purpose of export of a shipment
1. ServiceType
Element Type Values
ServiceType String MetroManilaExpress, ProvincialExpress,
InternationalPostal, InternationalEMS,
InternationalExpress, RizalMetroManilaExpress
2. ShipmentType
Element Type Values
ShipmentType String Document, Parcel
3. PackagingType
Element Type Values
PackagingType String OwnPackaging, LargePouch, XLPouch
4. PurposeOfExportType
Element Type Values
PurposeOfExportType String Gift, Personal, Documents, CommercialSample,
Other, None
D. Authentication
Some of the Services requires authentication of the identity of the caller of the request. This is also to get
the account holder information that the requests will be attributed.
1. AuthHeader
AuthHeader is a SOAP header element that provides authentication to the web service call. The
UserToken value in the AuthHeader can be either myXend User Token or Developer ID, depending on
the type of web service calls. See Appendix B – Apply in Xend Developer Program to get a myXend User
Token and Developer ID.
myXend User Token is used for to retrieve private information regarding a particular myXend account.
While the myXend Developer ID is used to retrieve other information that is not targeting a particular
myXend Account.
II. ShipmentService
The ShipmentService provides methods for managing shipments.
A. Web Reference
https://api.xend.com.ph/api/ShipmentService.asmx
B. Methods
Method Description
Create Create a shipment and returns the waybill number
Get Retrieve the shipment by waybill number
C. Create Method
The Create method of the ShipmentService creates a new shipment and returns the waybill number.
1. Parameters
Parameter Description
Shipment Shipment object (see Shipment)
2. Return Value
A string containing the Waybill Number of the newly created shipment.
3. Remarks
The new shipment will be created in the account that executes a request implementing this method.
Rate will be automatically calculated when the shipment is created, although error from calculation of
rate will be ignored and shipping and insurance fee will be zero (use the RateService validate the rate
calculation).
D. CreateDev Method
The CreateDev method of the ShipmentService creates a new shipment and returns the waybill number.
1. Parameters
Parameter Description
Shipment Shipment object (see Shipment)
fromField The text to be placed in the “From” field of the waybill
2. Return Value
A string containing the Waybill Number of the newly created shipment.
3. Remarks
The new shipment will be created in the account that executes a request implementing this method.
Rate will be automatically calculated when the shipment is created, although error from calculation of
rate will be ignored and shipping and insurance fee will be zero (use the RateService validate the rate
calculation).
E. Get Method
The Get method of the ShipmentService retrieves the information of a shipment given a waybill number.
1. Parameters
Parameter Description
WaybillNo The waybill number of the shipment
2. Return Value
A Shipment object containing the information of the shipment.
3. Remarks
A shipment will only be returned if the account that executes the request is the owner.
III. TrackingService
The TrackingService provides methods for retrieving tracking information given the waybill number of the
shipment.
A. Web Reference
https://api.xend.com.ph/api/TrackingService.asmx
B. Methods
Method Description
GetList Retrieve the shipment tracking history by waybill number
C. GetList Method
The GetList method of the TrackingService retrieves the tracking history of a shipment given the waybill
number. The tracking history is a list of Tracking objects.
1. Parameters
Parameter Description
WaybillNo The waybill number of the shipment
2. Return Value
A list of Tracking objects that contains the tracking history of a shipment.
3. Remarks
A list of Tracking objects will only be returned if the account that executes the request is the owner.
IV. RateService
The RateService provides methods for retrieving rate calculation based of certain parameters.
A. Web Reference
https://api.xend.com.ph/api/RateService.asmx
B. Methods
Method Description
Calculate Retrieve the calculated rate based on the shipment information.
CalculateByPackaging Retrieve the calculated rate based on the shipment information. Similar to
Calculate method but with additional parameter: PackagingType.
C. Calculate Method
The Calculate method of the RateService retrieves the calculated rate based on the shipment information.
1. Parameters
Parameter Type Description
ServiceTypeValue ServiceType The service to use with the shipment (see ServiceType)
ShipmentTypeValue ShipmentType The type of shipment (see ShipmentType)
DestinationValue String The destination (either a province or region/country)
depending on the ServiceType (see remarks below and
Appendix A)
Weight Decimal The actual weight of the shipment in kilograms (kg)
DimensionL Decimal The length dimension of the shipment (cm)
DimensionW Decimal The width dimension of the shipment (cm)
DimensionH Decimal The height dimension of the shipment (cm)
DeclaredValue Decimal The declared value of the shipment in peso for domestic
shipments and US dollar for international shipments
AddInsurance Boolean The flag that defines if the shipment is insured
2. Return Value
A decimal value of the calculated rate.
3. Remarks
Shipment insurance will only be computed if AddInsured is marked as true and DeclaredValue has a
value greater than zero.
D. CalculateByPackaging Method
The CalculateByPackaging method of the RateService retrieves the calculated rate based on the shipment
information. Similar to Calculate method but with additional parameter: PackagingType.
1. Parameters
Parameter Type Description
ServiceTypeValue ServiceType The service to use with the shipment (see ServiceType)
ShipmentTypeValue ShipmentType The type of shipment (see ShipmentType)
PackagingTypeValue PackagingType The type of packaging (see PackagingType)
DestinationValue String The destination (either a province or region/country)
depending on the ServiceType (see remarks below and
Appendix A)
Weight Decimal The actual weight of the shipment in kilograms (kg)
DimensionL Decimal The length dimension of the shipment (cm)
DimensionW Decimal The width dimension of the shipment (cm)
DimensionH Decimal The height dimension of the shipment (cm)
DeclaredValue Decimal The declared value of the shipment in peso for domestic
shipments and US dollar for international shipments
AddInsurance Boolean The flag that defines if the shipment is insured
2. Return Value
A decimal value of the calculated rate.
3. Remarks
See remarks of Calculate Method.
If PackagingType is “OwnPackaging”, the calculation is the same as the Calculate Method. Computation
for pouch-based packaging is only allowed for domestic (Metro Manila and Province) destinations.
V. BookingService
The BookingService provides methods to managing bookings.
A. Web Reference
https://api.xend.com.ph/api/BookingService.asmx
B. Methods
Method Description
Schedule Create a booking for pickup given the address and booking date
ScheduleDev Create a booking for pickup given the address and booking date (Developer Used)
GetAddress Retrieves the list of addresses of the account
C. Schedule Method
The Schedule method of the BookingService creates a booking for pickup.
1. Parameters
Parameter Type Description
BookingDate DateTime The date to schedule a pickup
AddressRefNo Integer The reference number of the address (see Address type)
Remarks String The user comments to provide additional information
2. Return Value
A string value of the reference number of the booking.
3. Remarks
The AddressRefNo is the identifier of the address which can be retrieve by calling the GetAddress
method of the BookingService.
D. ScheduleDev Method
The ScheduleDev method of the BookingService creates a booking for pickup. The difference of this method
with Schedule method is that the shipper name and address should be passed in the parameters.
1. Parameters
Parameter Type Description
BookingDate DateTime The date to schedule a pickup
Remarks String The user comments to provide additional information
FirstName String The shipper’s first name
LastName String The shipper’s last name
Street1 String The shipper’s street address
Street2 String The shipper’s additional street address
City String The shipper’s city
Province String The shipper’s province
PostalCode String The shipper’s postal code
Landmark String The shipper’s landmark
2. Return Value
A string value of the reference number of the booking.
3. Remarks
This method requires the Developer ID assigned to the UserToken in the AuthHeader.
E. GetAddress Method
The GetAddress method of the BookingService retrieves the list of addresses in the account.
1. Parameters
None
2. Return Value
A list of Address objects that contains the address information of the account.
3. Remarks
Addresses can be defined by accessing the account in myXend.
VI. AccountService
The AccountService provides methods for account information.
A. Web Reference
https://api.xend.com.ph/api/AccountService.asmx
B. Methods
Method Description
GetAccountNo Get account number
C. GetAccountNo Method
The GetAccountNo method of the AccountService retrieves the account number.
1. Parameters
None
2. Return Value
A string value of the account number of the account.
3. Remarks
None
VII. Sandbox
The sandbox provides a test web service provider with a defined output/result for each corresponding input
parameters. SOAP Fault will result from incorrect input or database error.
A. User Token
When using the sandbox web service calls, you must use one of the following users token.
Input Result
081C1A4C-39DE-4A5C-B9AB-610E8EC5E078 Allows web service calls to execute
E183A419-AECD-4824-A38B-06F04A965BA6 SOAP Fault ("Caller does not have proper privilege to use
this service.")
DF350E52-9BB2-4D22-A991-AF9E8CFEF0BF SOAP Fault ("Caller account data contains error: Access
does not have proper role.")
Any Globally Unique Identifier (GUID) SOAP Fault (“Caller is unauthorized to use this service.”)
B. ShipmentService
1. Web Reference
https://api.xend.com.ph/apitest/ShipmentService.asmx
Description = "Bag"
ClientReference = ""
SpecialInstructions = ""
CountryManufactured = ""
Weight = 0.5
DimensionL = 5m
DimensionW = 4m
DimensionH = 3m;
DeclaredValue = 200;
Status = "New"
DateCreated = Current date
DatePrinted = Current date
RecipientName = "Juan Dela Cruz"
RecipientCompanyName = "Xend Business Solutions Inc."
RecipientAddress1 = "17F Summit One Tower"
RecipientAddress2 = "530 Shaw Blvd"
RecipientCity = "Mandaluyong"
RecipientProvince = "Metro Manila"
RecipientPostalCode = "1552"
RecipientCountry = "Philippines"
RecipientPhoneNo = "025019345"
RecipientEmailAddress = "support@xendexpress.com"
ShippingFee = 50
InsuranceFee = 1
IsInsured = true
C. BookingService
1. Web Reference
https://api.xend.com.ph/apitest/BookingService.asmx
BookingDate = “1/5/2010” SOAP Fault (“Booking should be made a day before the booking
AddressRefNo = 1 date. And has a cut-off time of 11:59am")
Remarks = Any string value
BookingDate = “1/6/2010” SOAP Fault (“Booking should be made 1 day/s before the booking
AddressRefNo = 1 date.”)
Remarks = Any string value
BookingDate = “1/7/2010” SOAP Fault (“The cut-off time for same day booking is 11:59am”)
AddressRefNo = 1
Remarks = Any string value
BookingDate = “1/8/2010” SOAP Fault (“Booking on Sunday is not allowed.”)
AddressRefNo = 1
Remarks = Any string value
BookingDate = “1/9/2010” SOAP Fault ("Booking date specified is a holiday.")
AddressRefNo = 1
Remarks = Any string value
BookingDate = “1/10/2010” SOAP Fault ("Booking date specified has already passed.")
AddressRefNo = 1
Remarks = Any string value
BookingDate = “1/11/2010” SOAP Fault ("Primary contact is not set for this account.")
AddressRefNo = 1
Remarks = Any string value
BookingDate = Any date value SOAP Fault ("Address with reference number (2) could not be
AddressRefNo = 2 found.")
Remarks = Any string value
Any other values other than SOAP Fault ("There was an error processing the database query.")
above
A. ProvincialExpress
Zone Province Alternate Name
Luzon Abra
Luzon Albay
Luzon Apayao
Luzon Aurora
Luzon Bataan
Luzon Batanes
Luzon Batangas
Luzon Benguet
Luzon Bulacan
Luzon Cagayan
Luzon Camarines Norte
Luzon Camarines Sur
Luzon Catanduanes
Luzon Cavite
Luzon Ifugao
Luzon Ilocos Norte
Luzon Ilocos Sur
Luzon Isabela
Luzon Kalinga
Luzon La Union
Luzon Laguna
Luzon Marinduque
Luzon Masbate
Luzon Mindoro Occidental Occidental Mindoro
Luzon Mindoro Oriental Oriental Mindoro
Luzon Mountain Province
Luzon Nueva Ecija
Luzon Nueva Vizcaya
Luzon Palawan
Luzon Pampanga
Luzon Pangasinan
Luzon Quezon
Luzon Quirino
Luzon Rizal
Luzon Romblon
Luzon Sorsogon
Luzon Tarlac
Luzon Zambales
Visayas Aklan
Visayas Antique
Visayas Biliran
Visayas Bohol
Visayas Capiz
Visayas Cebu
Visayas Eastern Samar
Visayas Guimaras
Visayas Iloilo
Visayas Leyte
Visayas Negros Occidental
Visayas Negros Oriental
Visayas Northern Samar
Visayas Samar Western Samar
Visayas Siquijor
Visayas Southern Leyte
Mindanao Agusan del Norte
Mindanao Agusan del Sur
Mindanao Basilan
Mindanao Bukidnon
Mindanao Camiguin
Mindanao Compostela Valley
Mindanao Davao Davao del Norte
Mindanao Davao Occidental
Mindanao Davao del Sur
Mindanao Davao Oriental
Mindanao Dinagat Islands
Mindanao Lanao del Norte
Mindanao Lanao del Sur
Mindanao Maguindanao
Mindanao Misamis Occidental
Mindanao Misamis Oriental
Mindanao North Cotabato Cotabato
Mindanao Sarangani
Mindanao South Cotabato
Mindanao Sultan Kudarat
Mindanao Sulu
B. InternationalPostal
Zone Destination
Zone 1 Bangladesh
Zone 1 Brunei
Zone 1 Cambodia
Zone 1 China, People's Republic of
Zone 1 Hong Kong
Zone 1 India
Zone 1 Indonesia
Zone 1 Korea, South
Zone 1 Laos
Zone 1 Malaysia
Zone 1 Nepal
Zone 1 Singapore
Zone 1 Sri Lanka
Zone 1 Taiwan
Zone 1 Thailand
Zone 1 Vietnam
Zone 2 American Samoa
Zone 2 Australia
Zone 2 Bahrain
Zone 2 Cook Islands
Zone 2 Fiji
Zone 2 French Polynesia
Zone 2 Guam
Zone 2 Iraq
Zone 2 Israel
Zone 2 Jordan
Zone 2 Kiribati
Zone 2 Kuwait
Zone 2 Lebanon
Zone 2 Marshall Islands
Zone 2 Micronesia, Federated States of
Zone 2 Mongolia
Zone 2 New Caledonia
Zone 2 New Zealand
Zone 2 Oman
Zone 2 Pakistan
Zone 2 Papua New Guinea
Zone 2 Qatar
Zone 2 Saudi Arabia
Zone 2 Solomon Islands
Zone 2 Syrian Arab Republic
Zone 2 United Arab Emirates
Zone 2 Yemen, Republic of
Zone 3 Afghanistan
Zone 3 Albania
Zone 3 Andorra
Zone 3 Austria
Zone 3 Belgium
Zone 3 Bosnia and Herzegovina
Zone 3 Bulgaria
Zone 3 Canada
Zone 3 Croatia
Zone 3 Cyprus
Zone 3 Czech Republic
Zone 3 Denmark
Zone 3 Finland
Zone 3 France
Zone 3 Georgia
Zone 3 Germany
Zone 3 Gibraltar
Zone 3 Greece
Zone 3 Ireland, Republic of
Zone 3 Italy
Zone 3 Liechtenstein
Zone 3 Luxembourg
Zone 3 Malta
Zone 3 Monaco (France)
Zone 3 Netherlands (Holland)
Zone 3 Norway
Zone 3 Poland
Zone 3 Portugal
Zone 3 Russia
Zone 3 Slovakia
Zone 3 Slovenia
Zone 3 Spain
Zone 3 Switzerland
Zone 3 Turkey
Zone 3 Ukraine
Zone 3 United Kingdom
Zone 3 United States
Zone 4 Algeria
Zone 4 Angola
Zone 4 Anguilla
Zone 4 Antigua and Barbuda
Zone 4 Argentina
Zone 4 Aruba
Zone 4 Bahamas
Zone 4 Belarus/Byelorussia
Zone 4 Belize
Zone 4 Benin
Zone 4 Bermuda
Zone 4 Bolivia
Zone 4 Botswana
Zone 4 Brazil
Zone 4 Burundi
Zone 4 Canary Islands (Spain)
Zone 4 Cayman Islands
Zone 4 Central African Republic
Zone 4 Chad
Zone 4 Chile
Zone 4 Colombia
Zone 4 Costa Rica
Zone 4 Cote d'lvoire (Ivory Coast)
Zone 4 Djibouti
Zone 4 Dominica
Zone 4 Dominican Republic
Zone 4 Ecuador
Zone 4 Egypt
Zone 4 El Salvador
Zone 4 Equatorial Guinea
Zone 4 Eritrea
Zone 4 Estonia
Zone 4 Ethiopia
Zone 4 French Guiana
Zone 4 Gambia
Zone 4 Ghana
Zone 4 Grenada
Zone 4 Guadeloupe
Zone 4 Guatemala
Zone 4 Guinea
Zone 4 Guinea-Bissau
Zone 4 Guyana
Zone 4 Haiti
Zone 4 Honduras
Zone 4 Hungary
Zone 4 Iceland
Zone 4 Jamaica
Zone 4 Japan
Zone 4 Kazakhstan
Zone 4 Kenya
Zone 4 Latvia
Zone 4 Lesotho
Zone 4 Martinique
Zone 4 Mauritania
Zone 4 Mauritius
Zone 4 Mexico
Zone 4 Montserrat
Zone 4 Morocco
Zone 4 Mozambique
Zone 4 Namibia
Zone 4 Netherlands Antilles
Zone 4 Nicaragua
Zone 4 Niger
Zone 4 Nigeria
Zone 4 Panama
Zone 4 Paraguay
Zone 4 Peru
Zone 4 Puerto Rico
Zone 4 Reunion Island
Zone 4 Romania
Zone 4 Rwanda
Zone 4 Seychelles
Zone 4 South Africa
Zone 4 St. Kitts and Nevis
Zone 4 St. Lucia
Zone 4 St. Vincent & the Grenadines
Zone 4 Suriname
Zone 4 Sweden
Zone 4 Togo
Zone 4 Tonga
Zone 4 Trinidad & Tobago
Zone 4 Tunisia
Zone 4 Turkmenistan
Zone 4 Turks & Caicos Islands
Zone 4 Uganda
Zone 4 Uruguay
Zone 4 Vanuatu
Zone 4 Venezuela
Zone 4 Wallis & Futuna Islands
Zone 4 Zambia
Zone 4 Zimbabwe
C. InternationalEMS
Zone Destination
Australia Australia
Austria Austria
Bahrain Bahrain
Bangladesh Bangladesh
Belarus/Byelorussia Belarus/Byelorussia
Belgium Belgium
Bhutan Bhutan
Brazil Brazil
Brunei Brunei
Bulgaria Bulgaria
Cambodia Cambodia
Canada Canada
China, People's Republic of China, People's Republic of
Cyprus Cyprus
Denmark Denmark
Egypt Egypt
Fiji Fiji
Finland Finland
France France
Germany Germany
Greece Greece
Hong Kong Hong Kong
Hungary Hungary
Iceland Iceland
India India
Indonesia Indonesia
Iran Iran
Ireland, Republic of Ireland, Republic of
Israel Israel
Italy Italy
Japan Japan
Jordan Jordan
Korea, South Korea, South
Kuwait Kuwait
Laos Laos
Luxembourg Luxembourg
Macau Macau
Malaysia Malaysia
Maldives Maldives
Mongolia Mongolia
Myanmar Myanmar
Nepal Nepal
Netherlands (Holland) Netherlands (Holland)
New Zealand New Zealand
Norway Norway
Oman Oman
Pakistan Pakistan
Papua New Guinea Papua New Guinea
Poland Poland
Portugal Portugal
Qatar Qatar
Romania Romania
Russia Russia
Saudi Arabia Saudi Arabia
Singapore Singapore
Slovenia Slovenia
Solomon Islands Solomon Islands
D. InternationalExpress
Zone Destination
Zone 1 Hong Kong
Zone 1 Macau
Zone 1 Singapore
Zone 1 Taiwan
Zone 2 Brunei
Zone 2 China, People's Republic of
Zone 2 Indonesia
Zone 2 Korea, South
Zone 2 Malaysia
Zone 2 Thailand
Zone 3 Japan
Zone 3 Mongolia
Zone 4 Australia
Zone 4 Bangladesh
Zone 4 Bhutan
Zone 4 Cambodia
Zone 4 India
Zone 4 Laos
Zone 4 Maldives
Zone 4 Nepal
Zone 4 New Zealand
Zone 4 Norfolk Island (Australia)
Zone 4 Pakistan
Zone 4 Sri Lanka
Zone 4 Vietnam
Zone 5 Canada
Zone 5 Mexico
Zone 5 Puerto Rico
Zone 5 United States
Zone 6 Belgium
Zone 6 Buesingen (Germany)
Zone 6 Campione/Lake Lugano (Italy)
Zone 6 Canary Islands (Spain)
Zone 8 Armenia
Zone 8 Aruba
Zone 8 Azerbaijan
Zone 8 Bahamas
Zone 8 Bahrain
Zone 8 Barbados
Zone 8 Belarus/Byelorussia
Zone 8 Belize
Zone 8 Bermuda
Zone 8 Bolivia
Zone 8 Bonaire (Netherlands Antilles)
Zone 8 Bosnia and Herzegovina
Zone 8 Brazil
Zone 8 British Virgin Islands
Zone 8 Bulgaria
Zone 8 Cayman Islands
Zone 8 Chile
Zone 8 Colombia
Zone 8 Cook Islands
Zone 8 Costa Rica
Zone 8 Croatia
Zone 8 Curacao (Netherlands Antilles)
Zone 8 Cyprus
Zone 8 Czech Republic
Zone 8 Dominica
Zone 8 Dominican Republic
Zone 8 East Timor (Timor Leste)
Zone 8 Ecuador
Zone 8 Egypt
Zone 8 El Salvador
Zone 8 Estonia
Zone 8 Fiji
Zone 8 French Guiana
Zone 8 French Polynesia
Zone 8 Gibraltar
Zone 8 Greece
Zone 8 Grenada
Zone 8 Guadeloupe
Zone 8 Guam
Zone 8 Guatemala
Zone 8 Haiti
Zone 8 Honduras
Zone 8 Hungary
Zone 8 Iceland
Zone 8 Iraq
Zone 8 Jamaica
Zone 8 Kazakhstan
Zone 8 Kiribati
Zone 8 Kosrae (Micronesia, Federated States of)
Zone 8 Kuwait
Zone 8 Latvia
Zone 8 Lithuania
Zone 8 Malta
Zone 8 Marshall Islands
Zone 8 Martinique
Zone 8 Micronesia, Federated States of
Zone 8 Montenegro
Zone 8 Montserrat
Zone 8 Mount Athos (Greece)
Zone 8 Netherlands Antilles
Zone 8 New Caledonia
Zone 8 Nicaragua
Zone 8 Northern Mariana Islands
Zone 8 Oman
Zone 8 Palau
Zone 8 Panama
Zone 8 Papua New Guinea
Zone 8 Paraguay
Zone 8 Peru
Zone 8 Poland
Zone 8 Ponape (Micronesia, Federated States of)
Zone 8 Qatar
Zone 8 Reunion Island
Zone 8 Romania
Zone 8 Rota (Northern Mariana Islands)
Zone 8 Russia
Zone 8 Saba (Netherlands Antilles)
Zone 8 Saipan (Northern Mariana Islands)
Zone 8 Samoa
Zone 8 Saudi Arabia
Zone 8 Serbia
Zone 8 Slovakia
Zone 8 Slovenia
Zone 8 Solomon Islands
Zone 8 St. Barthelemy (Guadeloupe)
Zone 8 St. Christopher (St. Kitts)
Zone 8 St. Croix (U.S. Virgin Islands)
Zone 8 St. Eustatius (Netherlands Antilles)
Zone 8 St. John (U.S. Virgin Islands)
Zone 8 St. Kitts and Nevis
Zone 8 St. Lucia
Zone 8 St. Maarten (Netherlands Antilles)
Zone 8 St. Martin (Guadeloupe)
Zone 8 St. Thomas (U.S. Virgin Islands)
Zone 8 St. Vincent & the Grenadines
Zone 8 Suriname
Zone 8 Tahiti (French Polynesia)
Zone 8 Tajikistan
Zone 8 Tinian (Northern Mariana Islands)
Zone 8 Tonga
Zone 8 Tortola (British Virgin Islands)
Zone 8 Trinidad & Tobago
Zone 8 Truk (Micronesia, Federated Islands)
Zone 8 Turkey
Zone 8 Turkmenistan
Zone 8 Turks & Caicos Islands
Zone 8 Tuvalu
Zone 8 U.S. Virgin Islands
Zone 8 Ukraine
Zone 8 Union Islands (St. Vincent & the Grenadines)
Zone 8 United Arab Emirates
Zone 8 Uruguay
Zone 8 Uzbekistan
Zone 8 Vanuatu
Zone 8 Venezuela
Zone 8 Virgin Gorda (British Virgin Islands)
Zone 8 Wallis & Futuna Islands
Zone 8 Yap (Micronesia, Federated Islands)
Zone 9 Afghanistan
Zone 9 Albania
Zone 9 Algeria
Zone 9 Angola
Zone 9 Benin
Zone 9 Botswana
Zone 9 Burkina Faso
Zone 9 Burundi
Zone 9 Cameroon
Zone 9 Cape Verde
Zone 9 Central African Republic
Zone 9 Chad
Zone 9 Comoros
Zone 9 Congo (Brazzaville)
Zone 9 Congo, Democratic Republic of
Zone 9 Cote d'lvoire (Ivory Coast)
Zone 9 Djibouti
Zone 9 Equatorial Guinea
Zone 9 Eritrea
Zone 9 Ethiopia
Zone 9 Gabon
Zone 9 Gambia
Zone 9 Georgia
Zone 9 Ghana
Zone 9 Guinea
Zone 9 Guinea-Bissau
Zone 9 Guyana
Zone 9 Israel
Zone 9 Jordan
Zone 9 Kenya
Zone 9 Kirghizia (Kyrgyzstan)
Zone 9 Lebanon
Zone 9 Lesotho
Zone 9 Liberia
Zone 9 Libyan Arab Jamahiriya
Zone 9 Macedonia (FYROM)
Zone 9 Madagascar
Zone 9 Malawi
Zone 9 Mali
Zone 9 Mauritania
Zone 9 Mauritius
Zone 9 Mayotte
Zone 9 Moldova
Zone 9 Morocco
Zone 9 Mozambique
Zone 9 Namibia
Zone 9 Niger
Zone 9 Nigeria
Zone 9 Rwanda
Zone 9 Senegal
Zone 9 Seychelles
Zone 9 Sierra Leone
Zone 9 South Africa
Zone 9 Swaziland
Zone 9 Syrian Arab Republic
Zone 9 Tanzania, United Republic of
Zone 9 Togo
Zone 9 Tunisia
Zone 9 Uganda
Zone 9 Yemen, Republic of
Zone 9 Zambia
Zone 9 Zimbabwe
1. Account Number
2. Business Name
3. Contact Person
4. Address and Contact Number
5. Website
6. Redirect URL (used when retrieving token)
Once registered as a third-party developer, a “Developer ID” will be issued for use in web service calls and retrieving of
user token. Developer ID is a globally unique identifier (GUID). “User Token” will also be issued for use in account-
related web service calls.
Note: These information only applies for those third-party websites that have integrated their system into myXend.
A. ShipmentService
1. Create Method
require('nusoap.php');
// declare variables
$exceptionFlag = false;
// prepare parameters
$param = array('ServiceTypeValue' => 'MetroManilaExpress',
'ShipmentTypeValue' => 'Parcel',
'Weight' => 0.50,
'DimensionL' => 0.00,
'DimensionW' => 0.00,
'DimensionH' => 0.00,
'DeclaredValue' => 0.00,
'RecipientName' => 'Juan Dela Cruz',
'RecipientCompanyName' => '',
'RecipientAddress1' => '123 Mabuhay St.',
'RecipientAddress2' => 'Brgy. Pag-asa',
'RecipientCity' => 'Manila',
'RecipientProvince' => 'Metro Manila',
'RecipientCountry' => 'Philippines',
'IsInsured' => 0,
'SpecialInstructions' => 'Fragile',
'Description' => 'Toy',
'ClientReference' => '');
if (!$exceptionFlag)
{
echo $result->CreateResult;
}
2. Get Method
require("nusoap.php");
// declare variables
$exceptionFlag = false;
if (!$exceptionFlag)
{
echo $result->GetResult->WaybillNo;
}
B. TrackingService
1. GetList Method
require("nusoap.php");
// declare variables
$exceptionFlag = false;
// prepare parameters
$param = array('WaybillNo' => '732000158');
if (!$exceptionFlag)
{
$objTrackingList = $result->GetListResult->Tracking;
for ($i= 0; $i < count($objTrackingList); $i++)
{
echo $objTrackingList[$i]->Activity . '<br/>';
echo $objTrackingList[$i]->DateLogged . '<br/>';
echo $objTrackingList[$i]->Location . '<br/>';
}
}
C. RateService
1. Calculate Method
require('nusoap.php');
// declare variables
$exceptionFlag = false;
// prepare parameters
$param = array('ServiceTypeValue' => 'MetroManilaExpress',
'ShipmentTypeValue' => 'Parcel',
'DestinationValue' => 'Manila',
'Weight' => 0.50,
'DimensionL' => 0.00,
'DimensionW' => 0.00,
'DimensionH' => 0.00,
'DeclaredValue' => 1000.00,
'AddInsurance' => true);
if (!$exceptionFlag)
{
echo $result->CalculateResult;
}
D. BookingService
1. Schedule Method
require('nusoap.php');
// declare variables
$referenceNo = "";
$exceptionFlag = false;
// prepare parameters
$param = array('BookingDate' => date('Y-m-d\TH\:i\:s\.u', strtotime('1/1/2011')),
'AddressRefNo' => 1,
'Remarks' => 'testing only');
if (!$exceptionFlag)
{
$result->ScheduleResult;
$referenceNo = $result->ScheduleResult;
}
echo $referenceNo;
2. GetAddress Method
require_once('nusoap.php');
// declare variables
$exceptionFlag = false;
if (!$exceptionFlag)
{
$objAddressList = $result->GetAddressResult->Address;
for ($i= 0; $i < count($objAddressList); $i++)
{
echo $objAddressList[$i]->AddressRefNo . '<br/>';
echo $objAddressList[$i]->Street1 . '<br/>';
echo $objAddressList[$i]->Street2 . '<br/>';
echo $objAddressList[$i]->City . '<br/>';
echo $objAddressList[$i]->Province . '<br/>';
echo $objAddressList[$i]->PostalCode . '<br/>';
}
}