Reassign Agent To Task
Author: Rohit Agnihotri
23 views
POST
Reassign Agent To Task
{{URL}}/api/reassign_agent_to_task
Re-Assign task to agent
HEADERS
Shortcode
code
None
BODY raw
{
"agent_id": "720956",
"order_number":"39589910"
}
Example Request
- Re-Assign task to agent
Example Response
{- status: "success"
- message: "Task Re-Assigned"
- data: {
- id: 2
- agent_id: "720956"
- team_id: 2
- name: "Sebastian Vettel"
- profile_picture: "assets/client_00000051/agents5fedb446c1e33.jpg/cadu0HOMN8xyQc8NAuMhao5SNWgZgUohzrXwJqYA.jpg"
- type: "Employee"
- vehicle_type_id: 3
- make_model: "2021"
- plate_number: "pb-yb-2021"
- phone_number: "+911234567891"
- color: "black"
- is_activated: 0
- is_available: 1
- is_approved: 1
- device_type: "android"
- device_token: "fS60h_77REGRZEJeAGz7ea:APA91bGE3PUSRYEQD0v1YZK2YyPJEpawLvo0h3qLN5jmD96yt_7rxsO0tNekvVyTIulVHzHrkrFqStIVoYbM6QBTmzaHpe8MPWehJCIr0ZLnJb1aSvOgdgo2_2YU9e3zgh1aXV-R4kAP"
- access_token: "eyJ0eXAiOiJqd3QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2ODE0Nzk1NTcsImV4cCI6MTY4NDA3MTU1NywiaXNzIjoiY29kZWJyZXdJbm5vdmF0aW9uIn0.lKmQqqasBda9H8tlaE2ruwg4nOuIWjsot6I63uiaIS0"
- created_at: null
- updated_at: "2023-04-14T13:39:17.000000Z"
- cash_at_hand: "0.00"
- uid: null
- customer_type_id: null
- deleted_at: null
- razorpay_contact_json: null
- razorpay_bank_json: null
- is_busy: 0
- image_url: "{{AWS_URL}}/assets/client_00000051/agents5fedb446c1e33.jpg/cadu0HOMN8xyQc8NAuMhao5SNWgZgUohzrXwJqYA.jpg"
- agent_cash_at_hand: -13
- agent_payment: [
] - wallet: {
- id: 2
- holder_type: "App\Model\Agent"
- holder_id: 2
- name: "Default Wallet"
- slug: "default"
- uuid: "12b469f4-2c59-467c-be2a-1646b4a5ef00"
- description: null
- meta: [
] - balance: "0"
- decimal_places: 2
- created_at: "2022-09-01T21:51:40.000000Z"
- updated_at: "2022-09-01T21:51:40.000000Z"
} - complete_order: [
- {
- id: 36
- order_number: "53908069"
- customer_id: null
- driver_id: 2
- scheduled_date_time: null
- key_value_set: null
- conditions_tag_team: null
- conditions_tag_driver: null
- recipient_phone: null
- Recipient_email: null
- task_description: null
- images_array: ""
- auto_alloction: "m"
- order_time: "2023-01-16 09:09:49"
- order_type: "now"
- created_at: "2023-01-16T14:39:49.000000Z"
- updated_at: "2023-01-16T14:43:48.000000Z"
- status: "completed"
- order_status: "Task Status"
- note: null
- cash_to_be_collected: null
- base_price: "10.00"
- base_duration: "10"
- base_distance: "10.00"
- base_waiting: "10"
- duration_price: "5.00"
- waiting_price: "8.00"
- distance_fee: "5.00"
- cancel_fee: "2.00"
- agent_commission_percentage: 5
- agent_commission_fixed: 6
- freelancer_commission_percentage: 5
- freelancer_commission_fixed: 4
- actual_time: "0.00"
- actual_distance: "0.00"
- order_cost: "10.00"
- driver_cost: "6.50"
- proof_image: null
- proof_signature: null
- unique_id: "y0pRkv"
- net_quantity: 0
- call_back_url: null
- completion_otp: null
- type: 0
- friend_name: null
- friend_phone_number: null
- total_other_taxes: null
- request_type: "P"
- is_comm_settled: 0
- is_restricted: 0
- vendor_id: null
- order_vendor_id: null
- sync_order_id: null
- dbname: null
- toll_fee: "0.00"
- vendor_name: null
- available_seats: 0
- no_seats_for_pooling: 0
- is_cab_pooling: 0
} - {
- id: 44
- order_number: "71295563"
- customer_id: 23
- driver_id: 2
- scheduled_date_time: null
- key_value_set: null
- conditions_tag_team: null
- conditions_tag_driver: null
- recipient_phone: null
- Recipient_email: null
- task_description: null
- images_array: ""
- auto_alloction: "m"
- order_time: "2023-01-16 01:09:20"
- order_type: "now"
- created_at: "2023-01-16T18:39:20.000000Z"
- updated_at: "2023-01-16T18:39:46.000000Z"
- status: "completed"
- order_status: "Task Status"
- note: null
- cash_to_be_collected: null
- base_price: "10.00"
- base_duration: "10"
- base_distance: "10.00"
- base_waiting: "10"
- duration_price: "5.00"
- waiting_price: "8.00"
- distance_fee: "5.00"
- cancel_fee: "2.00"
- agent_commission_percentage: 5
- agent_commission_fixed: 6
- freelancer_commission_percentage: 5
- freelancer_commission_fixed: 4
- actual_time: "0.00"
- actual_distance: "0.00"
- order_cost: "10.00"
- driver_cost: "6.50"
- proof_image: null
- proof_signature: null
- unique_id: "nyo8Av"
- net_quantity: 0
- call_back_url: null
- completion_otp: null
- type: 0
- friend_name: null
- friend_phone_number: null
- total_other_taxes: null
- request_type: "P"
- is_comm_settled: 0
- is_restricted: 0
- vendor_id: null
- order_vendor_id: null
- sync_order_id: null
- dbname: null
- toll_fee: "0.00"
- vendor_name: null
- available_seats: 0
- no_seats_for_pooling: 0
- is_cab_pooling: 0
}
]
}
}
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.