Job Status Update Event Examples

📘

Here is the full example of the event that Radaro sends out when job status is changed

Full job details are inside the order_info dictionary

Token in body

{
    "token": "idrhu3YLjedl202isco5kA",
    "new_values": {"status": "assigned"},
    "old_values": {"status": "not_assigned"},
    "event_type": "updated",
    "topic": "job.status_changed",
    "order_info": {
        "external_id": "external-job-000",
        "deliver_after": null,
        "deliver_before": "2023-06-13T21:22:18.733465+10:00",
        "delivery_interval": null,
        "manager": {
            "member_id": 123127,
            "email": "[email protected]",
            "first_name": "Ann",
            "last_name": "",
            "avatar": null,
            "is_online": false,
            "work_status": "not_working",
            "phone": "+61295071495",
            "thumb_avatar_100x100": null,
            "can_make_payment": true,
            "merchant_position": "Admin Manager",
            "full_name": "Black",
            "role": "Manager"
        },
        "customer": {
            "id": 1,
            "email": "[email protected]",
            "name": "Harrison Wood",
            "phone": "+61295071495"
        },
        "deliver_address": {
            "id": 1,
            "address": "25 Glenferrie Rd, Malvern VIC 3144, Australia",
            "raw_address": "",
            "location": "-37.865322,145.027478",
            "description": ""
        },
        "deliver_address_2": "2nd floor, apartment 12",
        "pickup_address": null,
        "pickup_address_2": "",
        "pickup": null,
        "pickup_after": null,
        "pickup_before": null,
        "confirmation_signature": null,
        "geofence_entered_at": null,
        "geofence_exited_at": null,
        "title": "PO1298371",
        "title_2": "",
        "title_3": "",
        "comment": "",
        "started_at": null,
        "picked_up_at": null,
        "pick_up_distance": null,
        "order_distance": null,
        "status": "assigned",
        "order_id": 194269214,
        "starting_point": {
            "id": 1,
            "address": "25 Glenferrie Rd, Malvern VIC 3144, Australia",
            "raw_address": "",
            "location": "-37.865322,145.027478",
            "description": ""
        },
        "confirmation_comment": null,
        "updated_at": "2022-06-23T21:17:11.375517+10:00",
        "created_at": "2022-06-23T21:17:10.646429+10:00",
        "rating": null,
        "customer_comment": null,
        "pending_comment": null,
        "customer_review_opt_in": false,
        "duration": null,
        "deadline_passed": false,
        "driver": 7946734,
        "merchant": 1,
        "description": "",
        "sub_branding": null,
        "label": null,
        "labels": [],
        "error_code": null,
        "error_comment": null,
        "completion_code": null,
        "completion_codes": [],
        "completion_comment": null,
        "customer_tracking_url": "",
        "is_confirmed_by_customer": false,
        "order_confirmation_photos": [],
        "order_confirmation_documents": [],
        "pre_inspection_comment": null,
        "pre_inspection_signature": null,
        "pre_inspection_photos": [],
        "driver_checklist": null,
        "pre_confirmation_photos": [],
        "pre_confirmation_signature": null,
        "pre_confirmation_comment": null,
        "skill_sets": [],
        "barcodes": [],
        "wayback_point": null,
        "wayback_hub": null,
        "completed_at": null,
        "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,
        "cargoes": {"skids": [], "line_level_data": []},
        "capacity": null,
        "public_report_link": null,
        "optimisation_id": null,
        "enable_rating_reminder": true,
        "custom_redirect_url": true,
        "concatenated_order": null,
        "orders": null,
        "is_concatenated_order": false
    },
    "updated_at": "2022-06-23T21:17:11.309499+10:00"
}

Token in headers

