Login | Register

Function: Get Quote Data

This function returns all data for a single quote. You must supply the Coach Hire booking reference in this call. The function is shown below:


<?xml version='1.0' encoding='utf-8'?>
<JobFile>
  <appID>23423413</appID>
  <appSecret>abe1f4dc775a5a055afcd2abfe137b67f615f0bf</appSecret>
  <quoteIdGet>292402</quoteIdGet>
</JobFile>
Tag Format Notes
<quoteIdGet>
integer This is the Coach Hire booking reference

Data Returned: Get Quote Data

The information returned has all the data about the quote. It is divided into 3 sections. The first is customer information followed by the journey information and finally the passenger information. Flight details are optional as are the notes.

Callback : {  
  "JobFile":{
    "quote_id":"292402",
    "customer":{
      "email":"custemail@theidomain.com",
      "name":"Customer Test",
      "phoneNumber":"0801020304",
      "mobileNumber":"0801020304",
      "company":"Customer Company",
      "extRef":"201511240406"
    },
    "journey":{
      "datetimePickup":"30-11-2015 00:00:00",
      "datetimeReturn":"",
      "collection":{
        "address":"16 Sterne St, White City, London W12 8AD, UK",
        "note":"",
        "latitude":"51.505243274494994",
        "longitude":"-0.22054195404052734"
      },
      "destination":{
        "address":"25 Canada Square, Canary Wharf, London E14 5LQ, UK",
        "note":"",
        "latitude":"51.50438847107615",
        "longitude":"-0.018324851989746094"
      },
      "directed":"0.0",
      "flightDepartures":{
        "flightNo":"",
        "datetime":""
      },
      "flightArrival":{
        "flightNo":"",
        "datetime":""
      },
      "totalPassenger":"1",
      "vehicle":"3",
      "luggage":"37",
      "journeyType":"43"
    },
    "passenger":{
      "email":"passenger@theirdomain.com",
      "name":"Pax Name1",
      "phoneNumber":"0801020304"
    },
    "pricing":{"totalPrice":"82.50"}
  }
}