Create Task

This api allows you to create a Task for your project app.

POST https://api.teliver.xyz/v1/task/create?apikey=Your_Api_Key

Request Body

{
    "pickup": {
        "lnglat": [
            80.2707,
            13.0828657
        ],
        "address": "Adyar",
        "customer": {
            "name": "Pickup Customer",
            "mobile": "1234567"
        }
    },
    "drop": {
        "lnglat": [
            80.6488,
            13.8774545
        ],
        "address": "Nungambakkam",
        "customer": {
            "name": "Drop Customer",
            "mobile": "12345678"
        }
    },
    "notes": "Food Delivery",
    "time": "2010-10-12T08:50Z",
    "type": 3,
    "auto_assign": false
}

The above is the sample request data for Pick/Drop Task.

RESPONSE:

{
    "message": "Task created",
    "success": true,
    "data": {
        "task": {
            "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" 
        } 
    }
}

Last updated