User Login
Author: Rohit Agnihotri
67 views
POST
User Login
{{URL}}/api/auth/login
HEADERS
Accept
application/json
None
Content-Type
application/json
None
client
{{CLIENT}}
None
BODY raw
{
"phone_number": "+000000000",
"otp": "652888",
"device_type": "Android",
"device_token": "h78whwyyvfv98vvhvhvhvhrhvhevhervhervhy"
}
Example Request
- User Login
Example Response
{- data: {
- 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:33:31.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: {
- theme: "light"
- distance_unit: "metric"
- currency_id: 63
- language_id: 1
- agent_name: "Driver"
- date_format: "d-m-Y"
- time_format: 24
- map_type: "google_maps"
- map_key_1: "AIzaSyApSRZt-HrKsjH7pQUvme_BVpuIJht0juM"
- custom_mode: "{"show_vehicle_type_icon": "2", "hide_subscription_module": 0, "is_hide_customer_notification": 0}"
- is_cab_pooling_toggle: 1
- 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
}
]
} - 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.