6. Vehicle Types
Last modified by Giorgi Mdivnishvili on 2024/02/27 09:46
https://restapi.rustaronline.com/v1.01/api/vehicletypes
Method: GET
Parameters to pass: agentid, agentpassword
Sample URL:
https://restapi.rustaronline.com/v1.01/api/vehicletypes?agentid=test.test&agentpassword=TestP@ssw0rd
The method returns the list of vehicle types for transfers.
Return value example:
{
"Code": "00",
"Message": "",
"Timestamp": "2017-10-27T15:38:57.6251182+04:00",
"Version": "1.00",
"ResponseID": "67d1ce59-3705-4220-ad44-d826979ec18a",
"Data": [
{
"vehicletypeid": "a9252005-0a92-4ed1-9603-0f2f14295c29",
"vehicletypename": "GROUP",
"adultplaces": 1,
"childplaces": 1,
"isgroup": true
},
{
"vehicletypeid": "7ec0b691-a4e4-44c4-b66c-20ba83c9ded0",
"vehicletypename": "MERCEDES VIANNO",
"adultplaces": 7,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "88cf527b-43c8-4239-b6c5-29918bb211c0",
"vehicletypename": "MERCEDES S 350",
"adultplaces": 3,
"childplaces": 1,
"isgroup": false
},
{
"vehicletypeid": "6dfb3b93-237e-4b4a-b8a3-2ea8c9d29615",
"vehicletypename": "HYUNDAI H1",
"adultplaces": 8,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "de14bb88-1f51-48dd-8e22-3b7e528f216b",
"vehicletypename": "TOYOTA PREVIA",
"adultplaces": 4,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "b05c6d5a-270b-40e5-9efc-40f49967ab15",
"vehicletypename": "BMW",
"adultplaces": 3,
"childplaces": 1,
"isgroup": false
},
{
"vehicletypeid": "fc3815bb-af00-4733-9134-4b6334ce3854",
"vehicletypename": "TOYOTA HIACE",
"adultplaces": 10,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "59ff9aae-1bcf-4f97-817f-8f80fb803832",
"vehicletypename": "GMC YUKON",
"adultplaces": 5,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "1e5d5577-44e8-4157-a627-b638c9528227",
"vehicletypename": "TOYOTA COASTER",
"adultplaces": 25,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "9b4d2a8e-1f85-4d0d-8b39-c3b516d15c01",
"vehicletypename": "WITHOUT",
"adultplaces": 0,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "d776f913-bf2a-4b68-ab7c-c9abf4215d41",
"vehicletypename": "TOYOTA COROLLA",
"adultplaces": 3,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "85281cd1-b301-4711-8201-cbae5c6a756e",
"vehicletypename": "ESCALADE",
"adultplaces": 6,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "c0205b18-b5a3-4c8d-a608-d36df3284741",
"vehicletypename": "Rolls Royce",
"adultplaces": 0,
"childplaces": 0,
"isgroup": false
}
]
}
"Code": "00",
"Message": "",
"Timestamp": "2017-10-27T15:38:57.6251182+04:00",
"Version": "1.00",
"ResponseID": "67d1ce59-3705-4220-ad44-d826979ec18a",
"Data": [
{
"vehicletypeid": "a9252005-0a92-4ed1-9603-0f2f14295c29",
"vehicletypename": "GROUP",
"adultplaces": 1,
"childplaces": 1,
"isgroup": true
},
{
"vehicletypeid": "7ec0b691-a4e4-44c4-b66c-20ba83c9ded0",
"vehicletypename": "MERCEDES VIANNO",
"adultplaces": 7,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "88cf527b-43c8-4239-b6c5-29918bb211c0",
"vehicletypename": "MERCEDES S 350",
"adultplaces": 3,
"childplaces": 1,
"isgroup": false
},
{
"vehicletypeid": "6dfb3b93-237e-4b4a-b8a3-2ea8c9d29615",
"vehicletypename": "HYUNDAI H1",
"adultplaces": 8,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "de14bb88-1f51-48dd-8e22-3b7e528f216b",
"vehicletypename": "TOYOTA PREVIA",
"adultplaces": 4,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "b05c6d5a-270b-40e5-9efc-40f49967ab15",
"vehicletypename": "BMW",
"adultplaces": 3,
"childplaces": 1,
"isgroup": false
},
{
"vehicletypeid": "fc3815bb-af00-4733-9134-4b6334ce3854",
"vehicletypename": "TOYOTA HIACE",
"adultplaces": 10,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "59ff9aae-1bcf-4f97-817f-8f80fb803832",
"vehicletypename": "GMC YUKON",
"adultplaces": 5,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "1e5d5577-44e8-4157-a627-b638c9528227",
"vehicletypename": "TOYOTA COASTER",
"adultplaces": 25,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "9b4d2a8e-1f85-4d0d-8b39-c3b516d15c01",
"vehicletypename": "WITHOUT",
"adultplaces": 0,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "d776f913-bf2a-4b68-ab7c-c9abf4215d41",
"vehicletypename": "TOYOTA COROLLA",
"adultplaces": 3,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "85281cd1-b301-4711-8201-cbae5c6a756e",
"vehicletypename": "ESCALADE",
"adultplaces": 6,
"childplaces": 0,
"isgroup": false
},
{
"vehicletypeid": "c0205b18-b5a3-4c8d-a608-d36df3284741",
"vehicletypename": "Rolls Royce",
"adultplaces": 0,
"childplaces": 0,
"isgroup": false
}
]
}
Value | Description |
vehicletypeid | GUID of the vehicle type. Uniquely describes the vehicles like (“GROUP”, “TOYOTA COROLLA”) |
vehicletypename | String. Description of the vehicle/transfer. “GROUP”, “TOYOTA COROLLA”… |
adultplaces | integer. Max places for adults in the vehicle. For group transfers the value is 1 |
childplaces | integer. Max places for children in the vehicle after all places for adults are occupied. For group transfers the value is 1 |
isgroup | boolean. For the group transfer prices the value id true, for individual transfers/vehicles the value is false |