Task

Task is made up of jobs
{
"id": 121,
"current_status": "unassigned",
"business_username": "",
"creator_id": 1,
"has_creator_customer": false,
"created_by": "merchants",
"is_unassigned": true,
"auto_assignment": false,
"is_completed": false,
"is_draft": false,
"on_time": false,
"orders": [
"1589661051"
],
"total_orders_amount": "10000",
"delivery_fees": "1500",
"currency_code": "XOF",
"has_paid_delivery_service": false,
"has_cash_managment": true,
"customer_paid": false,
"customer_paid_at": null,
"merchant_paid": false,
"business_receipt_id": null,
"customer_receipt_id": null,
"merchant_receipt_id": null,
"paid_delivery_service_receipt_id": null,
"is_archived": false,
"archived_datetime": null,
"has_percentage": true,
"fees": "150",
"percentage": "0.10",
"customer_payment_method_code": "cash",
"created_at": "2020-07-06T00:14:47.000000Z",
"updated_at": "2020-07-06T00:14:47.000000Z",
"deleted_at": null,
"pickups": [
{
"id": 133,
"customer_name": "Ange Bagui",
"customer_phone": "+22556888385",
"customer_email": null,
"location_name": "Pharmacie Arums",
"location_latitude": 5.395556400000000252248355536721646785736083984375,
"location_longitude": -3.97707180000000004582716428558342158794403076171875,
"location_address_typed": null,
"location_address_type": null,
"location_address_door": null,
"location_address_type_stage": null,
"location_address_town": null,
"order_id": "1589661051",
"order_description": null,
"order_price": "10000",
"delivery_fees": "0",
"currency_code": "XOF",
"has_pickup": true,
"job_datetime": "2020-05-17 09:00:00",
"description": null,
"timezone": "Africa/Abidjan",
"tracking_link": null,
"images": "[]",
"notify": null,
"geofence": null,
"tags": null,
"signatures": null,
"signatures_at": null,
"current_status": "unassigned",
"task_id": "121",
"is_completed": false,
"is_completed_on_time": false,
"has_customer_payment": false,
"customer_paid": false,
"customer_receipt_id": null,
"customer_payment_method_code": null,
"created_at": "2020-07-06T00:14:47.000000Z",
"updated_at": "2020-07-06T00:14:47.000000Z",
"deleted_at": null,
"histories": [
{
"id": 393,
"job_id": 133,
"status": "unassigned",
"agent_id": -1,
"agent_name": "",
"creator_id": 1,
"creator_name": null,
"creator": "merchants",
"job_location_address": "Pharmacie Arums",
"task_id": 121,
"created_at": "2020-07-06T00:14:47.000000Z",
"updated_at": "2020-07-06T00:14:47.000000Z",
"deleted_at": null
}
],
"customer_receipt": null
}
],
"deliveries": [
{
"id": 134,
"customer_name": "Marie Beatrice Tahi",
"customer_phone": "+22556888385",
"customer_email": null,
"location_name": "Abidjan Mall",
"location_latitude": 5.36174239999999979744416123139671981334686279296875,
"location_longitude": -3.96672400000000013875478543923236429691314697265625,
"location_address_typed": null,
"location_address_type": null,
"location_address_door": null,
"location_address_type_stage": null,
"location_address_town": null,
"order_id": "1589661051",
"order_description": null,
"order_price": "10000",
"delivery_fees": "1500",
"currency_code": "XOF",
"has_pickup": false,
"job_datetime": "2020-05-17 12:00:00",
"description": null,
"timezone": "Africa/Abidjan",
"tracking_link": null,
"images": "[]",
"notify": null,
"geofence": null,
"tags": null,
"signatures": null,
"signatures_at": null,
"current_status": "unassigned",
"task_id": "121",
"is_completed": false,
"is_completed_on_time": false,
"has_customer_payment": true,
"customer_paid": false,
"customer_receipt_id": null,
"customer_payment_method_code": null,
"created_at": "2020-07-06T00:14:47.000000Z",
"updated_at": "2020-07-06T00:14:47.000000Z",
"deleted_at": null,
"histories": [
{
"id": 394,
"job_id": 134,
"status": "unassigned",
"agent_id": -1,
"agent_name": "",
"creator_id": 1,
"creator_name": null,
"creator": "merchants",
"job_location_address": "Abidjan Mall",
"task_id": 121,
"created_at": "2020-07-06T00:14:47.000000Z",
"updated_at": "2020-07-06T00:14:47.000000Z",
"deleted_at": null
}
],
"customer_receipt": null
}
],
"agent_id": null
}

get
Show Task

https://api.smartlivraison.com/v1/tasks/{id}
Find Task by ID
Request
Response
Request
Path Parameters
id
required
string
Task's ID
Headers
Authorization
optional
string
Bearer "** TOKEN***"
Accept
required
string
application/json
Response
200: OK
{
"success": true,
"data": {
"id": 63,
"current_status": "unassigned",
"business_username": "elie",
"creator_id": 127,
"has_creator_customer": false,
"created_by": "manager",
"is_unassigned": true,
"auto_assignment": false,
"is_completed": false,
"is_draft": true,
"on_time": false,
"orders": [],
"total_orders_amount": "0",
"delivery_fees": "0",
"currency_code": "XOF",
"has_paid_delivery_service": false,
"has_cash_managment": true,
"customer_paid": false,
"customer_paid_at": null,
"merchant_paid": false,
"business_receipt_id": null,
"customer_receipt_id": null,
"merchant_receipt_id": null,
"paid_delivery_service_receipt_id": null,
"is_archived": false,
"archived_datetime": null,
"has_percentage": false,
"fees": "0",
"percentage": "0",
"customer_payment_method_code": "cash",
"created_at": "2020-06-27T10:20:05.000000Z",
"updated_at": "2020-06-27T10:20:05.000000Z",
"deleted_at": null,
"pickups": [],
"deliveries": [],
"agent_id": null
},
"message": "Task retrieved successfully"
}
404: Not Found
{
"success": false,
"message": "Task not found"
}