Wiki source code of 5. Transfer Prices

Last modified by Giorgi Mdivnishvili on 2024/03/01 14:26

Hide last authors
Giorgi Mdivnishvili 1.1 1 **https:~/~/restapi.rustaronline.com/v1.01/api/transferprices**
2
3 Method: GET
4
5 Parameters to pass: agentid, agentpassword, hotelid and transferdate
6
7 Sample URL:
8
9 **https:~/~/restapi.rustaronline.com/v1.01/api/transferprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid= d5f11cf4-acc1-4c0e-9736-e45697a22031&transferdate=2017-10-25T00:00:00**
10
11
12 The method returns the prices for transfers from and to the specified hotel and date.
13
14
15 Return value example:
16
17
18 {{code language="json"}}
19 {
20 "Code": "00",
21 "Message": "",
22 "Timestamp": "2017-10-15T16:10:09.9774545+04:00",
23 "Version": "1.00",
24 "ResponseID": "09cba63b-14fb-4f19-b8da-51129359c981",
25 "Data": [{
26 "vehicletypeid": "a9252005-0a92-4ed1-9603-0f2f14295c29",
27 "vehicletypename": "GROUP",
28 "adultplaces": 1,
29 "childplaces": 1,
30 "isgroup": true,
31 "price": 20.00,
32 "childprice": 10.00,
33 "perpersonprice": true,
34 "transfertype": "ARRIVAL",
35 "terminalid": "a1ec1ee3-fe91-11e6-9414-44a84249a1e0",
36 "terminalcode": "DXB"
37 }, {
38 "vehicletypeid": "a9252005-0a92-4ed1-9603-0f2f14295c29",
39 "vehicletypename": "GROUP",
40 "adultplaces": 1,
41 "childplaces": 1,
42 "isgroup": true,
43 "price": 20.00,
44 "childprice": 10.00,
45 "perpersonprice": true,
46 "transfertype": "ARRIVAL",
47 "terminalid": "86848bc4-a416-465b-aaac-b23f190ea4b9",
48 "terminalcode": "SHJ"
49 }, {
50 "vehicletypeid": "d776f913-bf2a-4b68-ab7c-c9abf4215d41",
51 "vehicletypename": "TOYOTA COROLLA",
52 "adultplaces": 3,
53 "childplaces": 0,
54 "isgroup": false,
55 "price": 100.00,
56 "childprice": 0.0,
57 "perpersonprice": false,
58 "transfertype": "DEPARTURE",
59 "terminalid": "86848bc4-a416-465b-aaac-b23f190ea4b9",
60 "terminalcode": "SHJ"
61 }
62 ]
63 }
64
65
66 {{/code}}
67
68
69
70
71
72
Giorgi Mdivnishvili 5.1 73 (% class="table-bordered" %)
Giorgi Mdivnishvili 3.1 74 (% class="info" %)|**Value**|(((
75 **Description**
76 )))
77 |**vehicletypeid**|GUID of the vehicle type. Uniquely describes the vehicles like (“GROUP”, “TOYOTA COROLLA”)
78 |**vehicletypename**|string. Description of the vehicle/transfer. “GROUP”, “TOYOTA COROLLA”…
79 |**adultplaces**|integer. Max places for adults in the vehicle. For group transfers the value is 1
80 |**childplaces**|integer. Max places for children in the vehicle after all places for adults are occupied. For group transfers the value is 1
81 |**isgroup**|boolean. For the group transfer prices the value id true, for individual transfers/vehicles the value is false
82 |**price**|Price in USD for the transfer. For group transfers the price is the transfer price for one adult, for the individual transfer the price is per vehicle
83 |**childprice**|For the group transfer the field contains the price in USD for the transfer of the child. For individual transfers this field is not used and its value is 0
84 |**perpersonprice**|Boolean. Specifies if the price is per person or per vehicle. For group transfers it is true, for individual transfers it is false.
85 |**transfertype**|String. “ARRIVAL” or “DEPARTURE”.
86 |**terminalid**|GUID. Unique id of the airport terminal for the transfer
87 |**terminalcode**|String. Terminal code. 3 – 4 characters. (SHK, DXB, DXB2 …)
Giorgi Mdivnishvili 1.1 88
89