MatkustajatPaketitYritysasiakkaatPalvelupisteet
Kirjaudu
Etusivu
Yritysasiakkaat
Interfaces

Interfaces

All online store applications can be directly linked to Matkahuolto’s data system via the XML interface.

The XML interface is implemented as an simple XML request to which the reply is given in XML format. The request is submitted to the contact address using the (POST) https protocol. In the request is successful, the sender receives an XML file containing not only the reply but also the address card in pdf format. The pdf is printed and appended to the consignment.

While the XML request is of standard format, there a a number of non-compulsory fields. The https protocol is the only permitted option because the server does not accept any non-encrypted http requests.

Technical description of the interface for label request

Osoitekorttihaun rajapintakuvaus

Malli vastauksesta

Malli PDF-osoitekortista

Technical description of the pickup point search

Noutopistehaun rajapintakuvaus

Sample files

To facilitate deployment, Matkahuolto offers sample codes in some of the most common web programming languages. The sample codes may be used freely for both private and commercial purposes. The codes may be used as they are or modified at the user’s risk. Please note that the reliability of the sample codes has not been tested under all conditions.

Php: matkahuolto php 090826

C#: matkahuolto cs 090826

Java: matkahuolto java 090826

Ruby: matkahuolto ruby 090826

Testing and deployment

To test the interface, Matkahuolto’s servers offer a testing environment which returns a reply of correct format to the requests submitted. No consignments submitted using the testing environment are actually processed. Deployment is easy by changing the contact address.

Customer IDs and technical support

For testing and deployment, you will need a free customer ID. You can order it by e-mail from Matkahuolto at verkkokauppapalvelut@matkahuolto.fi.

Additional information on the user or XML interface is provided by the help desk The e-mail address to the help desk is verkkokauppapalvelut@matkahuolto.fi.

Osta liput – hae aikataulut

Mistä
Mihin
Hae aikatauluja

Vaihda maisemaa pikkurahalla

Nettiliput alk. 2 € + palvelumaksu 0,50 €