Update Task Status
Author: Rohit Agnihotri
48 views
POST
Update Task Status
{{URL}}/api/updateTaskStatus
HEADERS
Accept
application/json
None
Content-Type
application/json
None
client
{{CLIENT}}
None
Authorization
{{TOKEN}}
None
None
BODY formdata
task_status
3
2 for in-progress, 3 for completed ,4 = failded
note
hdfbgjhdfbsdjfhbshj
if have
task_id
1467
None
image
None
None
signature
None
None
Example Request
- Update Task Status
Example Response
{- data: {
- id: 3132
- order_id: 1489
- 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 07:07:08"
- 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: "5"
- allocation_type: "a"
- created_at: "2023-03-24T07:07:08.000000Z"
- updated_at: "2023-03-24T07:17:31.000000Z"
- proof_image: null
- proof_signature: null
- note: "Driver/Vehicle Incident"
- 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
- otpEnabled: 0
- otpRequired: 0
- qrCodeVendor: null
- nextTask: null
- 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"
} - pricing: null
- order: {
- id: 1489
- 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 07:07:08"
- status: "failed"
- cash_to_be_collected: "183.00"
- amount: "183.00"
- driver_cost: "1.10"
- task_images: [
] - unique_id: "vVql34"
- call_back_url: "{{DispatchUrl}}/dispatch-order-status-update/77641d4c1be5b02"
- actual_distance: "1.70"
- actual_time: "4.00"
- is_restricted: 0
- vendor_id: 7
- order_vendor_id: 6
- sync_order_id: 7
- order_number: "77382226"
- 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-24T07:08:13.000000Z"
- sync_customer_id: 1
- user_icon: "{{ImageUrl}}/insecure/fill/512/512/ce/0/plain/{{S3Url}}/default/default_image.png@webp"
}
}
} - 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.