# 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

Endpoint: POST job.status_changed
Version: 1.0
Security: key

## Security:

  - `key` (unknown)
    apiKey in query key

## Request fields (application/json):

  - `new_values` (object)

  - `old_values` (object)

  - `event_type` (string)
    Example: updated

  - `topic` (string)
    Example: job.status_changed

  - `order_info` (object)

  - `order_info.deliver_after` (string)
    Example: 2020-11-15T13:54:14.748154Z

  - `order_info.deliver_before` (string)
    Example: 2020-11-15T13:54:14.748154Z

  - `order_info.manager` (object)

  - `order_info.manager.member_id` (integer)
    Example: 123127

  - `order_info.manager.email` (string)
    Example: johndoe@gmail.com

  - `order_info.manager.first_name` (string)

  - `order_info.manager.last_name` (string)

  - `order_info.manager.avatar` (any)

  - `order_info.manager.is_online` (boolean)
    Example: true

  - `order_info.manager.phone` (string)
    Example: +61400000000

  - `order_info.manager.thumb_avatar_100x100` (string)
    Example: http://example.com/media/

  - `order_info.manager.can_make_payment` (boolean)
    Example: true

  - `order_info.manager.merchant_position` (string)
    Example: Admin Manager

  - `order_info.manager.full_name` (string)

  - `order_info.manager.work_status` (string)
    Example: not_working

  - `order_info.manager.role` (string)
    Example: Manager

  - `order_info.customer` (object)

  - `order_info.customer.id` (integer)
    Example: 1

  - `order_info.customer.email` (string)

  - `order_info.customer.name` (string)
    Example: John Doe

  - `order_info.customer.phone` (string)
    Example: +61400000000

  - `order_info.deliver_address` (object)

  - `order_info.deliver_address.id` (integer)
    Example: 1

  - `order_info.deliver_address.address` (string)

  - `order_info.deliver_address.raw_address` (string)

  - `order_info.deliver_address.location` (string)
    Example: -37.813600,144.963100

  - `order_info.deliver_address.post_code` (string)
    Example: 001234

  - `order_info.deliver_address.description` (string)

  - `order_info.deliver_address.secondary_address` (string)

  - `order_info.deliver_address.quality` (object)

  - `order_info.deliver_address.quality.fieldScore` (object)

  - `order_info.deliver_address.quality.fieldScore.streets` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.houseNumber` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.building` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.subblock` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.block` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.subdistrict` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.district` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.city` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.county` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.state` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.country` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.postalCode` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.countryCode` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.stateCode` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.countyCode` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.unit` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.placeName` (integer)
    Example: 1

  - `order_info.deliver_address.quality.fieldScore.ontologyName` (integer)
    Example: 1

  - `order_info.deliver_address.quality.queryScore` (integer)
    Example: 1

  - `order_info.deliver_address_2` (string)
    Example: 2nd floor, apartment 12

  - `order_info.delivery_zone` (integer)
    Example: 123

  - `order_info.pickup_after` (string)
    Example: 2020-11-15T13:54:14.748154Z

  - `order_info.pickup_before` (string)
    Example: 2020-11-15T13:54:14.748154Z

  - `order_info.pickup_address` (object)

  - `order_info.pickup_address.address` (string)
    Example: 1 Example St, Melbourne VIC 3000, Australia

  - `order_info.pickup_address.location` (string)
    Example: -37.813600,144.963100

  - `order_info.pickup_address.description` (string)
    Example: Here is pickup

  - `order_info.pickup_address.post_code` (string)
    Example: 80-111

  - `order_info.pickup_address_2` (string)
    Example: 2nd floor, apartment 12

  - `order_info.pickup` (any)

  - `order_info.delivery_interval` (object)

  - `order_info.delivery_interval.upper` (string)
    Example: 2025-10-18T03:00:00+11:00

  - `order_info.delivery_interval.lower` (string)
    Example: 2025-10-18T01:00:00+11:00

  - `order_info.delivery_interval.bounds` (string)
    Example: [)

  - `order_info.starting_point` (any)

  - `order_info.confirmation_signature` (string)
    Example: /path/to/confirmation/signature

  - `order_info.geofence_entered_at` (string)
    Example: 2020-02-06T010:00:00Z

  - `order_info.geofence_exited_at` (string)
    Example: 2020-02-06T011:00:00Z

  - `order_info.title` (string)
    Example: PO1298371

  - `order_info.title_2` (string)

  - `order_info.title_3` (string)

  - `order_info.comment` (string)
    Example: 37
,
3343830956,2021/09/26 00:00

  - `order_info.started_at` (string)
    Example: 2020-02-06T009:30:00Z

  - `order_info.order_distance` (any)

  - `order_info.status` (string)
    Example: pending

  - `order_info.order_id` (integer)
    Example: 12109601

  - `order_info.confirmation_comment` (string)
    Example: Comment

  - `order_info.updated_at` (string)
    Example: 2020-11-15T10:54:15.139140Z

  - `order_info.created_at` (string)
    Example: 2020-11-15T10:54:15.139291Z

  - `order_info.rating` (any)

  - `order_info.customer_comment` (string)
    Example: Comment

  - `order_info.pending_comment` (string)
    Example: 2nd floor

  - `order_info.duration` (string)
    Example: 00:10:00

  - `order_info.deadline_passed` (boolean)
    Example: false

  - `order_info.external_id` (string)
    Example: 2345

  - `order_info.driver` (integer)
    Example: 342453

  - `order_info.merchant` (integer)
    Example: 1

  - `order_info.description` (string)
    Example: **One pizza without cheese**

  - `order_info.sub_branding` (integer)
    Example: 123

  - `order_info.label` (integer)
    Example: 5

  - `order_info.labels` (array)

  - `order_info.skill_sets` (array)

  - `order_info.error_code` (any)

  - `order_info.error_comment` (string)
    Example: Error comment

  - `order_info.customer_tracking_url` (string)

  - `order_info.order_confirmation_photos` (array)

  - `order_info.order_confirmation_documents` (array)

  - `order_info.order_confirmation_documents.id` (integer)
    Example: 11

  - `order_info.order_confirmation_documents.document` (string)
    Example: http://example.com/media/OrderConfirmationDocument/80eece96-fe14-4ec4-bde6-31d62cb9a003.pdf

  - `order_info.order_confirmation_documents.name` (string)
    Example: Job-ID-14312344_Custom-document_15-05-2020-16.3

  - `order_info.order_confirmation_documents.tags` (array)

  - `order_info.order_confirmation_documents.tags.id` (integer)
    Example: 3

  - `order_info.order_confirmation_documents.tags.name` (string)
    Example: Proof of Delivery

  - `order_info.order_pickup_confirmation_documents` (array)

  - `order_info.order_pickup_confirmation_documents.id` (integer)
    Example: 11

  - `order_info.order_pickup_confirmation_documents.document` (string)
    Example: http://example.com/media/OrderPickupConfirmationDocument/80eece96-fe14-4ec4-bde6-31d62cb9a003.pdf

  - `order_info.order_pickup_confirmation_documents.name` (string)
    Example: Job-ID-14312344_Custom-document_15-05-2020-16.3

  - `order_info.order_pickup_confirmation_documents.tags` (array)

  - `order_info.order_pickup_confirmation_documents.tags.id` (integer)
    Example: 3

  - `order_info.order_pickup_confirmation_documents.tags.name` (string)
    Example: Proof of Delivery

  - `order_info.pre_inspection_comment` (any)

  - `order_info.pre_inspection_signature` (any)

  - `order_info.pre_inspection_photos` (array)

  - `order_info.pre_confirmation_comment` (any)

  - `order_info.pre_confirmation_signature` (any)

  - `order_info.pre_confirmation_photos` (array)

  - `order_info.completion_code` (any)

  - `order_info.completion_comment` (string)
    Example: Completion comment

  - `order_info.pickup_completion_comment` (string)
    Example: Completion comment

  - `order_info.driver_checklist` (object)

  - `order_info.driver_checklist.is_correct` (any)

  - `order_info.driver_checklist.checklist_confirmed` (boolean)
    Example: false

  - `order_info.driver_checklist.checklist_passed` (boolean)
    Example: false

  - `order_info.driver_pickup_checklist` (object)

  - `order_info.driver_pickup_checklist.is_correct` (any)

  - `order_info.driver_pickup_checklist.checklist_confirmed` (boolean)
    Example: false

  - `order_info.driver_pickup_checklist.checklist_passed` (boolean)
    Example: false

  - `order_info.barcodes` (array)

  - `order_info.barcodes.id` (integer)
    Example: 249

  - `order_info.barcodes.code_data` (string)
    Example: aGVsbG8gd29ybGQh

  - `order_info.barcodes.scanned` (boolean)
    Example: false

  - `order_info.barcodes.required` (boolean)
    Example: true

  - `order_info.barcodes.comment` (string)

  - `order_info.barcodes.created_by_driver` (boolean)
    Example: false

  - `order_info.barcodes.scanned_upon_delivery` (boolean)
    Example: false

  - `order_info.barcodes.scanned_at_the_warehouse` (boolean)
    Example: false

  - `order_info.pickup_geofence_entered_at` (string)
    Example: 2020-02-06T010:00:00Z

  - `order_info.pickup_geofence_exited_at` (string)
    Example: 2020-02-06T011:00:00Z

  - `order_info.pick_up_confirmation_photos` (any)

  - `order_info.pick_up_confirmation_signature` (any)

  - `order_info.pick_up_confirmation_comment` (any)

  - `order_info.capacity` (number)
    Example: 1.13

  - `order_info.capacity_2` (number)
    Example: 5.22

  - `order_info.capacity_3` (number)
    Example: 6.78

  - `order_info.optimisation_id` (any)

  - `order_info.enable_rating_reminder` (boolean)
    Example: true

  - `order_info.custom_redirect_url` (string)
    Example: https://example.com/

  - `order_info.concatenated_order` (object)

  - `order_info.concatenated_order.order_id` (integer)
    Example: 173754344

  - `order_info.concatenated_order.external_id` (any)

  - `order_info.priority` (integer | null)
    Example: 1

  - `order_info.territory` (integer)
    Example: 2

  - `order_info.delivery_receiver_name` (string)
    Example: John Doe

  - `order_info.pickup_receiver_name` (string)
    Example: John Doe

  - `order_info.pickup_acknowledgment_passed` (boolean)
    Example: false

  - `order_info.delivery_acknowledgment_passed` (boolean)
    Example: false

  - `order_info.pre_inspection_videos` (array)

  - `order_info.pre_inspection_videos.url` (string, required)

  - `order_info.pre_inspection_videos.content_type` (string, required)
    MIME type of the uploaded video

  - `order_info.pre_inspection_videos.size_bytes` (integer, required)
    Size of the video file in bytes

  - `order_info.pre_inspection_videos.duration_seconds` (string | null, required)
    Video duration in seconds, decimal number with 2 decimal places. `null` if the duration was not provided on upload

  - `order_info.pre_inspection_videos.created_at` (string, required)

  - `order_info.picked_up_at` (string)
    Example: 2020-07-30T12:20:15.357123+10:00

  - `order_info.completed_at` (any)

  - `order_info.pick_up_distance` (any)

  - `order_info.public_report_link` (any)

  - `order_info.customer_review_opt_in` (boolean)
    Example: false

  - `order_info.is_confirmed_by_customer` (boolean)
    Example: false

  - `order_info.is_concatenated_order` (boolean)
    Example: false

  - `order_info.wayback_point` (any)

  - `order_info.wayback_hub` (object)

  - `order_info.wayback_hub.id` (integer)
    Example: 3

  - `order_info.wayback_hub.name` (string)
    Example: Hub #3

  - `order_info.wayback_hub.phone` (string)
    Example: +61400000000

  - `order_info.wayback_hub.merchant` (integer)
    Example: 1

  - `order_info.wayback_hub.location` (object)

  - `order_info.wayback_hub.location.id` (integer)
    Example: 143

  - `order_info.wayback_hub.location.address` (string)
    Example: 1 Example St, Melbourne VIC 3000, Australia

  - `order_info.wayback_hub.location.location` (string)
    Example: -37.813600,144.963100

  - `order_info.wayback_hub.location.description` (string)

  - `order_info.cargoes` (object)

  - `order_info.cargoes.skids` (array)

  - `order_info.cargoes.skids.id` (integer, required)
    ID of an existing SKID of this job

  - `order_info.cargoes.skids.name` (string, required)

  - `order_info.cargoes.skids.quantity` (integer, required)

  - `order_info.cargoes.skids.weight` (object, required)

  - `order_info.cargoes.skids.sizes` (object, required)

  - `order_info.cargoes.skids.driver_changes` (string | null, required)
    Change made to the SKID by the driver
    Enum: "added", "edited", "deleted", "null"

  - `order_info.cargoes.skids.original_skid` (object | null, required)
    SKID data (`name`, `quantity`, `weight`, `sizes`) before the driver's change

  - `order_info.cargoes.line_level_data` (array)

  - `order_info.cargoes.line_level_data.id` (integer, required)
    ID of an existing line level data item of this job

  - `order_info.cargoes.line_level_data.code` (string | null, required)

  - `order_info.cargoes.line_level_data.description` (string, required)

  - `order_info.cargoes.line_level_data.weight` (object, required)

  - `order_info.cargoes.line_level_data.weight.unit` (string)
    Taken from the merchant's line level data settings
    Enum: "kg", "lb"

  - `order_info.cargoes.line_level_data.dimensions` (object | null, required)
    `null` when dimensions are disabled in the merchant's line level data settings. Each disabled dimension is returned as `null`

  - `order_info.cargoes.line_level_data.dimensions.unit` (string)
    Taken from the merchant's line level data settings
    Enum: "cm", "in"

  - `order_info.cargoes.line_level_data.price` (object, required)

  - `order_info.cargoes.line_level_data.price.currency` (string)
    Taken from the merchant's line level data settings

  - `order_info.cargoes.line_level_data.bulk_quantity_picked_up` (integer | null, required)

  - `order_info.cargoes.line_level_data.bulk_quantity_delivered` (integer | null, required)

  - `order_info.cargoes.line_level_data.line_id` (integer, required)
    Sequential number of the item within the job, assigned automatically

  - `order_info.cargoes.line_level_data.picked_up` (boolean | null, required)

  - `order_info.cargoes.line_level_data.delivered` (boolean | null, required)

  - `order_info.cargoes.line_level_data.original_lld` (object | null, required)
    Line level data (`weight`, `dimensions`, `price`, `bulk_quantity_picked_up`, `bulk_quantity_delivered`) before the driver's change

  - `order_info.cargoes.line_level_data.picked_up_reason` (object | null, required)
    `null` when there are no reason codes and no comment

  - `order_info.cargoes.line_level_data.picked_up_reason.codes` (array)

  - `order_info.cargoes.line_level_data.picked_up_reason.codes.code` (integer)

  - `order_info.cargoes.line_level_data.picked_up_reason.codes.name` (string)

  - `order_info.cargoes.line_level_data.picked_up_reason.codes.type` (string)
    Enum: "fail", "success"

  - `order_info.cargoes.line_level_data.picked_up_reason.comment` (string | null)

  - `order_info.cargoes.line_level_data.delivered_reason` (object | null, required)
    `null` when there are no reason codes and no comment

  - `order_info.cargoes.line_level_data.delivered_reason.codes` (array)

  - `order_info.cargoes.line_level_data.delivered_reason.codes.code` (integer)

  - `order_info.cargoes.line_level_data.delivered_reason.codes.name` (string)

  - `order_info.cargoes.line_level_data.delivered_reason.codes.type` (string)
    Enum: "fail", "success"

  - `order_info.cargoes.line_level_data.delivered_reason.comment` (string | null)

  - `order_info.completion_codes` (array)

  - `order_info.completion_codes.code` (integer)
    Example: 201

  - `order_info.completion_codes.type` (string)
    Example: success

  - `order_info.completion_codes.name` (string)
    Example: Success #1

  - `order_info.pickup_completion_codes` (array)

  - `order_info.orders` (array)

  - `order_info.orders.order_id` (integer)
    Example: 122553647

  - `order_info.orders.external_id` (any)

  - `order_info.driver_info` (object)

  - `order_info.driver_info.member_id` (integer)
    Example: 342453

  - `order_info.driver_info.carrier` (string)
    Example: Sub-contracting name

  - `updated_at` (string)
    Example: 2022-06-23T21:17:11.309499+10:00

## Request examples:

  - `> 📘 Here is the full example of the event that Radaro sends out when job status is _**changed**_
>
> Full job details ar` (unknown)

  - `> 📘 When a new job is created, the webhook event will be marked with `"event_type": "created"`.` (unknown)

  - `> 📘 When customer leaves the job's rating/comment, Radaro will send event to the webhook URL.` (unknown)

## Response 200:

  - `200` (unknown)
    Return a 200 status to acknowledge receipt of the event.

