Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Method
2. Data Set
1 Method
1.1 Data Interchange Language
JSON will be used for clients to transfer data to the MD server
JSON is a universal language that is simple for developers to export data for upload.
1.2 Invocation
1.2.1 Location
http://import.mountaindropoffs.com/client/{client_id}/json/
Only POST and not GET is allowed. The supported code is UTF-8.
{client_id} is replaced by your client id
1.3 Responses
1.3.1 Single Response
The order of the returned properties is arbitrary.
Successful bookings will return OK:true
All successful bookings have been verified by the system and added to the bookings log, to be processed
by mountain dropoffs
Syntax:
[Response]
Example:
{"RESULT": {OK:true,"COST": 40, "CURRENCY": "euro", BOOKING_ID:MD-
23784, ERROR:NULL, MESSAGE:The upload completed OK}, "VERSION": "1.1"}
4.2.3 Batched Requests Responses
Syntax:
[Response,Response 2]
Example:
[{"RESULT": {OK:true,"COST": 40, "CURRENCY": "euro", BOOKING_ID:MD-
237848, ERROR:NULL, MESSAGE:The upload completed OK}, "VERSION": "1.1"} { "RESULT":
{"COST": 300, "CURRENCY": "euro", BOOKING_ID:MD-234534, error:NULL, MESSAGE:The
upload completed OK}, "VERSION": "1.1"}]
4.2.4 Errors
If the booking causes an error then the
Syntax:
[Response]
Example:
{"RESULT": {"COST":NULL, "CURRENCY":
NULL, BOOKING_ID:NULL ERROR:{"passengers_1":"That number of passengers is not
valid"}, MESSAGE:There was an error with the upload}, "VERSION": "1.1"}
2 Data Set
date_2 The date and time of Timestamp 2012-06-16 15:56 NO (Only for Return
the arrival/departure for Bookings)
the return journey
from The pickup. Please see Text Geneva Airport YES
the glossary for a list of
destinations
journey_type_2 Journey Type for return Text VIP NO (Desired for Return
journey. Please see Journeys)
the Glossary for a
list of destinations. If
unspecified, resolves
to the cheapest option.
drop_name Text NO
drop_address Text NO
drop_tel Text NO
Glossary
Journey Types
Used for data types journey_type_1 and journey_type_2
Data [String] Description
Super Saver The cheapest option. Not available for all journeys
Resorts
Used for data types from and to
DATA [STRING]