Skip to content

Assign Driver

Request

In this request you can use PUT method instead of PATCH.

Security
key
Path
idstringrequired

Job ID required for lookup (Radaro Job ID or external job ID depending on the lookup field).

Query
lookup_fieldstring

Field name for job lookup.

Default:"external_id"
Enum:"external_id""order_id"
Bodyapplication/json
driverinteger, (int32)

Driver's member_id.

Default:null
curl -i -X PATCH \
  'https://developer.radaro.com.au/_mock/split-external-api/api/webhooks/jobs/{id}/assign/?lookup_field=external_id&key=YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "driver": 324543
  }'

Responses

200

Bodyapplication/json
deliver_afterany
deliver_beforestring
Example:"2020-11-15T13:54:14.748154Z"
managerobject
customerobject
deliver_addressobject
deliver_address_2string
Example:"2nd floor, apartment 12"
pickup_afterany
pickup_beforeany
pickup_addressany
pickup_address_2any
pickupany
delivery_intervalany
starting_pointany
confirmation_signatureany
geofence_entered_atany
geofence_exited_atany
titlestring
Example:"PO1298371"
title_2string
Example:""
title_3string
Example:""
commentstring
Example:"37\n,\n3343830956,2021/09/26 00:00"
started_atany
order_distanceany
statusstring
Example:"not_assigned"
order_idinteger
Default:0
Example:12109601
confirmation_commentany
updated_atstring
Example:"2020-11-15T10:54:15.139140Z"
created_atstring
Example:"2020-11-15T10:54:15.139291Z"
ratingany
customer_commentany
pending_commentany
durationany
deadline_passedboolean
Default:true
Example:false
external_idstring
Example:"2345"
driverinteger
Default:0
Example:324543
merchantinteger
Default:0
Example:1
descriptionstring
Example:"**One pizza without cheese**"
sub_brandinginteger
Default:0
Example:123
labelinteger
Default:0
Example:5
labelsArray of integers
skill_setsArray of objects
error_codeany
error_commentany
customer_tracking_urlstring
Example:""
order_confirmation_photosArray of objects
order_confirmation_documentsArray of objects
pre_inspection_commentany
pre_inspection_signatureany
pre_inspection_photosArray of objects
pre_confirmation_commentany
pre_confirmation_signatureany
pre_confirmation_photosArray of objects
completion_codeany
completion_commentany
driver_checklistobject
barcodesArray of objects
pickup_geofence_entered_atany
pickup_geofence_exited_atany
pick_up_confirmation_photosany
pick_up_confirmation_signatureany
pick_up_confirmation_commentany
capacityany
optimisation_idany
enable_rating_reminderboolean
Default:true
Example:true
custom_redirect_urlany
concatenated_orderobject
Response
{ "deliver_after": null, "deliver_before": "2020-11-15T13:54:14.748154Z", "manager": { "member_id": 123127, "email": "johndoe@gmail.com", "first_name": "", "last_name": "", "avatar": null, "is_online": true, "phone": "+61400000000", "thumb_avatar_100x100": null, "can_make_payment": true, "merchant_position": "Admin Manager", "full_name": "" }, "customer": { "email": "", "name": "John Doe", "phone": "" }, "deliver_address": { "address": "", "location": "-37.813600,144.963100", "description": "" }, "deliver_address_2": "2nd floor, apartment 12", "pickup_after": null, "pickup_before": null, "pickup_address": null, "pickup_address_2": null, "pickup": null, "delivery_interval": null, "starting_point": null, "confirmation_signature": null, "geofence_entered_at": null, "geofence_exited_at": null, "title": "PO1298371", "title_2": "", "title_3": "", "comment": "37\n,\n3343830956,2021/09/26 00:00", "started_at": null, "order_distance": null, "status": "assigned", "order_id": 12109601, "confirmation_comment": null, "updated_at": "2020-11-15T10:54:15.139140Z", "created_at": "2020-11-15T10:54:15.139291Z", "rating": null, "customer_comment": null, "pending_comment": null, "duration": null, "deadline_passed": false, "external_id": "2345", "driver": 324543, "merchant": 1, "description": "**One pizza without cheese**", "sub_branding": 123, "error_code": null, "error_comment": null, "customer_tracking_url": "", "order_confirmation_photos": [], "order_confirmation_documents": [], "pre_inspection_comment": null, "pre_inspection_signature": null, "pre_inspection_photos": [], "pre_confirmation_comment": null, "pre_confirmation_signature": null, "pre_confirmation_photos": [], "completion_code": null, "completion_comment": null, "driver_checklist": { "is_correct": null, "checklist_confirmed": false, "checklist_passed": false }, "barcodes": [ { … }, { … }, { … } ], "pickup_geofence_entered_at": null, "pickup_geofence_exited_at": null, "pick_up_confirmation_photos": null, "pick_up_confirmation_signature": null, "pick_up_confirmation_comment": null, "capacity": null, "optimisation_id": null, "enable_rating_reminder": true, "custom_redirect_url": null, "concatenated_order": { "order_id": 173754344, "external_id": null } }