Get Order List
Author: Rohit Agnihotri
40 views
GET
Get Order List
{{URL}}/api/taskList?all=0
HEADERS
Accept
application/json
None
Content-Type
application/json
None
Authorization
{{TOKEN}}
None
client
{{CLIENT}}
None
Example Request
- Get Order List
Example Response
{- data: [
- {
- id: 3136
- order_id: 1491
- dependent_task_id: null
- task_type_id: 1
- location_id: 379
- appointment_duration: null
- pricing_rule_id: null
- distance: null
- assigned_time: "2023-03-24 09:52:28"
- accepted_time: null
- declined_time: null
- started_time: null
- reached_time: null
- failed_time: null
- cancelled_time: null
- cancelled_by_admin_id: 0
- Completed_time: null
- task_status: "1"
- allocation_type: "a"
- created_at: "2023-03-24T09:52:28.000000Z"
- updated_at: "2023-03-24T09:52:35.000000Z"
- proof_image: null
- proof_signature: null
- note: null
- barcode: null
- task_order: 0
- quantity: null
- alcoholic_item: 0
- proof_face: null
- bag_qrcode: null
- warehouse_id: null
- current_lat: null
- current_long: null
- is_return: 0
- location: {
- id: 379
- latitude: "30.74105170"
- longitude: "76.77901500"
- short_name: null
- address: "Sector 17, Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-03-29T09:09:20.000000Z"
- updated_at: "2023-03-24T07:07:08.000000Z"
- phone_number: "0000000000"
- email: "xxxxx@support.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
} - tasktype: {
- id: 1
- name: "Pickup"
} - order: {
- id: 1491
- customer_id: 52
- driver_id: 141
- recipient_phone: "0000000000"
- Recipient_email: "admin@example.com"
- task_description: "Order From :Plog Electronics"
- auto_alloction: "a"
- order_time: "2023-03-24 09:52:28"
- status: "assigned"
- cash_to_be_collected: "185.00"
- amount: "185.00"
- driver_cost: "1.10"
- task_images: [
] - unique_id: "zqFdmw"
- call_back_url: "{{DispatchUrl}}/dispatch-order-status-update/107641d72dc4c17e"
- actual_distance: "1.70"
- actual_time: "4.00"
- is_restricted: 0
- vendor_id: 7
- order_vendor_id: 9
- sync_order_id: 10
- order_number: "52788594"
- dbname: "ace"
- customer: {
- id: 52
- name: "dlvrd"
- email: "admin@example.com"
- phone_number: "0000000000"
- dial_code: null
- address: null
- status: "Active"
- created_at: "2022-03-11T11:03:45.000000Z"
- updated_at: "2023-03-24T09:52:28.000000Z"
- sync_customer_id: 1
- user_icon: "{{ImageUrl}}/insecure/fill/512/512/ce/0/plain/{{S3Url}}/default/default_image.png@webp"
- resources: null
} - task: [
- {
- id: 3136
- order_id: 1491
- dependent_task_id: null
- task_type_id: 1
- location_id: 379
- appointment_duration: null
- pricing_rule_id: null
- distance: null
- assigned_time: "2023-03-24 09:52:28"
- accepted_time: null
- declined_time: null
- started_time: null
- reached_time: null
- failed_time: null
- cancelled_time: null
- cancelled_by_admin_id: 0
- Completed_time: null
- task_status: "1"
- allocation_type: "a"
- created_at: "2023-03-24T09:52:28.000000Z"
- updated_at: "2023-03-24T09:52:35.000000Z"
- proof_image: null
- proof_signature: null
- note: null
- barcode: null
- task_order: 0
- quantity: null
- alcoholic_item: 0
- proof_face: null
- bag_qrcode: null
- warehouse_id: null
- current_lat: null
- current_long: null
- is_return: 0
- location: {
- id: 379
- latitude: "30.74105170"
- longitude: "76.77901500"
- short_name: null
- address: "Sector 17, Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-03-29T09:09:20.000000Z"
- updated_at: "2023-03-24T07:07:08.000000Z"
- phone_number: "0000000000"
- email: "xxxxx@support.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
}
} - {
- id: 3137
- order_id: 1491
- dependent_task_id: 3136
- task_type_id: 2
- location_id: 475
- appointment_duration: null
- pricing_rule_id: null
- distance: null
- assigned_time: "2023-03-24 09:52:28"
- accepted_time: null
- declined_time: null
- started_time: null
- reached_time: null
- failed_time: null
- cancelled_time: null
- cancelled_by_admin_id: 0
- Completed_time: null
- task_status: "1"
- allocation_type: "a"
- created_at: "2023-03-24T09:52:28.000000Z"
- updated_at: "2023-03-24T09:52:35.000000Z"
- proof_image: null
- proof_signature: null
- note: null
- barcode: null
- task_order: 0
- quantity: null
- alcoholic_item: 0
- proof_face: null
- bag_qrcode: null
- warehouse_id: null
- current_lat: null
- current_long: null
- is_return: 0
- location: {
- id: 475
- latitude: "30.73331480"
- longitude: "76.77941790"
- short_name: null
- address: "Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-04-29T11:46:24.000000Z"
- updated_at: "2023-03-24T06:06:03.000000Z"
- phone_number: "0000000000"
- email: "admin@example.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
}
}
]
}
} - {
- id: 3137
- order_id: 1491
- dependent_task_id: 3136
- task_type_id: 2
- location_id: 475
- appointment_duration: null
- pricing_rule_id: null
- distance: null
- assigned_time: "2023-03-24 09:52:28"
- accepted_time: null
- declined_time: null
- started_time: null
- reached_time: null
- failed_time: null
- cancelled_time: null
- cancelled_by_admin_id: 0
- Completed_time: null
- task_status: "1"
- allocation_type: "a"
- created_at: "2023-03-24T09:52:28.000000Z"
- updated_at: "2023-03-24T09:52:35.000000Z"
- proof_image: null
- proof_signature: null
- note: null
- barcode: null
- task_order: 0
- quantity: null
- alcoholic_item: 0
- proof_face: null
- bag_qrcode: null
- warehouse_id: null
- current_lat: null
- current_long: null
- is_return: 0
- location: {
- id: 475
- latitude: "30.73331480"
- longitude: "76.77941790"
- short_name: null
- address: "Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-04-29T11:46:24.000000Z"
- updated_at: "2023-03-24T06:06:03.000000Z"
- phone_number: "0000000000"
- email: "admin@example.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
} - tasktype: {
- id: 2
- name: "Drop"
} - order: {
- id: 1491
- customer_id: 52
- driver_id: 141
- recipient_phone: "0000000000"
- Recipient_email: "admin@example.com"
- task_description: "Order From :Plog Electronics"
- auto_alloction: "a"
- order_time: "2023-03-24 09:52:28"
- status: "assigned"
- cash_to_be_collected: "185.00"
- amount: "185.00"
- driver_cost: "1.10"
- task_images: [
] - unique_id: "zqFdmw"
- call_back_url: "{{DispatchUrl}}/dispatch-order-status-update/107641d72dc4c17e"
- actual_distance: "1.70"
- actual_time: "4.00"
- is_restricted: 0
- vendor_id: 7
- order_vendor_id: 9
- sync_order_id: 10
- order_number: "52788594"
- dbname: "ace"
- customer: {
- id: 52
- name: "dlvrd"
- email: "admin@example.com"
- phone_number: "0000000000"
- dial_code: null
- address: null
- status: "Active"
- created_at: "2022-03-11T11:03:45.000000Z"
- updated_at: "2023-03-24T09:52:28.000000Z"
- sync_customer_id: 1
- user_icon: "{{ImageUrl}}/insecure/fill/512/512/ce/0/plain/{{S3Url}}/default/default_image.png@webp"
- resources: null
} - task: [
- {
- id: 3136
- order_id: 1491
- dependent_task_id: null
- task_type_id: 1
- location_id: 379
- appointment_duration: null
- pricing_rule_id: null
- distance: null
- assigned_time: "2023-03-24 09:52:28"
- accepted_time: null
- declined_time: null
- started_time: null
- reached_time: null
- failed_time: null
- cancelled_time: null
- cancelled_by_admin_id: 0
- Completed_time: null
- task_status: "1"
- allocation_type: "a"
- created_at: "2023-03-24T09:52:28.000000Z"
- updated_at: "2023-03-24T09:52:35.000000Z"
- proof_image: null
- proof_signature: null
- note: null
- barcode: null
- task_order: 0
- quantity: null
- alcoholic_item: 0
- proof_face: null
- bag_qrcode: null
- warehouse_id: null
- current_lat: null
- current_long: null
- is_return: 0
- location: {
- id: 379
- latitude: "30.74105170"
- longitude: "76.77901500"
- short_name: null
- address: "Sector 17, Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-03-29T09:09:20.000000Z"
- updated_at: "2023-03-24T07:07:08.000000Z"
- phone_number: "0000000000"
- email: "xxxxx@support.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
}
} - {
- id: 3137
- order_id: 1491
- dependent_task_id: 3136
- task_type_id: 2
- location_id: 475
- appointment_duration: null
- pricing_rule_id: null
- distance: null
- assigned_time: "2023-03-24 09:52:28"
- accepted_time: null
- declined_time: null
- started_time: null
- reached_time: null
- failed_time: null
- cancelled_time: null
- cancelled_by_admin_id: 0
- Completed_time: null
- task_status: "1"
- allocation_type: "a"
- created_at: "2023-03-24T09:52:28.000000Z"
- updated_at: "2023-03-24T09:52:35.000000Z"
- proof_image: null
- proof_signature: null
- note: null
- barcode: null
- task_order: 0
- quantity: null
- alcoholic_item: 0
- proof_face: null
- bag_qrcode: null
- warehouse_id: null
- current_lat: null
- current_long: null
- is_return: 0
- location: {
- id: 475
- latitude: "30.73331480"
- longitude: "76.77941790"
- short_name: null
- address: "Chandigarh, India"
- post_code: ""
- customer_id: 52
- created_at: "2022-04-29T11:46:24.000000Z"
- updated_at: "2023-03-24T06:06:03.000000Z"
- phone_number: "0000000000"
- email: "admin@example.com"
- location_status: 1
- due_after: "00:00:00"
- due_before: "00:00:00"
- flat_no: null
- warehouse_id: null
}
}
]
}
}
] - status: 200
- message: "success"
}
Still stuck? How can we help?
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.