Agent Logs
Author: Rohit Agnihotri
23 views
POST
Agent Logs
{{URL}}/api/agent/logs
HEADERS
Accept
application/json
None
Content-Type
application/json
None
Authorization
{{TOKEN}}
None
client
{{CLIENT}}
None
BODY formdata
lat
32.021230
None
long
75.023210
None
battery_level
50
None
os_version
8.0
None
app_version
1.0
None
current_speed
50
None
on_route
0
1 or 0
device_type
IOS
None
all
1
None
Example Request
- Agent Logs
Example Response
{- data: {
- user: {
- id: 141
- team_id: 72
- name: "goutav"
- profile_picture: "assets/client_003c58a1/agents641d3fe370610.jpg/a4QNnpqOimv3AnsEeD34HQ28zguSLmEJoTMBZWic.jpg"
- type: "undefined"
- vehicle_type_id: 3
- make_model: ""
- plate_number: ""
- phone_number: "+0000000000"
- color: ""
- is_activated: 0
- is_available: 1
- is_approved: 1
- device_type: "android"
- device_token: "token"
- access_token: "token"
- created_at: "2023-03-24T06:14:59.000000Z"
- updated_at: "2023-03-24T10:34:38.000000Z"
- cash_at_hand: "0.00"
- uid: ""
- customer_type_id: null
- deleted_at: null
- razorpay_contact_json: null
- razorpay_bank_json: null
- is_pooling_available: 0
- client_preference: {
- id: 1
- client_id: "3c58a1"
- theme: "light"
- distance_unit: "metric"
- currency_id: 63
- language_id: 1
- agent_name: "Driver"
- acknowledgement_type: "acceptreject"
- date_format: "d-m-Y"
- time_format: 24
- map_type: "google_maps"
- map_key_1: "AIzaSyApSRZt-HrKsjH7pQUvme_BVpuIJht0juM"
- map_key_2: null
- sms_provider: "1"
- sms_provider_key_1: "AC69c3059bd910be52921935818db1b119"
- sms_provider_key_2: "6370d166475cda64ef3dc08032198bab"
- allow_feedback_tracking_url: 0
- task_type: null
- order_id: null
- email_plan: "free"
- domain_name: null
- personal_access_token_v1: "qeNHq9V4ac6L5Wb1bJ6ZgoPpCW2dMg"
- personal_access_token_v2: null
- toll_fee: 0
- toll_key: null
- fcm_server_key: "AAAAK7kI-Ec:APA91bEMOUQKLEXuJssiKxfFJ0TINPhy41o46Kq5OIBMfKBc_i9aUZWi7n7OItQcRg0_La-r0YauW2XPmG0_ZIvR57U1CoJP0RVpFfTeVOzPONA6EnEdrZPDhbCR5w6am2NNZU08TqyT"
- created_at: null
- updated_at: "2023-03-24T06:45:40.000000Z"
- sms_provider_number: "+19894557543"
- allow_all_location: 0
- route_flat_input: 0
- route_alcoholic_input: 0
- customer_support: ""
- customer_support_key: ""
- customer_support_application_id: ""
- sms_credentials: "{"sms_key": "AC69c3059bd910be52921935818db1b119", "sms_from": "+19894557543", "sms_secret": "6370d166475cda64ef3dc08032198bab", "static_otp": 0}"
- verify_phone_for_driver_registration: 1
- reffered_by_amount: "0.00"
- reffered_to_amount: "0.00"
- favicon: "assets/Clientfavicon/XyXXkEeEeRpizFVDNp1dDbqgoyFaApEdLzwCK4yE.ico"
- is_edit_order_driver: 1
- is_cancel_order_driver: 0
- show_limited_address: 0
- customer_notification_per_distance: null
- custom_mode: "{"show_vehicle_type_icon": "2", "hide_subscription_module": 0, "is_hide_customer_notification": 0}"
- auto_payout: 1
- create_batch_hours: null
- maximum_route_per_job: null
- job_consist_of_pickup_or_delivery: 0
- is_driver_slot: 0
- is_cab_pooling_toggle: 1
- warehouse_mode: "{"show_category_module": 1, "show_warehouse_module": 1}"
- radius_for_pooling_km: 100
- dashboard_mode: "{"show_dashboard_by_agent_wise": "1"}"
- charge_percent_from_agent: null
- manage_fleet: 0
- stripe_publishable_key: "pk_test_51L5OAEAMx49Z5ivsEIK9FlN8UBmA6llomhwB2z1rDESdj6EMDuAKpujDuKefYrzNFhXQV0N12AA304VNNallFvWJ00JNKm4K0H"
- alert_dismiss_time: 60
- currency: {
- id: 63
- name: "Indian Rupee"
- priority: 100
- iso_code: "INR"
- symbol: "₹"
- subunit: "Paisa"
- subunit_to_unit: 100
- symbol_first: 1
- html_entity: "₹"
- decimal_mark: "."
- thousands_separator: ","
- iso_numeric: 356
- created_at: null
- updated_at: null
}
} - task_proof: [
- {
- id: 1
- image: 1
- image_requried: 0
- signature: 1
- signature_requried: 1
- note: 1
- note_requried: 1
- created_at: null
- updated_at: "2023-03-24T06:08:18.000000Z"
- type: 1
- barcode: 0
- barcode_requried: 0
- otp: 0
- otp_requried: 0
- face: 0
- face_requried: 0
- qrcode: 0
- qrcode_requried: 0
} - {
- id: 2
- image: 1
- image_requried: 0
- signature: 1
- signature_requried: 1
- note: 1
- note_requried: 1
- created_at: null
- updated_at: "2023-03-24T05:57:26.000000Z"
- type: 2
- barcode: 1
- barcode_requried: 0
- otp: 1
- otp_requried: 0
- face: 0
- face_requried: 0
- qrcode: 1
- qrcode_requried: 0
} - {
- id: 3
- image: 0
- image_requried: 0
- signature: 0
- signature_requried: 0
- note: 0
- note_requried: 0
- created_at: null
- updated_at: "2022-07-02T11:20:56.000000Z"
- type: 3
- barcode: 0
- barcode_requried: 0
- otp: 0
- otp_requried: 0
- face: 0
- face_requried: 0
- qrcode: 0
- qrcode_requried: 0
}
] - image_url: "{{{S3Url}}/assets/client_003c58a1/agents641d3fe370610.jpg/a4QNnpqOimv3AnsEeD34HQ28zguSLmEJoTMBZWic.jpg"
- agent_cash_at_hand: -126.10000000000002
- team: {
- id: 72
- name: "Flywheel Team"
- location_accuracy: 1
- location_frequency: 1
} - agent_payment: [
] - wallet: {
- id: 141
- holder_type: "App\Model\Agent"
- holder_id: 141
- name: "Default Wallet"
- slug: "default"
- uuid: "78faf89d-268e-4686-bdd4-f68cbc7a0a5f"
- description: null
- meta: [
] - balance: "31000"
- decimal_places: 2
- created_at: "2023-03-24T06:15:15.000000Z"
- updated_at: "2023-03-24T07:01:26.000000Z"
} - complete_order: [
- {
- id: 1490
- order_number: "47751229"
- customer_id: 52
- driver_id: 141
- scheduled_date_time: null
- key_value_set: null
- conditions_tag_team: null
- conditions_tag_driver: null
- recipient_phone: "0000000000"
- Recipient_email: "admin@example.com"
- task_description: "Order From :Plog Electronics"
- images_array: ""
- auto_alloction: "a"
- order_time: "2023-03-24 07:08:13"
- order_type: "now"
- created_at: "2023-03-24T07:08:13.000000Z"
- updated_at: "2023-03-24T07:11:52.000000Z"
- status: "completed"
- note: ""
- cash_to_be_collected: "185.00"
- base_price: "10.00"
- base_duration: "1"
- base_distance: "2.00"
- base_waiting: "10"
- duration_price: "0.00"
- waiting_price: "8.00"
- distance_fee: "0.00"
- cancel_fee: null
- agent_commission_percentage: 1
- agent_commission_fixed: 1
- freelancer_commission_percentage: 1
- freelancer_commission_fixed: 1
- actual_time: "4.00"
- actual_distance: "1.70"
- order_cost: "10.00"
- driver_cost: "1.10"
- proof_image: null
- proof_signature: null
- unique_id: "mF6SXA"
- net_quantity: null
- call_back_url: "{{DispatchUrl}}/dispatch-order-status-update/97641d4c5daf4ea"
- completion_otp: "53932"
- 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: 7
- order_vendor_id: 8
- sync_order_id: 9
- dbname: "ace"
- vendor_name: null
- toll_fee: "0.00"
- available_seats: 0
- no_seats_for_pooling: 0
- is_cab_pooling: 0
- royo_order_number: null
- fleet_id: null
}
]
} - tasks: [
- {
- 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"
}
}
} - {
- 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"
}
}
}
]
} - 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.