Get Task

This api allows you to list the tasks based on the provided query parameters.

GET    https://api.teliver.xyz/v1/task/list?apikey=Your_Api_Key
Parameters Requires Values Description
apikey yes The api key is the unique identfier for your respective application. (You can get it from your Dashboard). Always pass this as query parameter
driver_id no Driver id The driver id is the key to list the tasks associated with driver.
status no “assigned,in_progress,completed” The status of the tasks can be passed with the comma separated values.
page no Default: 1 The page number whose values to be retrieved.
limit no Default: 10 The limit is the limit value of the task list to be fetched.

RESPONSE:

{
    "message": "Task List",
    "success": true,
    "data": {
        "task_list": [
            {
                "task_id": "rxiq3nGx7",
                "type": 3,
                "time": "2010-10-12T08:50:00.000Z",
                "notes": "Food Delivery",
                "status": "created",
                "drop": {
                    "address": "Adyar",
                    "lnglat": [
                        80.6488,
                        13.8774545
                    ],
                    "customer": {
                        "name": "Pickup Customer",
                        "mobile": "1234567"
                    }
                },
                "pickup": {
                    "address": "Nungambakkam",
                    "lnglat": [
                        80.2707,
                        13.0828657
                    ],
                    "customer": {
                        "name": "Drop Customer",
                        "mobile": "12345678"
                    }
                },
                "order_id": "",
                "updated_at": "2018-06-04T13:20:19.504Z",
                "created_at": "2018-06-04T13:20:19.504Z"
            },
            {
                "task_id": "g5e3432q3",
                "type": 3,
                "time": "2010-10-12T08:50:00.000Z",
                "notes": "Food Delivery",
                "status": "created",
                "drop": {
                    "address": "Guindy",
                    "lnglat": [
                        80.6488,
                        13.8774545
                    ],
                    "customer": {
                        "name": "Pickup Customer",
                        "mobile": "1234567"
                    }
                },
                "pickup": {
                    "address": "Porur",
                    "lnglat": [
                        80.2707,
                        13.0828657
                    ],
                    "customer": {
                        "name": "Drop Customer",
                        "mobile": "12345678"
                    }
                },
                "order_id": "",
                "updated_at": "2018-06-04T13:20:19.504Z",
                "created_at": "2018-06-04T13:20:19.504Z"
            }
        ]
    }
}

GET PARTICULAR TASK:

This api is to get the details for a particular task with the given task id.

GET    https://api.teliver.xyz/v1/task?apikey=Your_Api_Key
Parameters Requires Values Descriptions
task_id yes Task Id The task id is the key to find the particular task.

RESPONSE:

{
    "message": "Task",
    "success": true,
    "data": {
        "task": {
            "updated_at": "2018-06-04T13:20:19.504Z",
            "created_at": "2018-06-04T13:20:19.504Z",
            "type": 3,
            "time": "2010-10-12T08:50:00.000Z",
            "notes": "Food Delivery",
            "status": "created",
            "drop": {
                "address": "Adyar",
                "lnglat": [
                    80.6488,
                    13.8774545
                ]
            },
            "pickup": {
                "address": "Adyar",
                "lnglat": [
                    80.2707,
                    13.0828657
                ]
            },
            "order_id": "",
            "task_id": "rxiq3nGx7"
        }
    }
}

results matching ""

    No results matching ""