{
    "Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}

Body

{
    "new_values": {"status": "assigned"},
    "old_values": {"status": "not_assigned"},
    "event_type": "updated",
    "topic": "job.status_changed",
    "order_info": {
        "external_id": "external-job-000",
        "deliver_after": null,
        "deliver_before": "2023-06-13T21:22:18.733465+10:00",
        "delivery_interval": null,
        "manager": {
            "member_id": 123127,
            "email": "[email protected]",
            "first_name": "Ann",
            "last_name": "",
            "avatar": null,
            "is_online": false,
            "work_status": "not_working",
            "phone": "+61295071495",
            "thumb_avatar_100x100": null,
            "can_make_payment": true,
            "merchant_position": "Admin Manager",
            "full_name": "Black",
            "role": "Manager"
        },
        "customer": {
            "id": 1,
            "email": "[email protected]",
            "name": "Harrison Wood",
            "phone": "+61295071495"
        },
        "deliver_address": {
            "id": 1,
            "address": "25 Glenferrie Rd, Malvern VIC 3144, Australia",
            "raw_address": "",
            "location": "-37.865322,145.027478",
            "description": ""
        },
        "deliver_address_2": "2nd floor, apartment 12",
        "pickup_address": null,
        "pickup_address_2": "",
        "pickup": null,
        "pickup_after": null,
        "pickup_before": null,
        "confirmation_signature": null,
        "geofence_entered_at": null,
        "geofence_exited_at": null,
        "title": "PO1298371",
        "title_2": "",
        "title_3": "",
        "comment": "",
        "started_at": null,
        "picked_up_at": null,
        "pick_up_distance": null,
        "order_distance": null,
        "status": "assigned",
        "order_id": 194269214,
        "starting_point": {
            "id": 1,
            "address": "25 Glenferrie Rd, Malvern VIC 3144, Australia",
            "raw_address": "",
            "location": "-37.865322,145.027478",
            "description": ""
        },
        "confirmation_comment": null,
        "updated_at": "2022-06-23T21:17:11.375517+10:00",
        "created_at": "2022-06-23T21:17:10.646429+10:00",
        "rating": null,
        "customer_comment": null,
        "pending_comment": null,
        "customer_review_opt_in": false,
        "duration": null,
        "deadline_passed": false,
        "driver": 7946734,
        "merchant": 1,
        "description": "",
        "sub_branding": null,
        "label": null,
        "labels": [],
        "error_code": null,
        "error_comment": null,
        "completion_code": null,
        "completion_codes": [],
        "completion_comment": null,
        "customer_tracking_url": "",
        "is_confirmed_by_customer": false,
        "order_confirmation_photos": [],
        "order_confirmation_documents": [],
        "pre_inspection_comment": null,
        "pre_inspection_signature": null,
        "pre_inspection_photos": [],
        "driver_checklist": null,
        "pre_confirmation_photos": [],
        "pre_confirmation_signature": null,
        "pre_confirmation_comment": null,
        "skill_sets": [],
        "barcodes": [],
        "wayback_point": null,
        "wayback_hub": null,
        "completed_at": null,
        "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,
        "cargoes": {"skids": [], "line_level_data": []},
        "capacity": null,
        "public_report_link": null,
        "optimisation_id": null,
        "enable_rating_reminder": true,
        "custom_redirect_url": true,
        "concatenated_order": null,
        "orders": null,
        "is_concatenated_order": false
    },
    "updated_at": "2022-06-23T21:17:11.309499+10:00"
}

📘

When a new job is created, the webhook event will be marked with "event_type": "created".

Token in body

{
    "token": "idrhu3YLjedl202isco5kA",
    "new_values": null,
    "old_values": null,
    "event_type": "created",
    "topic": "job.status_changed",
    "order_info": {
        "external_id": null,
        "deliver_after": null,
        "deliver_before": "2022-06-22T13:00:00+10:00",
        "delivery_interval": null,
        "manager": {
            "member_id": 123127,
            "email": "[email protected]",
            "first_name": "Anna",
            "last_name": "Manager",
            "avatar": null,
            "is_online": false,
            "work_status": "not_working",
            "phone": "+61295071495",
            "thumb_avatar_100x100": "http://radaro.com.au/media/",
            "can_make_payment": true,
            "merchant_position": "Admin Manager",
            "full_name": "Anna Manager",
            "role": "Manager"
        },
        "customer": {
            "id": 3,
            "email": "",
            "name": "Harrison Wood",
            "phone": ""
        },
        "deliver_address": {
            "id": 2,
            "address": "12.123123, 33.123123",
            "raw_address": "",
            "location": "12.123123, 33.123123",
            "description": ""
        },
        "deliver_address_2": "",
        "pickup_address": null,
        "pickup": null,
        "pickup_after": null,
        "pickup_before": null,
        "confirmation_signature": null,
        "geofence_entered_at": null,
        "geofence_exited_at": null,
        "title": "PO7654326",
        "title_2": "",
        "title_3": "",
        "comment": "37\n,\n3343830956,2021/09/26 00:00",
        "started_at": null,
        "picked_up_at": null,
        "pick_up_distance": null,
        "order_distance": null,
        "status": "not_assigned",
        "order_id": 108529405,
        "starting_point": null,
        "confirmation_comment": null,
        "updated_at": "2022-06-22T10:00:00+10:00",
        "created_at": "2022-06-22T10:00:00+10:00",
        "rating": null,
        "customer_comment": null,
        "pending_comment": null,
        "customer_review_opt_in": false,
        "duration": null,
        "deadline_passed": false,
        "driver": null,
        "merchant": 1,
        "description": "**Markdown description**",
        "sub_branding": 123,
        "label": 5,
        "labels": [5],
        "error_code": null,
        "error_comment": null,
        "completion_code": null,
        "completion_codes": [],
        "completion_comment": null,
        "customer_tracking_url": "",
        "is_confirmed_by_customer": false,
        "order_confirmation_photos": [],
        "order_confirmation_documents": [],
        "pre_inspection_comment": null,
        "pre_inspection_signature": null,
        "pre_inspection_photos": [],
        "driver_checklist": null,
        "pre_confirmation_photos": [],
        "pre_confirmation_signature": null,
        "pre_confirmation_comment": null,
        "skill_sets": [],
        "barcodes": [],
        "wayback_point": null,
        "wayback_hub": null,
        "completed_at": null,
        "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,
        "cargoes": {
            "skids": [],
            "line_level_data": []
        },
        "capacity": null,
        "public_report_link": null,
        "optimisation_id": null,
        "enable_rating_reminder": true,
        "custom_redirect_url": true,
        "concatenated_order": null,
        "orders": null,
        "is_concatenated_order": false
    },
    "updated_at": "2022-06-22T10:00:00+10:00"
}

Token in headers

{
    "Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}

Body

{
    "new_values": null,
    "old_values": null,
    "event_type": "created",
    "topic": "job.status_changed",
    "order_info": {
        "external_id": null,
        "deliver_after": null,
        "deliver_before": "2022-06-22T13:00:00+10:00",
        "delivery_interval": null,
        "manager": {
            "member_id": 123127,
            "email": "[email protected]",
            "first_name": "Anna",
            "last_name": "Manager",
            "avatar": null,
            "is_online": false,
            "work_status": "not_working",
            "phone": "+61295071495",
            "thumb_avatar_100x100": "http://radaro.com.au/media/",
            "can_make_payment": true,
            "merchant_position": "Admin Manager",
            "full_name": "Anna Manager",
            "role": "Manager"
        },
        "customer": {
            "id": 3,
            "email": "",
            "name": "Harrison Wood",
            "phone": ""
        },
        "deliver_address": {
            "id": 2,
            "address": "12.123123, 33.123123",
            "raw_address": "",
            "location": "12.123123, 33.123123",
            "description": ""
        },
        "deliver_address_2": "",
        "pickup_address": null,
        "pickup": null,
        "pickup_after": null,
        "pickup_before": null,
        "confirmation_signature": null,
        "geofence_entered_at": null,
        "geofence_exited_at": null,
        "title": "PO7654326",
        "title_2": "",
        "title_3": "",
        "comment": "37\n,\n3343830956,2021/09/26 00:00",
        "started_at": null,
        "picked_up_at": null,
        "pick_up_distance": null,
        "order_distance": null,
        "status": "not_assigned",
        "order_id": 108529405,
        "starting_point": null,
        "confirmation_comment": null,
        "updated_at": "2022-06-22T10:00:00+10:00",
        "created_at": "2022-06-22T10:00:00+10:00",
        "rating": null,
        "customer_comment": null,
        "pending_comment": null,
        "customer_review_opt_in": false,
        "duration": null,
        "deadline_passed": false,
        "driver": null,
        "merchant": 1,
        "description": "**Markdown description**",
        "sub_branding": 123,
        "label": 5,
        "labels": [5],
        "error_code": null,
        "error_comment": null,
        "completion_code": null,
        "completion_codes": [],
        "completion_comment": null,
        "customer_tracking_url": "",
        "is_confirmed_by_customer": false,
        "order_confirmation_photos": [],
        "order_confirmation_documents": [],
        "pre_inspection_comment": null,
        "pre_inspection_signature": null,
        "pre_inspection_photos": [],
        "driver_checklist": null,
        "pre_confirmation_photos": [],
        "pre_confirmation_signature": null,
        "pre_confirmation_comment": null,
        "skill_sets": [],
        "barcodes": [],
        "wayback_point": null,
        "wayback_hub": null,
        "completed_at": null,
        "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,
        "cargoes": {
            "skids": [],
            "line_level_data": []
        },
        "capacity": null,
        "public_report_link": null,
        "optimisation_id": null,
        "enable_rating_reminder": true,
        "custom_redirect_url": true,
        "concatenated_order": null,
        "orders": null,
        "is_concatenated_order": false
    },
    "updated_at": "2022-06-22T10:00:00+10:00"
}

📘

When customer leaves the job's rating/comment, Radaro will send event to the webhook URL.

Token in body

{
    "token": "mk2X9HokCu9yrLwhM_wtyw",
    "new_values": {"is_confirmed_by_customer": true},
    "old_values": {"is_confirmed_by_customer": false},
    "event_type": "updated",
    "topic": "job.status_changed",
    "order_info": {
        "external_id": null,
        "deliver_after": null,
        "deliver_before": "2022-06-21T13:00:00+10:00",
        "delivery_interval": null,
        "manager": {
            "member_id": 58791479,
            "email": "[email protected]",
            "first_name": "Radaro",
            "last_name": "Test",
            "avatar": "path/to/avatar",
            "is_online": false,
            "work_status": "not_working",
            "phone": "+61270102442",
            "thumb_avatar_100x100": "path/to/thumb/avatar",
            "can_make_payment": false,
            "merchant_position": "Manager",
            "full_name": "Radaro Test",
            "role": "Manager"
        },
        "customer": {
            "id": 8767,
            "email": "[email protected]",
            "name": "Elizabeth Smith",
            "phone": null
        },
        "deliver_address": {
            "id": 43627,
            "address": "Brighton East VIC 3187, Australia",
            "raw_address": "",
            "location": "-37.925304, 145.023401",
            "description": ""
        },
        "deliver_address_2": "",
        "pickup_address": null,
        "pickup": null,
        "pickup_after": null,
        "pickup_before": null,
        "confirmation_signature": null,
        "geofence_entered_at": null,
        "geofence_exited_at": null,
        "title": "PO9765478",
        "title_2": "",
        "title_3": "",
        "comment": "",
        "started_at": "2022-06-21T10:05:00+10:00",
        "picked_up_at": null,
        "pick_up_distance": null,
        "order_distance": 0,
        "status": "delivered",
        "order_id": 170368980,
        "starting_point": {
            "id": 10905,
            "address": "-37.917443, 145.039647",
            "raw_address": "",
            "location": "-37.917443, 145.039647",
            "description": ""
        },
        "confirmation_comment": null,
        "updated_at": "2022-06-21T10:10:00+10:00",
        "created_at": "2022-06-21T10:00:00+10:00",
        "rating": 3,
        "customer_comment": "Customer Comment",
        "pending_comment": null,
        "customer_review_opt_in": true,
        "duration": "00:05:00",
        "deadline_passed": false,
        "driver": 1,
        "merchant": 1,
        "description": "",
        "sub_branding": null,
        "label": null,
        "labels": [],
        "error_code": null,
        "error_comment": null,
        "completion_code": null,
        "completion_codes": [],
        "completion_comment": null,
        "customer_tracking_url": "path/to/customer/tracking",
        "is_confirmed_by_customer": true,
        "order_confirmation_photos": [],
        "order_confirmation_documents": [],
        "pre_inspection_comment": null,
        "pre_inspection_signature": null,
        "pre_inspection_photos": [],
        "driver_checklist": null,
        "pre_confirmation_photos": [],
        "pre_confirmation_signature": null,
        "pre_confirmation_comment": null,
        "skill_sets": [],
        "barcodes": [],
        "wayback_point": null,
        "wayback_hub": null,
        "completed_at": "2022-06-21T10:10:00+10:00",
        "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,
        "cargoes": {
            "skids": [],
            "line_level_data": []
        },
        "capacity": null,
        "public_report_link": "",
        "optimisation_id": null,
        "enable_rating_reminder": true,
        "custom_redirect_url": true,
        "concatenated_order": null,
        "orders": null,
        "is_concatenated_order": false
    },
    "updated_at": "2022-06-23T21:57:53.511912+10:00"
}

Token in headers

{
    "Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}

Body

{
    "new_values": {"is_confirmed_by_customer": true},
    "old_values": {"is_confirmed_by_customer": false},
    "event_type": "updated",
    "topic": "job.status_changed",
    "order_info": {
        "external_id": null,
        "deliver_after": null,
        "deliver_before": "2022-06-21T13:00:00+10:00",
        "delivery_interval": null,
        "manager": {
            "member_id": 58791479,
            "email": "[email protected]",
            "first_name": "Radaro",
            "last_name": "Test",
            "avatar": "path/to/avatar",
            "is_online": false,
            "work_status": "not_working",
            "phone": "+61270102442",
            "thumb_avatar_100x100": "path/to/thumb/avatar",
            "can_make_payment": false,
            "merchant_position": "Manager",
            "full_name": "Radaro Test",
            "role": "Manager"
        },
        "customer": {
            "id": 8767,
            "email": "[email protected]",
            "name": "Elizabeth Smith",
            "phone": null
        },
        "deliver_address": {
            "id": 43627,
            "address": "Brighton East VIC 3187, Australia",
            "raw_address": "",
            "location": "-37.925304, 145.023401",
            "description": ""
        },
        "deliver_address_2": "",
        "pickup_address": null,
        "pickup": null,
        "pickup_after": null,
        "pickup_before": null,
        "confirmation_signature": null,
        "geofence_entered_at": null,
        "geofence_exited_at": null,
        "title": "PO9765478",
        "title_2": "",
        "title_3": "",
        "comment": "",
        "started_at": "2022-06-21T10:05:00+10:00",
        "picked_up_at": null,
        "pick_up_distance": null,
        "order_distance": 0,
        "status": "delivered",
        "order_id": 170368980,
        "starting_point": {
            "id": 10905,
            "address": "-37.917443, 145.039647",
            "raw_address": "",
            "location": "-37.917443, 145.039647",
            "description": ""
        },
        "confirmation_comment": null,
        "updated_at": "2022-06-21T10:10:00+10:00",
        "created_at": "2022-06-21T10:00:00+10:00",
        "rating": 3,
        "customer_comment": "Customer Comment",
        "pending_comment": null,
        "customer_review_opt_in": true,
        "duration": "00:05:00",
        "deadline_passed": false,
        "driver": 1,
        "merchant": 1,
        "description": "",
        "sub_branding": null,
        "label": null,
        "labels": [],
        "error_code": null,
        "error_comment": null,
        "completion_code": null,
        "completion_codes": [],
        "completion_comment": null,
        "customer_tracking_url": "path/to/customer/tracking",
        "is_confirmed_by_customer": true,
        "order_confirmation_photos": [],
        "order_confirmation_documents": [],
        "pre_inspection_comment": null,
        "pre_inspection_signature": null,
        "pre_inspection_photos": [],
        "driver_checklist": null,
        "pre_confirmation_photos": [],
        "pre_confirmation_signature": null,
        "pre_confirmation_comment": null,
        "skill_sets": [],
        "barcodes": [],
        "wayback_point": null,
        "wayback_hub": null,
        "completed_at": "2022-06-21T10:10:00+10:00",
        "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,
        "cargoes": {
            "skids": [],
            "line_level_data": []
        },
        "capacity": null,
        "public_report_link": "",
        "optimisation_id": null,
        "enable_rating_reminder": true,
        "custom_redirect_url": true,
        "concatenated_order": null,
        "orders": null,
        "is_concatenated_order": false
    },
    "updated_at": "2022-06-23T21:57:53.511912+10:00"
}