# List Sequenced Optimisations

Endpoint: GET /api/webhooks/ro/route-import/v1/
Version: 1.0
Security: key

## Security:

  - `key` (unknown)
    apiKey in query key

## Query parameters:

  - `page_size` (string)
    Page size. Maximum page size - 100. 
Example: 10.

  - `page` (string)
    Example: 1.

  - `day_after` (string)
    Date in ISO-8601 YYYY-MM-DD.
If set, returns optimisations that have 'date' larger or equal than passed. 
Example: 2025-10-17.

  - `day_before` (string)
    Date in ISO-8601 YYYY-MM-DD.
if set, returns optimisations that have date less or equal than passed. 
Example: 2025-10-17.

  - `merchant` (number)
    Merchant id. Support single choice only. 
Example: 1.

## Response 200 fields (application/json):

  - `count` (number, required)

  - `next` (string)

  - `previous` (string)

  - `results` (array)

  - `results.id` (number)

  - `results.type` (string)

  - `results.day` (string)
    Date in ISO-8601 YYYY-MM-DD.

  - `results.options` (object)

  - `results.options.working_hours` (object, required)

  - `results.options.working_hours.lower` (string)

  - `results.options.working_hours.upper` (string)

  - `results.options.service_time_sec` (number)

  - `results.options.pickup_service_time_sec` (number)

  - `results.options.start_place` (string)
    default_hub if use driver's default start hub. hub_location if use specific hub that you can set in start_hub field.

  - `results.options.start_hub` (number)

  - `results.options.end_place` (string)
    default_hub if use driver's default end hub. hub_location if use specific hub that you can set in end_hub field.

  - `results.options.routes` (array)

  - `results.options.routes.member_id` (number, required)

  - `results.options.routes.sequence` (array)

  - `results.options.routes.sequence.external_id` (string)

  - `results.options.routes.sequence.order_id` (string)

  - `results.options.routes.sequence.point_kind` (string)

  - `results.task_status` (string)
    Possible values are 'created', 'in_progress', 'completed'. Here 'task' means background task that performs optimisation. You should wait for status completed to work with optimisation results.

  - `results.routes` (array)

  - `results.routes.id` (number)

  - `results.routes.driver` (object)

  - `results.routes.driver.member_id` (number)

  - `results.routes.driver.full_name` (string)

  - `results.routes.driver.is_online` (boolean)

  - `results.routes.driver.work_status` (string)

  - `results.routes.driver.phone` (string)

  - `results.routes.driver.thumb_avatar_100x100` (string)

  - `results.routes.driver.status` (string)

  - `results.routes.driver.last_location` (string)

  - `results.routes.total_time` (number)
    total time including service and driving times in seconds.

  - `results.routes.driving_time` (number)
    Seconds

  - `results.routes.driving_distance` (number)
    Meters

  - `results.routes.start_time` (string)

  - `results.routes.end_time` (string)

  - `results.routes.orders_count` (number)

  - `results.routes.points` (array)

  - `results.routes.points.id` (number)

  - `results.routes.points.number` (number)

  - `results.routes.points.point_kind` (string)
    pickup, delivery, hub, location.

  - `results.routes.points.service_time` (number)
    Seconds

  - `results.routes.points.driving_time` (number)
    Seconds

  - `results.routes.points.distance` (number)
    Meters

  - `results.routes.points.start_time` (string)

  - `results.routes.points.end_time` (string)

  - `results.routes.points.planned_arrival_after` (string)

  - `results.routes.points.planned_arrival_before` (string)

  - `results.routes.points.planned_arrival` (string)

  - `results.routes.color` (string)

  - `results.routes.state` (string)
    State of the route.

  - `results.state` (string)
    State of this optimisation.

  - `results.group` (string)

  - `results.customers_notified` (boolean)

  - `results.log` (object)

  - `results.log.messages` (object)

  - `results.log.messages.text` (string)

  - `results.log.messages.time` (string)

  - `results.log.percent` (number)

  - `results.log.steps` (array)

  - `results.log.steps.name` (string)

  - `results.log.steps.completed` (boolean)

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 200 examples:

  - `OK` (unknown)

## Response 401 examples:

  - `Unauthorized` (unknown)

## Response 403 examples:

  - `Forbidden` (unknown)

  - `Route Optimisation disabled` (unknown)

  - `Route Optimisation V4 disabled` (unknown)

  - `Sequenced Optimisation disabled` (unknown)

