API Reference

HTTP Request

https://api.pass.qa/business/v1/orders/{ORDER_ID}/driver_location

Sample Request

<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL            => "https://api.pass.qa/business/v1/orders/{ORDER_ID}/driver_location",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING       => "",
  CURLOPT_MAXREDIRS      => 10,
  CURLOPT_TIMEOUT        => 30,
  CURLOPT_HTTP_VERSION   => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST  => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer ".$token,//$token is your token created in dashboard.
    "Content-Type: application/json; charset=utf-8",
    "Accept: application/json"
  ],
]);

$response = curl_exec($curl);
$err      = curl_error($curl);

curl_close($curl);

if ($err) {
  echo 'cURL Error #:' . $err;
} else {
  echo $response;
}
var request = require("request");
var token = 'mytokenvalue' //token value to be placed here;
var baseURL = 'https://api.pass.qa/business';

var options = { method: 'GET',
  url: baseURL+'/v1/orders/{ORDER_ID}/cancel',
  headers: 
   { Accept: 'application/json',
     Authorization: 'Bearer '+token,
     'Content-Type': 'application/json' },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);
  console.log(body);
});
import requests
token = 'your token'
baseUrl ='https://api.pass.qa/business'
headers = {'Authorization': 'Bearer '+token,'Accept':'application/json','Content-Type':'application/json'}
response = requests.get(baseUrl+'/v1/orders/{ORDER_ID}/cancel', headers=headers)
print(response.json())

Response Descriptions

AttributeDescription
statusIndicates whether the calculation progress has been successful or not.
messageThe message of the progress.
{
    "status": "success",
    "http-code": 200,
    "message": "Data fetching success!",
    "data": {
        "order_data": [
            {
                "job_id": "543444412",
                "status": "Cancelled",
                "lat": "25.2854473",
                "lng": "51.5310398",
                "type": "pickup"
            },
            {
                "job_id": "543444413",
                "status": "Cancelled",
                "lat": "25.2862157",
                "lng": "51.4204044",
                "type": "dropoff"
            }
        ],
        "driver_data": {
            "driverLocation": {
                "latitude": 25.3091989,
                "longitude": 51.4779726
            }
        }
    },
    "option": {}
}