Skip to content

Instantly share code, notes, and snippets.

@lolu-sholar
Created September 13, 2021 13:45
Show Gist options
  • Save lolu-sholar/b364b754d23dbc36466bd512142ceb47 to your computer and use it in GitHub Desktop.
Save lolu-sholar/b364b754d23dbc36466bd512142ceb47 to your computer and use it in GitHub Desktop.
Response from Kwik's create job task endpoint
stdClass Object
(
[message] => Successful
[status] => 200
[data] => stdClass Object
(
[pickups] => Array
(
[0] => stdClass Object
(
[job_id] => 10327
[job_hash] => 9b3128bc6e6e83d9f9cad0d6f47fcf58
[job_token] => 1032716311171562237336
[status] => 1
[auto_assignment_data] => stdClass Object
(
[job_id] => 10327
[broadcast_type] => 2
[expires_in] => 30
[send_to_all_expires_in] => 30
[offline_agents] => 0
[put_agent_busy] => 0
[user_id] => 1
[job_pickup_latitude] => 6.6207922611493
[job_pickup_longitude] => 3.5014258278946
[job_pickup_datetime] => 2021-09-08 17:05
[job_delivery_datetime] => 0000-00-00 00:00:00
[latitude] => 6.6207922611493
[relationship] => 1032716311171562237336
[longitude] => 3.5014258278946
[has_pickup] => 1
[has_delivery] => 1
[accept_button] => 1
[send_push] => 1
[push_msg] => 1 pickups and 1 deliveries are available.
[vertical] => 0
[agent_workflow] => 0
[team_id] => 0
[job_type] => 0
[job_time] => 2021-09-08 17:05
[related_job_count] => 2
[roundRobinConfig] => stdClass Object
(
[broadcast_type] => 2
[is_enabled] => 1
[offline_agents] => 0
[send_to_all_expires_in] => 30
[expires_in] => 30
[startingRadius] => 5
[incRadius] => 1
[radiusLimit] => 10
[batchTime] => 30
[acceptTime] => 30
[batchSize] => 5
[attemptLimit] => 5
[tasks] => 20
[radius] => 10
[retryLimit] => 0
[ride_type] => 0
[put_agent_busy] => 0
[jobAndFleetStatus] => stdClass Object
(
)
[retry] => 0
)
[batchConfig] => stdClass Object
(
[broadcast_type] => 2
[is_enabled] => 1
[offline_agents] => 0
[send_to_all_expires_in] => 30
[expires_in] => 30
[startingRadius] => 5
[incRadius] => 1
[radiusLimit] => 10
[batchTime] => 30
[acceptTime] => 30
[batchSize] => 5
[attemptLimit] => 5
[tasks] => 20
[radius] => 10
[retryLimit] => 0
[ride_type] => 0
[put_agent_busy] => 0
[jobAndFleetStatus] => stdClass Object
(
)
[retry] => 0
)
[agent_offline_time] => 14400
[deliveries] => Array
(
[0] => stdClass Object
(
[job_type] => 1
[job_time] => 2021-09-08 17:05:00
[job_status] => 6
[customer_username] => User 1
[job_address] => Iseyin - Oyo Road, Oyo, Oyo West, Oyo, Nigeria, 211172
[job_latitude] => 6.5978709820423
[job_longitude] => 3.3882418807038
[job_delivery_datetime] => 2021-09-08 17:05:00
[customer_phone] => 08098989091
[is_return_task] => 0
[is_package_insured] => 0
[insurance_amount] => 0
[upto_limit] => 0
)
)
[is_nexus] => 0
[ride_type] => 0
[delivery_instruction] => Hey, please deliver the parcel with safety. Thanks in advance.
[loaders_count] => 0
[delivery_images] => https://s3.ap-south-1.amazonaws.com/kwik-project/task_images/kjjX1603884709732-stripeconnect.png
[sareaId] => 0
[landmark] => -
[payment_method] => 32
[created_by] => 3
[order_id] => 2786
[customer_type] => 1
[access_token] => 1.0c6a29cdab0008011c15283811132d4718e6c4f322
[send_push_to_busy_fleets] => 1
[is_cod_job] => 0
[vehicle_id] => 1
[busy_fleet_minutes] => 4
[isSlaAdded] =>
[team_pool_config_enabled] => -1
[attempt] => 0
[job_lat] => 6.6207922611493
[job_lng] => 3.5014258278946
[start_date] => 2021-09-08T16:05:00.000Z
[start_date_origin] => 2021-09-08T17:05:00.000Z
[end_date] => 2021-09-08T18:05:00.000Z
[allFleets] => Array
(
[0] => stdClass Object
(
[fleet_id] => 923
[fleet_name] => Anne Steven
[fleet_lat] => 6.4935111
[fleet_lng] => 3.3816788
[fleet_distance] => 19.33
[sort] => 11.598
[phone] => +2348143004300
[status] => 1
)
)
[fleets_length] => 1
[timeinseconds] => 30
)
[order_id] => 2786
[result_tracking_link] => https://staging-dashboard.kwik.delivery/tracking/index.html?jobID=9b3128bc6e6e83d9f9cad0d6f47fcf58
[new_agent_task_insertion_data] => Array
(
)
)
)
[deliveries] => Array
(
[0] => stdClass Object
(
[job_id] => 10328
[job_hash] => 25b062304720542e70efaa512fbf948f
[job_token] => 1032716311171562237336
[status] => 1
[auto_assignment_data] => 0
[order_id] => 2786
[result_tracking_link] => https://staging-dashboard.kwik.delivery/tracking/index.html?jobID=25b062304720542e70efaa512fbf948f
[new_agent_task_insertion_data] => Array
(
[0] => stdClass Object
(
[job_id] => 10328
[fleet_ids] => Array
(
)
[fleetNameAndNumber] => Array
(
)
[pickup_delivery_relationship] => 1032716311171562237336
[job_date] => 2021-09-08
[time_in_seconds] => 0
[related_job_count] => 2
[broadcast_type] => 2
[insert_new_task] => 1
)
)
)
)
[unique_order_id] => 10327AE953
[job_status_check_link] => https://staging-api.kwik.delivery/getJobStatus?unique_order_id=10327AE953&customer_id=2786
[contactUs] => stdClass Object
(
[email] => support@kwik.delivery
[phone_no] => +2348090642993
)
[cashback] => 0
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment