Skip to content

Jobs

The Orders API allows you to quickly and easily create, update, and manage orders in bulk.

A Merchant API key is required to access the endpoint. Users with Manager permissions can generate and provide the key.

Bulk Job Operations

Orders API allows you to quickly and easily create orders in bulk.

If you want to use this endpoint you will need Merchant API key. Users with Manager permissions can generate and provide it to you.

Merchant API key looks like: a46dfc0e-4b59-448d-8a41-0745af6458ff.

By using Merchant API key you can:

  • create jobs in bulk;
  • get job's list created with this API key or get all jobs if key is Master Key;
  • get order's details by external_id;
  • assign driver to job by ID;
  • update job;
  • terminate job.
Job Status Codes

We use the following status codes, which all directly relate to the Radaro statuses that are visible to manager:

  • pending for Pending;
  • not_assigned for Not Assigned;
  • assigned for Assigned;
  • pickup for Pick up;
  • picked_up for Picked up;
  • in_progress for In Progress;
  • delivered for Completed;
  • confirmed for Confirmed;
  • failed for Failed

All dates are in ISO-8601 date format where the time value is the time in Greenwich, England, or UTC time.

For job's delivery intervals we support either delivery_interval field or deliver_after and deliver_before pair.

The example of jobs creation using deliver_after and deliver_before fields as delivery interval borders can be found below in the corresponding section.

Important

You can create jobs only with 'pending', 'assigned' or 'not_assigned' statuses.

Notes for jobs with 'pending' status
  • Your administrator must enable using 'pending' status and delivery zones.
  • All new jobs must have 'delivery_zone'.
  • If you not provide 'delivery_zone', 'deliver_address' must have 'post_code' corresponding one of the existing delivery zone.
  • The 'phone' field in 'customer' is required for jobs with 'pending' status.
  • Notification will be sent to the customer after creating a job with 'pending' status.
  • In order to "confirm" pending job change status from 'pending' to 'not_assigned'.
Cases for 'driver' and 'status' fields
  • If you provide 'driver' for job, then job's status is 'assigned' and you can not provide it.
  • If you not provide this both fields, job use status 'not_assigned'
  • If you not provide 'driver' for 'assigned' job, or when you provide 'driver' for 'not_assigned' job, you will get an exception.
  • For other statuses you must use other methods.
Detailed Job Info

This endpoint allows you to get/update all the information about a selected job, also you can delete the job.

It can be useful to check the status of the job, although we recommend to use webhook events for that purpose.

There is additional query parameter lookup_field that allows you to specify field name for job lookup, possible values are:
external_id (default) and order_id. Parameter is optional.

Parameters

NameTypeRequiredDescription
idstring✅ YesJob ID which is required for lookup (Radaro Job ID or external job id depending on the lookup field).
keystring✅ YesMerchant's API key
lookup_fieldstring❌ NoField name for job lookup, "order_ID" or "external_id". Default: external_id.

Bulk Job Operations

These endpoints allow to perform operations on a list of jobs.

"Create jobs" POST request allows to submit a list of jobs to Radaro.

To create multiple jobs at once, provide the data in the next format:

  [
        {job_1_details},
        {job_2_details},
        ...
        {job_n_details}
  ]

"Get jobs" GET request allows to get a list of merchant jobs that were earlier created with this API key.

The use of capacity makes sense only when used in conjunction with route optimization feature

That means when optimizing list of jobs job and driver's car capacity are taken into account if corresponding ro option is enabled.

Attributes
  • deliver_after: 2020-02-06T09:00:00Z (string) - ISO-8601 date format
  • deliver_before: 2020-02-06T11:00:00Z (string) - ISO-8601 date format
  • deliver_address (Location - Required)
  • deliver_address_2: 2nd floor, apartment 12 (string).3
  • delivery_zone: 123 (number) - Delivery zone ID
  • customer (Customer, required)
  • pickup_after: 2020-02-06T05:00:00Z (string) - ISO-8601 date format
  • pickup_before: 2020-02-06T07:00:00Z (string) - ISO-8601 date format
  • pickup_address (Location - Required)
  • pickup_address_2: 2nd floor, apartment 12 (string)
  • pickup (Pickup)
  • comment: Order #3 (string) - Any string
  • title: PO1298371 - Any string
  • title_2: TD12345 - Any string
  • title_3: `` - Any string
  • manager (Manager)
  • starting_point (Location) - Point at which the driver began to perform job.
  • started_at: 2020-02-06T009:30:00Z (string) - ISO-8601 date format. Time when driver began to perform job.
  • updated_at: 2020-02-06T009:30:00Z (string) - ISO-8601 date format. Time when job changed status.
  • created_at: 2020-01-06T009:20:00Z (string) - ISO-8601 date format. Time when job was created.
  • pickup_geofence_entered_at: 2020-02-06T010:00:00Z (string) - ISO-8601 date format. Time when driver entered pickup geofence zone.
  • pickup_geofence_exited_at: 2020-02-06T011:00:00Z (string) - ISO-8601 date format. Time when driver came out of pickup geofence zone.
  • pick_up_confirmation_photos
    [ { "image": "https://radaro-api.s3.amazonaws.com/media/OrderPickupConfirmationPhoto/6d42b403-0e4.jpg" } ]
    • list of objects
  • pick_up_confirmation_signature: \path\to\pickup-confirmation\signature (string)
  • pick_up_confirmation_comment: `` - Comment left by driver when confirming order pickup.
  • rating: 10 (number) - Integer from 1 to 10. Estimate that the customer has given delivery.
  • customer_comment: Very good!! (string) - Comment that the customer has given delivery.
  • pending_comment: 2nd floor (string)
  • confirmation_signature: \path\to\confirmation\signature (string)
  • confirmation_comment: `` (string) - Comment that driver has given delivery.
  • geofence_entered_at: 2020-02-06T010:00:00Z (string) - ISO-8601 date format. Time when driver entered in geofence.
  • geofence_exited_at: 2020-02-06T011:00:00Z (string) - ISO-8601 date format. Time when driver came out of geofence.
  • duration: 00:10:00 (string) - Duration of job's delivery.
  • deadline_passed: false (boolean) - False if job's deadline passed, else - true.
  • external_id: 111111 (string) - External ID of job.
  • driver: 345322 (number) - Driver's member ID, null by default.
  • order_distance: 12333 (number) - Distance from starting point to deliver address in miles or kilometers (depends on merchant's settings).
  • status: in_progress (string, required) - Job's current status, not_assigned by default.
  • order_id: 123234 (number) - Order ID in system.
  • description: **Formatted job description**
  • sub_branding: 123 (number) - Sub-brand ID
  • label: 1 (number) - label ID
  • labels: 1, 2 (array[number]) - Array of labels ID
  • skill_sets: 1, 3 (array[number]) - Array of skill sets ID
  • error_code (ErrorCode) - error code for failed job.
  • error_comment: "Error comment" (string) - additional comment for failed job.
  • customer_tracking_url: "http://account.radaro.com.au/#/order/NTc0NQ/32fe9c08-105e-4128-b2a2-9cecb0859fb4"
  • order_confirmation_photos
    [ { "image": "https://radaro-api.s3.amazonaws.com/media/OrderConfirmationPhoto/6d42b403-0e2.jpg" } ]
    • list of objects
  • order_confirmation_documents
    [ { "id": 11, "document": "<http://example.com/media/OrderConfirmationDocument/doc.pdf>", "name": "Job-ID-14312344_Custom-document_15-05-2020-16.3", "tags": [ { "id": 3, "name": "Proof of Delivery" }, { "id": 4, "name": "Invoices" } ] } ]
  • pre_inspection_comment: `` (string) - Comment that driver has given before delivery.,
  • pre_inspection_signature: \path\to\pre-inspection\signature (string),
  • pre_inspection_photos
    [ { "image": "http://example.com/path/to/file" } ]
    • list of objects
  • completion_code - Completion code for job: Codes indicating specific completing statuses or reasons
  • completion_comment: "Completion comment" (string)
  • driver_checklist : Checklist completion results
  • delivery_interval : Job delivery interval
  • barcodes (array[Barcode]) - list of job barcodes
  • cargoes (object)
    • skids (array[Skid])
    • line_level_data (array[LineLevelData])
  • capacity: 200 (number) - Job capacity value in local units of measurement. To use this attribute ensure your merchant has enable_job_capacity setting enabled.
  • capacity_2: 50 (number) - Job capacity value in local units of measurement. To use this attribute ensure your merchant has enable_job_capacity setting enabled and Capacity 2 field set.
  • capacity_3: 100 (number) - Job capacity value in local units of measurement. To use this attribute ensure your merchant has enable_job_capacity setting enabled and Capacity 3 field set.
  • enable_rating_reminder: true (boolean)
  • optimisation_id: 3456 (number)
  • custom_redirect_url: 'https://example.com/ (string),
  • concatenated_order
    { "order_id": 183362642, "external_id": "external-job-000" }
    • concatenated order ids
  • priority: 1,2,3,4,5 (enum)
  • territory: 2 (number) - Territory ID
Parameters
  • api_key (string) - Merchant's API key