Introduction

This documentation aims to provide all the information you need to work with the RouteLogic API.

As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile). You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_API_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your account click your name and go to synchronisation.

V2

Tasks

Tasks are the deliveries or pickups that need to be done by your drivers.


GET Tasks

GET
https://api.routelogic.io
/api/v2/tasks
requires authentication

Get paginated collection of tasks from your company

RateLimit (1/min)
If you like to receive tasks quicker use webhooks read more here

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filters
object
filters.search
string

Search for specific tasks. (customer name, city, street, house number, postal, external identifier and external reference). Must not be greater than 128 characters.

Example:
Amsterdam
filters.from_date
string

Find tasks on this date and later. Combine with to_date to select a specific day or a range. Must be a valid date in the format Y-m-d.

Example:
2025-01-23
filters.to_date
string

Find tasks on this date and earlier. Combine with from_date to select a specific day or a range. Must be a valid date in the format Y-m-d.

Example:
2025-01-23
filters.types
string[]

Filter on specific task types.

Must be one of:
  • delivery
  • pickup
  • recurring
Example:
["pickup"]
filters.statuses
string[]

Filter on tasks with a specific status.

Must be one of:
  • planned
  • not_planned
  • delivered
  • delivery_failed
Example:
["not_planned"]
filters.deleted
string

Include or only return deleted items in the response. Leave empty to not show deleted items at all.

Must be one of:
  • include
  • only
Example:
include
filters.limit
integer

Amount of items on each page. 24 by default. Must not be greater than 100. Must be at least 1.

Example:
59
filters.page
integer

Must be at least 1.

Example:
21

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks?filters[search]=Amsterdam&filters[from_date]=2025-01-23&filters[to_date]=2025-01-23&filters[types][]=pickup&filters[statuses][]=not_planned&filters[deleted]=include&filters[limit]=59&filters[page]=21" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
            "type": "delivery",
            "external_identifier": "mMUIXm",
            "external_reference": null,
            "note": null,
            "pending_payment_amount": 0,
            "external_link": null,
            "delivery_from_date": "2025-01-23",
            "delivery_date": "2025-01-23",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "delivery_duration_minutes": 0,
            "recurring": null,
            "return_required": false,
            "signature_required": false,
            "used_capacity": 0,
            "used_capacity_2": 0,
            "used_capacity_3": 0,
            "updated_at": "2025-01-23T09:48:45.000000Z",
            "created_at": "2025-01-23T09:48:45.000000Z",
            "tags": [],
            "notification_template_uuid": null,
            "return_task_uuid": null,
            "address": {
                "street": "7572 Trinity Pine Suite 993",
                "house_number": "8674",
                "house_number_extension": null,
                "postal_code": "61204",
                "city": "Johanland",
                "latitude": 67.930989,
                "longitude": 46.181075,
                "address_line": "7572 Trinity Pine Suite 993 8674",
                "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                "country": {
                    "iso_code": "NL",
                    "description": "Nederland"
                }
            },
            "customer": {
                "name": "Alyson Mitchell",
                "email": null,
                "phone_number": null
            },
            "next_visit": {
                "uuid": "9e094068-f607-40b0-b9a3-2616e7f08292",
                "type": "task",
                "order_index": 0,
                "delivery_time": "09:00:00",
                "schedule_date": "2025-01-22T23:00:00.000000Z",
                "address": {
                    "street": "7572 Trinity Pine Suite 993",
                    "house_number": "8674",
                    "house_number_extension": null,
                    "postal_code": "61204",
                    "city": "Johanland",
                    "latitude": 67.930989,
                    "longitude": 46.181075,
                    "address_line": "7572 Trinity Pine Suite 993 8674",
                    "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                    "country": {
                        "iso_code": "NL",
                        "description": "Nederland"
                    }
                },
                "scanned_codes": {
                    "data": [
                        {
                            "type": "task_code",
                            "code_uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
                            "scanned_count": 1
                        },
                        {
                            "type": "schedule_visit_code",
                            "code_uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
                            "scanned_count": 1
                        }
                    ]
                },
                "status": {
                    "status_identifier": "delivered"
                }
            }
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 24,
        "to": 1,
        "total": 1,
        "next": null,
        "prev": null
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Tasks

POST
https://api.routelogic.io
/api/v2/tasks
requires authentication

Create a task for your company. If the task already exists it will be updated based on the external identifier.

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/tasks" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"pickup\",
    \"external_identifier\": \"ue\",
    \"external_reference\": \"eyg\",
    \"note\": \"Please deliver at the side door.\",
    \"pending_payment_amount\": 100,
    \"external_link\": \"https:\\/\\/example.com\\/\",
    \"delivery_from_date\": \"2009-05-29\",
    \"start_time\": \"08:00\",
    \"end_time\": \"17:00\",
    \"delivery_duration_minutes\": 12,
    \"return_required\": false,
    \"return_task_uuid\": \"c2fa090d-3e24-3b22-8ac9-af447849f31d\",
    \"signature_required\": false,
    \"used_capacity\": 6,
    \"used_capacity_2\": 25,
    \"used_capacity_3\": 17,
    \"notification_template_uuid\": \"3473a030-5bc7-39b5-8275-07f0b1118768\",
    \"recurring\": {
        \"period\": \"month\",
        \"interval\": 16,
        \"settings\": \"[\\\"string\\\", \\\"third\\\", \\\"monday\\\"]\",
        \"end_date\": \"2092-04-25\"
    },
    \"address\": {
        \"house_number\": \"12\",
        \"house_number_extension\": \"1A\",
        \"street\": \"LongStreet\",
        \"postal_code\": \"1234AB\",
        \"city\": \"Amsterdam\",
        \"country\": \"NL\",
        \"latitude\": 23,
        \"longitude\": 14
    },
    \"customer\": {
        \"email\": \"[email protected]\",
        \"phone_number\": \"+01 234567890\",
        \"name\": \"Andrew\"
    },
    \"tags\": [
        \"cooled\"
    ],
    \"delivery_date\": \"2025-01-23T10:48:46\"
}"
Example response:
{
    "uuid": "9e094069-c479-41dd-8bde-3051cd8e0eb0",
    "type": "delivery",
    "external_identifier": "RLOJNNHf7o4g",
    "external_reference": null,
    "note": null,
    "pending_payment_amount": 0,
    "external_link": null,
    "delivery_from_date": "2025-01-23",
    "delivery_date": "2025-01-23",
    "start_time": "08:00:00",
    "end_time": "18:00:00",
    "delivery_duration_minutes": 5,
    "recurring": null,
    "return_required": false,
    "signature_required": false,
    "used_capacity": 0,
    "used_capacity_2": 0,
    "used_capacity_3": 0,
    "updated_at": "2025-01-23T09:48:45.000000Z",
    "created_at": "2025-01-23T09:48:45.000000Z",
    "tags": [],
    "notification_template_uuid": null,
    "return_task_uuid": null,
    "address": {
        "street": "",
        "house_number": "",
        "house_number_extension": "",
        "postal_code": "",
        "city": "",
        "latitude": 1,
        "longitude": 1,
        "address_line": "",
        "full_address_line": "",
        "country": {
            "iso_code": "NL",
            "description": "Nederland"
        }
    },
    "customer": {
        "name": "customer 1",
        "email": null,
        "phone_number": null
    },
    "next_visit": null
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Task

GET
https://api.routelogic.io
/api/v2/tasks/{task_uuid}
requires authentication

Get a task from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
4580090b-a2a4-3ea3-bb0e-6e2833173897

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/4580090b-a2a4-3ea3-bb0e-6e2833173897" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
    "type": "delivery",
    "external_identifier": "mMUIXm",
    "external_reference": null,
    "note": null,
    "pending_payment_amount": 0,
    "external_link": null,
    "delivery_from_date": "2025-01-23",
    "delivery_date": "2025-01-23",
    "start_time": "09:00:00",
    "end_time": "17:00:00",
    "delivery_duration_minutes": 0,
    "recurring": null,
    "return_required": false,
    "signature_required": false,
    "used_capacity": 0,
    "used_capacity_2": 0,
    "used_capacity_3": 0,
    "updated_at": "2025-01-23T09:48:45.000000Z",
    "created_at": "2025-01-23T09:48:45.000000Z",
    "tags": [],
    "notification_template_uuid": null,
    "return_task_uuid": null,
    "address": {
        "street": "7572 Trinity Pine Suite 993",
        "house_number": "8674",
        "house_number_extension": null,
        "postal_code": "61204",
        "city": "Johanland",
        "latitude": 67.930989,
        "longitude": 46.181075,
        "address_line": "7572 Trinity Pine Suite 993 8674",
        "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
        "country": {
            "iso_code": "NL",
            "description": "Nederland"
        }
    },
    "customer": {
        "name": "Alyson Mitchell",
        "email": null,
        "phone_number": null
    },
    "next_visit": {
        "uuid": "9e094068-f607-40b0-b9a3-2616e7f08292",
        "type": "task",
        "order_index": 0,
        "delivery_time": "09:00:00",
        "schedule_date": "2025-01-22T23:00:00.000000Z",
        "address": {
            "street": "7572 Trinity Pine Suite 993",
            "house_number": "8674",
            "house_number_extension": null,
            "postal_code": "61204",
            "city": "Johanland",
            "latitude": 67.930989,
            "longitude": 46.181075,
            "address_line": "7572 Trinity Pine Suite 993 8674",
            "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
            "country": {
                "iso_code": "NL",
                "description": "Nederland"
            }
        },
        "scanned_codes": {
            "data": [
                {
                    "type": "task_code",
                    "code_uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
                    "scanned_count": 1
                },
                {
                    "type": "schedule_visit_code",
                    "code_uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
                    "scanned_count": 1
                }
            ]
        },
        "status": {
            "status_identifier": "delivered"
        }
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

PUT/PATCH Task

PUT
PATCH
https://api.routelogic.io
/api/v2/tasks/{task_uuid}
requires authentication

Update a task from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
85f05531-838c-34b9-a41e-43b2a5f6fb60

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/tasks/85f05531-838c-34b9-a41e-43b2a5f6fb60" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"pickup\",
    \"external_identifier\": \"tygx\",
    \"external_reference\": \"emvkkasxayqrbgebulkfgha\",
    \"note\": \"Please deliver at the side door.\",
    \"pending_payment_amount\": 100,
    \"external_link\": \"https:\\/\\/example.com\\/\",
    \"delivery_from_date\": \"2014-10-04\",
    \"start_time\": \"08:00\",
    \"end_time\": \"17:00\",
    \"delivery_duration_minutes\": 1,
    \"return_required\": false,
    \"return_task_uuid\": \"152a148e-2419-32c9-96fb-bbc9a8d2fb54\",
    \"signature_required\": true,
    \"used_capacity\": 16,
    \"used_capacity_2\": 16,
    \"used_capacity_3\": 23,
    \"notification_template_uuid\": \"854db70b-9c23-3b98-b33b-a50b48eb9cde\",
    \"recurring\": {
        \"period\": \"month\",
        \"interval\": 5,
        \"settings\": \"[\\\"string\\\", \\\"third\\\", \\\"monday\\\"]\",
        \"end_date\": \"2029-05-16\"
    },
    \"address\": {
        \"house_number\": \"12\",
        \"house_number_extension\": \"1A\",
        \"street\": \"LongStreet\",
        \"postal_code\": \"1234AB\",
        \"city\": \"Amsterdam\",
        \"country\": \"NL\",
        \"latitude\": 7,
        \"longitude\": 5
    },
    \"customer\": {
        \"email\": \"[email protected]\",
        \"phone_number\": \"+01 234567890\",
        \"name\": \"Andrew\"
    },
    \"tags\": [
        \"cooled\"
    ],
    \"delivery_date\": \"2025-01-23T10:48:46\"
}"
Example response:
{
    "message": "Connection refused",
    "exception": "RedisException",
    "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
    "line": 159,
    "trace": [
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
            "line": 159,
            "function": "connect",
            "class": "Redis",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
            "line": 88,
            "function": "establishConnection",
            "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Support/helpers.php",
            "line": 307,
            "function": "Illuminate\\Redis\\Connectors\\{closure}",
            "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
            "line": 79,
            "function": "tap"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
            "line": 33,
            "function": "createClient",
            "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
            "line": 38,
            "function": "Illuminate\\Redis\\Connectors\\{closure}",
            "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php",
            "line": 110,
            "function": "connect",
            "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php",
            "line": 91,
            "function": "resolve",
            "class": "Illuminate\\Redis\\RedisManager",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php",
            "line": 330,
            "function": "connection",
            "class": "Illuminate\\Redis\\RedisManager",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php",
            "line": 65,
            "function": "connection",
            "class": "Illuminate\\Cache\\RedisStore",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 98,
            "function": "get",
            "class": "Illuminate\\Cache\\RedisStore",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 69,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Jobs/SpaApi/InvalidateSchedule.php",
            "line": 32,
            "function": "has",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "App\\Jobs\\SpaApi\\InvalidateSchedule",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php",
            "line": 128,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Bus\\{closure}",
            "class": "Illuminate\\Bus\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php",
            "line": 132,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php",
            "line": 123,
            "function": "dispatchNow",
            "class": "Illuminate\\Bus\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Queue\\{closure}",
            "class": "Illuminate\\Queue\\CallQueuedHandler",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php",
            "line": 122,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php",
            "line": 70,
            "function": "dispatchThroughMiddleware",
            "class": "Illuminate\\Queue\\CallQueuedHandler",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php",
            "line": 102,
            "function": "call",
            "class": "Illuminate\\Queue\\CallQueuedHandler",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php",
            "line": 43,
            "function": "fire",
            "class": "Illuminate\\Queue\\Jobs\\Job",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php",
            "line": 254,
            "function": "push",
            "class": "Illuminate\\Queue\\SyncQueue",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php",
            "line": 230,
            "function": "pushCommandToQueue",
            "class": "Illuminate\\Bus\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php",
            "line": 77,
            "function": "dispatchToQueue",
            "class": "Illuminate\\Bus\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Bus/PendingDispatch.php",
            "line": 193,
            "function": "dispatch",
            "class": "Illuminate\\Bus\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php",
            "line": 19,
            "function": "__destruct",
            "class": "Illuminate\\Foundation\\Bus\\PendingDispatch",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Models/Task.php",
            "line": 899,
            "function": "dispatch",
            "class": "App\\Jobs\\SpaApi\\InvalidateSchedule",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Models/Task.php",
            "line": 76,
            "function": "invalidateSchedules",
            "class": "App\\Models\\Task",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php",
            "line": 458,
            "function": "App\\Models\\{closure}",
            "class": "App\\Models\\Task",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php",
            "line": 286,
            "function": "Illuminate\\Events\\{closure}",
            "class": "Illuminate\\Events\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php",
            "line": 266,
            "function": "invokeListeners",
            "class": "Illuminate\\Events\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php",
            "line": 215,
            "function": "dispatch",
            "class": "Illuminate\\Events\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
            "line": 1177,
            "function": "fireModelEvent",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
            "line": 1150,
            "function": "finishSave",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
            "line": 991,
            "function": "save",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Controllers/Api/V2/Tasks/TaskController.php",
            "line": 352,
            "function": "update",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
            "line": 54,
            "function": "update",
            "class": "App\\Http\\Controllers\\Api\\V2\\Tasks\\TaskController",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 43,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 259,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 205,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 806,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Middleware/CompanyAuth.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\CompanyAuth",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Middleware/ForcedApiLocale.php",
            "line": 14,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\ForcedApiLocale",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/inspector-apm/inspector-laravel/src/Middleware/WebRequestMonitoring.php",
            "line": 38,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Inspector\\Laravel\\Middleware\\WebRequestMonitoring",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Middleware/CompanyPermission.php",
            "line": 24,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\CompanyPermission",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Middleware/ForcedLocale.php",
            "line": 30,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\ForcedLocale",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Middleware/RouteLogicEngineToggle.php",
            "line": 20,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\RouteLogicEngineToggle",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 159,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 125,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 87,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php",
            "line": 25,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Laravel\\Sanctum\\Http\\Middleware\\{closure}",
            "class": "Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php",
            "line": 24,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Http/Middleware/ForcedJsonResponse.php",
            "line": 14,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\ForcedJsonResponse",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/nova/src/Http/Middleware/ServeNova.php",
            "line": 23,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Laravel\\Nova\\Http\\Middleware\\ServeNova",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php",
            "line": 59,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 99,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 39,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/monicahq/laravel-cloudflare/src/Http/Middleware/TrustProxies.php",
            "line": 25,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Monicahq\\Cloudflare\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php",
            "line": 585,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php",
            "line": 551,
            "function": "call",
            "class": "App\\Support\\Scribe\\ScribeRequest",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php",
            "line": 449,
            "function": "json",
            "class": "App\\Support\\Scribe\\ScribeRequest",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Console/Commands/ScribeGenerate.php",
            "line": 237,
            "function": "patchJson",
            "class": "App\\Support\\Scribe\\ScribeRequest",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/app/Console/Commands/ScribeGenerate.php",
            "line": 86,
            "function": "responsesForV2",
            "class": "App\\Console\\Commands\\ScribeGenerate",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "App\\Console\\Commands\\ScribeGenerate",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 211,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/symfony/console/Command/Command.php",
            "line": 326,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 180,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/symfony/console/Application.php",
            "line": 1096,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/symfony/console/Application.php",
            "line": 324,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/symfony/console/Application.php",
            "line": 175,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 201,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/builds/routelogic/api.routelogic.io/artisan",
            "line": 35,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

DELETE Task

DELETE
https://api.routelogic.io
/api/v2/tasks/{task_uuid}
requires authentication

Delete a task from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
3df5a966-4444-32a8-8828-6e23c990dfbc
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/3df5a966-4444-32a8-8828-6e23c990dfbc" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Task Products

Products are the items that are being delivered or picked up in a task.


GET Products

GET
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/products
requires authentication

Get collection of products of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
b26afb27-898d-33c6-aaba-4c311b5e4b99

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/b26afb27-898d-33c6-aaba-4c311b5e4b99/products" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9e094068-f47b-45ad-b053-599185d94198",
            "quantity": "1.00",
            "description": "Test line",
            "unit": "pieces",
            "identifier": "2f7e673aae64ffbe3821016e253b45ed"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Products

POST
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/products
requires authentication

Create a or multiple products of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
f33ecbdc-c8b5-31c2-9256-9b3d6f8b9e5d

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/tasks/f33ecbdc-c8b5-31c2-9256-9b3d6f8b9e5d/products" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"identifier\": \"seeeovp\",
            \"quantity\": 10,
            \"unit\": \"weight\",
            \"description\": \"Table\"
        }
    ]
}"
Example response:
{
    "data": [
        {
            "uuid": "9e09406a-0774-444d-af1b-dad47b641baf",
            "quantity": 1,
            "description": "Test line",
            "unit": "pieces",
            "identifier": "2f7e673aae64ffbe3821016e253b45ed"
        },
        {
            "uuid": "9e09406a-07eb-4dd8-a25b-c586978070c5",
            "quantity": 5,
            "description": "Test line 2",
            "unit": "weight",
            "identifier": "838c87eb890a63944ecc8e83ffb0e4bb"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Product

GET
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/products/{product_uuid}
requires authentication

Get a product of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
3ff6b059-2ce3-3506-9ce6-52b71f9da6ff
product_uuid
string

uuid of the corresponding product

Example:
a1e768ab-78d0-36f7-a12a-7c0448549d3d

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/3ff6b059-2ce3-3506-9ce6-52b71f9da6ff/products/a1e768ab-78d0-36f7-a12a-7c0448549d3d" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9e094068-f47b-45ad-b053-599185d94198",
        "quantity": "1.00",
        "description": "Test line",
        "unit": "pieces",
        "identifier": "2f7e673aae64ffbe3821016e253b45ed"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

PUT/PATCH Product

PUT
PATCH
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/products/{product_uuid}
requires authentication

Update a product of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
9080cebf-c631-3de4-aaff-e9fff0bc71c5
product_uuid
string

uuid of the corresponding product

Example:
15a7138e-666c-33d9-8dc5-ba49b5b206fd

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/tasks/9080cebf-c631-3de4-aaff-e9fff0bc71c5/products/15a7138e-666c-33d9-8dc5-ba49b5b206fd" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"identifier\": \"rcut\",
    \"quantity\": 8,
    \"unit\": \"weight\",
    \"description\": \"Table\"
}"
Example response:
{
    "data": {
        "uuid": "9e094068-f47b-45ad-b053-599185d94198",
        "quantity": "1.00",
        "description": "Test line",
        "unit": "pieces",
        "identifier": "2f7e673aae64ffbe3821016e253b45ed"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

DELETE Product

DELETE
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/products/{product_uuid}
requires authentication

Delete a product of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
f62ba90b-716a-35d9-9b8b-0c132d879dec
product_uuid
string

uuid of the corresponding product

Example:
ac5ebd10-58c7-3226-87c6-e18e269c180d
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/f62ba90b-716a-35d9-9b8b-0c132d879dec/products/ac5ebd10-58c7-3226-87c6-e18e269c180d" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

DELETE Products

DELETE
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/products
requires authentication

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
f0470439-4b6c-3b42-8d71-b4979faf987c
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/f0470439-4b6c-3b42-8d71-b4979faf987c/products" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Task Codes

Task Codes are the bar/qr codes that are being scanned in a task.


GET Task Codes

GET
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/codes
requires authentication

Get collection of codes of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
2eaaebe3-59ce-3a02-b145-2f52e34eaec0

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/2eaaebe3-59ce-3a02-b145-2f52e34eaec0/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
            "amount": 1,
            "code": "HJyMw2r8D0CbFChL",
            "description": "box"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Task Codes

POST
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/codes
requires authentication

Create a or multiple codes of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
9bd2c339-4c9c-3045-8c46-bccc42837219

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/tasks/9bd2c339-4c9c-3045-8c46-bccc42837219/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"amount\": 24,
            \"code\": \"lb\",
            \"description\": \"Table\"
        }
    ]
}"
Example response:
{
    "data": [
        {
            "uuid": "9e09406a-1a2c-4f28-b9f2-a03b570b983c",
            "amount": 1,
            "code": "1234567890",
            "description": "Box"
        },
        {
            "uuid": "9e09406a-1a82-4152-8906-7ba4670ed1f0",
            "amount": 2,
            "code": "ABCDEFGHIJ",
            "description": "Table"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Task Code

GET
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/codes/{taskCode_uuid}
requires authentication

Get a code of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
5df3aec2-418b-310d-aef1-f5f1947d3fab
taskCode_uuid
string

uuid of the corresponding task code

Example:
51df94e9-213a-36fc-aee9-915b7541325f

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/5df3aec2-418b-310d-aef1-f5f1947d3fab/codes/51df94e9-213a-36fc-aee9-915b7541325f" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
        "amount": 1,
        "code": "HJyMw2r8D0CbFChL",
        "description": "box"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

PUT/PATCH Task Code

PUT
PATCH
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/codes/{taskCode_uuid}
requires authentication

Update a code of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
7c51623a-e21d-326c-aafd-34d788d1c44e
taskCode_uuid
string

uuid of the corresponding task code

Example:
e0f64262-1541-3b22-8ae9-c9e0e7255219

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/tasks/7c51623a-e21d-326c-aafd-34d788d1c44e/codes/e0f64262-1541-3b22-8ae9-c9e0e7255219" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 1,
    \"code\": \"szwrhrhyoirr\",
    \"description\": \"Table\"
}"
Example response:
{
    "data": {
        "uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
        "amount": 1,
        "code": "HJyMw2r8D0CbFChL",
        "description": "box"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

DELETE Task Code

DELETE
https://api.routelogic.io
/api/v2/tasks/{task_uuid}/codes/{taskCode_uuid}
requires authentication

Delete a code of a task

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_uuid
string

uuid of the corresponding task

Example:
343912b9-71b6-3895-bf6a-eb754e387421
taskCode_uuid
string

uuid of the corresponding task code

Example:
d8f53f0c-19b2-35cf-b94a-0dbd8c0603d5
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/343912b9-71b6-3895-bf6a-eb754e387421/codes/d8f53f0c-19b2-35cf-b94a-0dbd8c0603d5" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Visit Codes

Visit Codes are the bar/qr codes that are being scanned in a visit. A visit is a delivery or pickup attempt for a specific task. Usually, the visit codes are only set when using recurring tasks.


GET Visit Codes

GET
https://api.routelogic.io
/api/v2/visits/{scheduleVisit_uuid}/codes
requires authentication

Get collection of codes of a visit

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

scheduleVisit_uuid
string

uuid of the corresponding scheduled visit

Example:
668b7529-3193-3e45-91ab-71751891732a

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/visits/668b7529-3193-3e45-91ab-71751891732a/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
            "amount": 1,
            "code": "HzLbbU3xIa8gkKzV",
            "description": "lamp"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Visit Codes

POST
https://api.routelogic.io
/api/v2/visits/{scheduleVisit_uuid}/codes
requires authentication

Create a or multiple codes of a visit

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

scheduleVisit_uuid
string

uuid of the corresponding scheduled visit

Example:
aa30c314-72d9-3b12-88aa-2ab5c26d9ce8

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/visits/aa30c314-72d9-3b12-88aa-2ab5c26d9ce8/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"amount\": 12,
            \"code\": \"pqvijufibbozppjjgx\",
            \"description\": \"Table\"
        }
    ]
}"
Example response:
{
    "data": [
        {
            "uuid": "9e09406a-6b73-462a-a380-60211d8a922a",
            "amount": 1,
            "code": "1234567890",
            "description": "Box"
        },
        {
            "uuid": "9e09406a-6bca-44ea-a2db-2373a318fcda",
            "amount": 2,
            "code": "ABCDEFGHIJ",
            "description": "Table"
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Visit Code

GET
https://api.routelogic.io
/api/v2/visits/{scheduleVisit_uuid}/codes/{scheduleVisitCode_uuid}
requires authentication

Get a code of a visit

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

scheduleVisit_uuid
string

uuid of the corresponding scheduled visit

Example:
59124850-6089-342d-9c52-7e432b40a6be
scheduleVisitCode_uuid
string

uuid of the corresponding scheduled visit code

Example:
8113ca38-3db3-37bb-b6e8-c7a3c2966d9e

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/visits/59124850-6089-342d-9c52-7e432b40a6be/codes/8113ca38-3db3-37bb-b6e8-c7a3c2966d9e" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
        "amount": 1,
        "code": "HzLbbU3xIa8gkKzV",
        "description": "lamp"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

PUT/PATCH Visit Code

PUT
PATCH
https://api.routelogic.io
/api/v2/visits/{scheduleVisit_uuid}/codes/{scheduleVisitCode_uuid}
requires authentication

Update a code of a visit

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

scheduleVisit_uuid
string

uuid of the corresponding scheduled visit

Example:
0dd47520-c4f6-3c84-8c68-746b2c969283
scheduleVisitCode_uuid
string

uuid of the corresponding scheduled visit code

Example:
50c98c41-3493-3e65-ac73-a207e5382324

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/visits/0dd47520-c4f6-3c84-8c68-746b2c969283/codes/50c98c41-3493-3e65-ac73-a207e5382324" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 21,
    \"code\": \"cywosiiudfvbgqfhtmpdhijpl\",
    \"description\": \"Table\"
}"
Example response:
{
    "data": {
        "uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
        "amount": 1,
        "code": "HzLbbU3xIa8gkKzV",
        "description": "lamp"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

DELETE Visit Code

DELETE
https://api.routelogic.io
/api/v2/visits/{scheduleVisit_uuid}/codes/{scheduleVisitCode_uuid}
requires authentication

Delete a code of a visit

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

scheduleVisit_uuid
string

uuid of the corresponding scheduled visit

Example:
d21b762a-74e7-307f-beea-dccf440d0b5b
scheduleVisitCode_uuid
string

uuid of the corresponding scheduled visit code

Example:
62821a9a-6273-3097-b0b7-69b6cce80ac9
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/visits/d21b762a-74e7-307f-beea-dccf440d0b5b/codes/62821a9a-6273-3097-b0b7-69b6cce80ac9" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Webhook Groups

Webhook groups are the configured webhooks between Routelogic and your applications.


GET Webhook Groups

GET
https://api.routelogic.io
/api/v2/webhookGroups
requires authentication

Get paginated collection of webhook groups from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filters
object
filters.limit
integer

Amount of items on each page. 24 by default. Must not be greater than 100. Must be at least 1.

Example:
49
filters.page
integer

Page number. 1 by default. Must be at least 1.

Example:
45

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookGroups?filters[limit]=49&filters[page]=45" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9e094068-f7cc-4c1b-bff1-41ef36a3f2aa",
            "name": "Webhook group 1",
            "description": "Task webhook group 1",
            "webhook_url": "https://test.com/webhook/",
            "events": []
        },
        {
            "uuid": "9e094069-057f-49a8-a1a7-ee18f5637896",
            "name": "Webhook group 2",
            "description": "task webhook group 2",
            "webhook_url": "https://test.com/webhook/",
            "events": [
                "task_created"
            ]
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 24,
        "to": 2,
        "total": 2,
        "next": null,
        "prev": null
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Webhook Group

POST
https://api.routelogic.io
/api/v2/webhookGroups
requires authentication

Create a webhook group for your company.

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/webhookGroups" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"webhook\",
    \"description\": \"Webhook for listening to when a task is created\",
    \"webhook_url\": \"https:\\/\\/example.com\\/webhook\",
    \"webhook_secret\": \"token\",
    \"events\": [
        \"task_deleted\"
    ]
}"
Example response:
{
    "data": {
        "uuid": "9e09406a-3222-4ac3-a342-0bb198736480",
        "name": "Demo webhook group",
        "description": "send to my api",
        "webhook_url": "https://routelogic.io",
        "events": [
            "task_created",
            "task_updated"
        ]
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Webhook Group

GET
https://api.routelogic.io
/api/v2/webhookGroups/{webhookGroup_uuid}
requires authentication

Get a webhook group from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

webhookGroup_uuid
string

uuid of the corresponding webhook group

Example:
859f0c20-e0fd-3203-b6ee-782e8b96e56b

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookGroups/859f0c20-e0fd-3203-b6ee-782e8b96e56b" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9e094069-057f-49a8-a1a7-ee18f5637896",
        "name": "Webhook group 2",
        "description": "task webhook group 2",
        "webhook_url": "https://test.com/webhook/",
        "events": [
            "task_created"
        ]
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

PUT/PATCH Webhook Group

PUT
PATCH
https://api.routelogic.io
/api/v2/webhookGroups/{webhookGroup_uuid}
requires authentication

Update a webhook group from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

webhookGroup_uuid
string

uuid of the corresponding webhook group

Example:
832aa551-8a1e-3870-9f02-d1cb6a447468

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/webhookGroups/832aa551-8a1e-3870-9f02-d1cb6a447468" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"webhook\",
    \"description\": \"Webhook for listening to when a task is created\",
    \"webhook_url\": \"https:\\/\\/example.com\\/webhook\",
    \"webhook_secret\": \"token\",
    \"events\": [
        \"schedule_calculated\"
    ]
}"
Example response:
{
    "data": {
        "uuid": "9e094069-057f-49a8-a1a7-ee18f5637896",
        "name": "Webhook group 2",
        "description": "task webhook group 2",
        "webhook_url": "https://test.com/webhook/",
        "events": [
            "task_created"
        ]
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

DELETE Webhook Group

DELETE
https://api.routelogic.io
/api/v2/webhookGroups/{webhookGroup_uuid}
requires authentication

Delete a webhook group from your company

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

webhookGroup_uuid
string

uuid of the corresponding webhook group

Example:
ac799f06-cb5b-304b-8cac-9f616ceb1bac
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/webhookGroups/ac799f06-cb5b-304b-8cac-9f616ceb1bac" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Webhook Events

Webhooks are the events that are being sent to your system.


GET Webhooks

GET
https://api.routelogic.io
/api/v2/webhookEvents
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filters
object
filters.status_failed
boolean

Filter by failed status (>= 400). False by default.

Example:
1
filters.limit
integer

Amount of items on each page. 24 by default. Must not be greater than 100. Must be at least 1.

Example:
24
filters.page
integer

Page number. 1 by default. Must be at least 1.

Example:
72

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookEvents?filters[status_failed]=1&filters[limit]=24&filters[page]=72" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "23b05847-d4fb-464a-9516-63c885c576e6",
            "webhook_url": "https://test.com/webhook/",
            "event_data": {
                "data": {
                    "note": null,
                    "tags": [],
                    "type": "delivery",
                    "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
                    "end_time": "17:00:00",
                    "recurring": null,
                    "created_at": "2025-01-23T09:48:45.000000Z",
                    "start_time": "09:00:00",
                    "updated_at": "2025-01-23T09:48:45.000000Z",
                    "delivery_date": "2025-01-23",
                    "external_link": null,
                    "used_capacity": 0,
                    "return_required": null,
                    "used_capacity_2": 0,
                    "used_capacity_3": 0,
                    "return_task_uuid": null,
                    "delivery_from_date": "2025-01-23",
                    "external_reference": null,
                    "signature_required": null,
                    "external_identifier": "mMUIXm",
                    "pending_payment_amount": 0,
                    "delivery_duration_minutes": 0,
                    "notification_template_uuid": null
                },
                "type": "task_created",
                "timestamp": "2025-01-23T10:48:45+01:00"
            },
            "response_status": 200,
            "created_at": "2025-01-23T09:48:45.000000Z",
            "updated_at": "2025-01-23T09:48:45.000000Z"
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 24,
        "to": 1,
        "total": 1,
        "next": null,
        "prev": null
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Webhook

GET
https://api.routelogic.io
/api/v2/webhookEvents/{webhookEvent_uuid}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

webhookEvent_uuid
string

uuid of the corresponding webhook event

Example:
1371416f-7a77-3537-bc5c-85f2752d885d

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookEvents/1371416f-7a77-3537-bc5c-85f2752d885d" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "23b05847-d4fb-464a-9516-63c885c576e6",
        "webhook_url": "https://test.com/webhook/",
        "event_data": {
            "data": {
                "note": null,
                "tags": [],
                "type": "delivery",
                "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
                "end_time": "17:00:00",
                "recurring": null,
                "created_at": "2025-01-23T09:48:45.000000Z",
                "start_time": "09:00:00",
                "updated_at": "2025-01-23T09:48:45.000000Z",
                "delivery_date": "2025-01-23",
                "external_link": null,
                "used_capacity": 0,
                "return_required": null,
                "used_capacity_2": 0,
                "used_capacity_3": 0,
                "return_task_uuid": null,
                "delivery_from_date": "2025-01-23",
                "external_reference": null,
                "signature_required": null,
                "external_identifier": "mMUIXm",
                "pending_payment_amount": 0,
                "delivery_duration_minutes": 0,
                "notification_template_uuid": null
            },
            "type": "task_created",
            "timestamp": "2025-01-23T10:48:45+01:00"
        },
        "response_status": 200,
        "created_at": "2025-01-23T09:48:45.000000Z",
        "updated_at": "2025-01-23T09:48:45.000000Z"
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Resend Webhook

POST
https://api.routelogic.io
/api/v2/webhookEvents/{webhookEvent_uuid}/resend
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

webhookEvent_uuid
string

uuid of the corresponding webhook event

Example:
64012ae6-ded3-3605-8dc4-979d41d030d5
Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/webhookEvents/64012ae6-ded3-3605-8dc4-979d41d030d5/resend" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

POST Resend All Failed Webhooks

POST
https://api.routelogic.io
/api/v2/webhookEvents/resend-all-failed
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

webhookEvent_uuid
string

uuid of the corresponding webhook event

Example:
4522d429-7e90-3a96-b5b1-3212f223775d
Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/webhookEvents/resend-all-failed" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [],
    "meta": {
        "count": 0
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Templates

Templates are the predefined messages that are being sent to your customers.


GET Templates

GET
https://api.routelogic.io
/api/v2/templates
requires authentication

Get collection of templates

RateLimit (16/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/templates" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9e094068-d6bc-455e-936b-2386d6fbc63d",
            "identifier": "LOZ5zXqfJWGJWQfY",
            "title": "Standaard e-mail en SMS notificatie voor bezorgen",
            "default": true,
            "default_pickup": false
        },
        {
            "uuid": "9e094068-d8bc-47b5-af4e-4190d570e149",
            "identifier": "25nUbma92M7ekexP",
            "title": "Standaard e-mail en SMS notificatie voor ophalen",
            "default": false,
            "default_pickup": true
        }
    ]
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Schedules

Schedules are the planned routes for your vehicles.


GET Schedules

GET
https://api.routelogic.io
/api/v2/schedules
requires authentication

Get paginated collection of schedules including vehicles and visits from your company

RateLimit (5/min)
If you like to receive schedule information quicker use webhooks read more here

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filters
object
filters.from_date
string

Find tasks on this date and later. Combine with to_date to select a specific day or a range. Must be a valid date in the format Y-m-d.

Example:
2025-01-23
filters.to_date
string

Find tasks on this date and earlier. Combine with from_date to select a specific day or a range. Must be a valid date in the format Y-m-d.

Example:
2025-01-23
filters.limit
integer

Amount of items on each page. 24 by default. Must not be greater than 24. Must be at least 1.

Example:
87
filters.page
integer

Must be at least 1.

Example:
11

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/schedules?filters[from_date]=2025-01-23&filters[to_date]=2025-01-23&filters[limit]=87&filters[page]=11" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "8c97a7de-0808-4763-a957-111d1940dbdd",
            "date": "2025-01-23",
            "description": "Example Schedule 1",
            "total_travel_time": 0,
            "total_distance": 0,
            "notifications_send": false,
            "schedule_vehicles": {
                "data": [
                    {
                        "uuid": "9e094068-f5b7-4e0d-961d-a272078937b8",
                        "start_time": "08:00:00",
                        "end_time": "10:00:00",
                        "started_at": "2025-01-23 08:03:00",
                        "finished_at": "2025-01-23 10:02:00",
                        "total_travel_time": 0,
                        "total_distance": 1850,
                        "vehicle": {
                            "uuid": "9e094068-dfd3-40ff-9613-7042a86606a8",
                            "licence_plate": "DfkI7fKlj",
                            "description": "Van 1"
                        },
                        "user": {
                            "uuid": "9e094068-e2c5-4be0-a41f-847e778cfc13",
                            "name": "German Tremblay",
                            "public_name": "German Tremblay"
                        },
                        "visits": {
                            "data": [
                                {
                                    "uuid": "9e094068-f607-40b0-b9a3-2616e7f08292",
                                    "type": "task",
                                    "order_index": 0,
                                    "delivery_time": "09:00:00",
                                    "task": {
                                        "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
                                        "type": "delivery",
                                        "external_identifier": "RL68S8HNHIbw",
                                        "external_reference": null,
                                        "note": null,
                                        "pending_payment_amount": 0,
                                        "external_link": null,
                                        "delivery_from_date": "2025-01-23",
                                        "delivery_date": "2025-01-23",
                                        "start_time": "09:00:00",
                                        "end_time": "17:00:00",
                                        "delivery_duration_minutes": 0,
                                        "recurring": null,
                                        "return_required": false,
                                        "signature_required": false,
                                        "used_capacity": 0,
                                        "used_capacity_2": 0,
                                        "used_capacity_3": 0,
                                        "updated_at": "2025-01-23T09:48:45.000000Z",
                                        "created_at": "2025-01-23T09:48:45.000000Z",
                                        "tags": [],
                                        "notification_template_uuid": null,
                                        "return_task_uuid": null,
                                        "address": {
                                            "street": "7572 Trinity Pine Suite 993",
                                            "house_number": "8674",
                                            "house_number_extension": null,
                                            "postal_code": "61204",
                                            "city": "Johanland",
                                            "latitude": 67.930989,
                                            "longitude": 46.181075,
                                            "address_line": "7572 Trinity Pine Suite 993 8674",
                                            "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                                            "country": {
                                                "iso_code": "NL",
                                                "description": "Nederland"
                                            }
                                        },
                                        "customer": {
                                            "name": "Alyson Mitchell",
                                            "email": null,
                                            "phone_number": null
                                        }
                                    },
                                    "schedule_date": "2025-01-22T23:00:00.000000Z",
                                    "address": {
                                        "street": "7572 Trinity Pine Suite 993",
                                        "house_number": "8674",
                                        "house_number_extension": null,
                                        "postal_code": "61204",
                                        "city": "Johanland",
                                        "latitude": 67.930989,
                                        "longitude": 46.181075,
                                        "address_line": "7572 Trinity Pine Suite 993 8674",
                                        "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                                        "country": {
                                            "iso_code": "NL",
                                            "description": "Nederland"
                                        }
                                    },
                                    "scanned_codes": {
                                        "data": [
                                            {
                                                "type": "task_code",
                                                "code_uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
                                                "scanned_count": 1
                                            },
                                            {
                                                "type": "schedule_visit_code",
                                                "code_uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
                                                "scanned_count": 1
                                            }
                                        ]
                                    },
                                    "status": {
                                        "status_identifier": "delivered"
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 12,
        "to": 1,
        "total": 1,
        "next": null,
        "prev": null
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

GET Schedule

GET
https://api.routelogic.io
/api/v2/schedules/{schedule_uuid}
requires authentication

Get a single schedule by its uuid

RateLimit (60/min)

Headers

Authorization
Example:
Bearer {YOUR_API_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

schedule_uuid
string
required

string The UUID of the schedule

Example:
da26702e-a17d-301e-8f8d-198e0ca88355

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/schedules/da26702e-a17d-301e-8f8d-198e0ca88355" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "8c97a7de-0808-4763-a957-111d1940dbdd",
        "date": "2025-01-23",
        "description": "Example Schedule 1",
        "total_travel_time": 0,
        "total_distance": 0,
        "notifications_send": false,
        "schedule_vehicles": {
            "data": [
                {
                    "uuid": "9e094068-f5b7-4e0d-961d-a272078937b8",
                    "start_time": "08:00:00",
                    "end_time": "10:00:00",
                    "started_at": "2025-01-23 08:03:00",
                    "finished_at": "2025-01-23 10:02:00",
                    "total_travel_time": 0,
                    "total_distance": 1850,
                    "vehicle": {
                        "uuid": "9e094068-dfd3-40ff-9613-7042a86606a8",
                        "licence_plate": "DfkI7fKlj",
                        "description": "Van 1"
                    },
                    "user": {
                        "uuid": "9e094068-e2c5-4be0-a41f-847e778cfc13",
                        "name": "German Tremblay",
                        "public_name": "German Tremblay"
                    },
                    "visits": {
                        "data": [
                            {
                                "uuid": "9e094068-f607-40b0-b9a3-2616e7f08292",
                                "type": "task",
                                "order_index": 0,
                                "delivery_time": "09:00:00",
                                "task": {
                                    "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
                                    "type": "delivery",
                                    "external_identifier": "RL68S8HNHIbw",
                                    "external_reference": null,
                                    "note": null,
                                    "pending_payment_amount": 0,
                                    "external_link": null,
                                    "delivery_from_date": "2025-01-23",
                                    "delivery_date": "2025-01-23",
                                    "start_time": "09:00:00",
                                    "end_time": "17:00:00",
                                    "delivery_duration_minutes": 0,
                                    "recurring": null,
                                    "return_required": false,
                                    "signature_required": false,
                                    "used_capacity": 0,
                                    "used_capacity_2": 0,
                                    "used_capacity_3": 0,
                                    "updated_at": "2025-01-23T09:48:45.000000Z",
                                    "created_at": "2025-01-23T09:48:45.000000Z",
                                    "tags": [],
                                    "notification_template_uuid": null,
                                    "return_task_uuid": null,
                                    "address": {
                                        "street": "7572 Trinity Pine Suite 993",
                                        "house_number": "8674",
                                        "house_number_extension": null,
                                        "postal_code": "61204",
                                        "city": "Johanland",
                                        "latitude": 67.930989,
                                        "longitude": 46.181075,
                                        "address_line": "7572 Trinity Pine Suite 993 8674",
                                        "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                                        "country": {
                                            "iso_code": "NL",
                                            "description": "Nederland"
                                        }
                                    },
                                    "customer": {
                                        "name": "Alyson Mitchell",
                                        "email": null,
                                        "phone_number": null
                                    }
                                },
                                "schedule_date": "2025-01-22T23:00:00.000000Z",
                                "address": {
                                    "street": "7572 Trinity Pine Suite 993",
                                    "house_number": "8674",
                                    "house_number_extension": null,
                                    "postal_code": "61204",
                                    "city": "Johanland",
                                    "latitude": 67.930989,
                                    "longitude": 46.181075,
                                    "address_line": "7572 Trinity Pine Suite 993 8674",
                                    "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                                    "country": {
                                        "iso_code": "NL",
                                        "description": "Nederland"
                                    }
                                },
                                "scanned_codes": {
                                    "data": [
                                        {
                                            "type": "task_code",
                                            "code_uuid": "9e094068-f4f6-440b-8cbf-8655d5fd96c5",
                                            "scanned_count": 1
                                        },
                                        {
                                            "type": "schedule_visit_code",
                                            "code_uuid": "9e094068-f9f7-4fec-a1df-cdbc6657a146",
                                            "scanned_count": 1
                                        }
                                    ]
                                },
                                "status": {
                                    "status_identifier": "delivered"
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}
{
    "message": "Access token invalid"
}
{
    "message": "Access token missing"
}
{
    "message": "Required subscription is not active"
}
{
    "message": "This action is unauthorized."
}
{
    "message": "Resource not found"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "field": [
            "The field must be a string"
        ]
    }
}
{
    "message": "Too Many Attempts."
}
{
    "message": "Server Error"
}

Examples

Examples of how to use the API

How to generate an order pick list

It is possible to generate an order pick list for all routes on a specific date. This can be done by sending a GET request to the api/v2/schedules endpoint with the filters.date as a query parameter. The response will show you all the tasks for a specific date in order per vehicle.

How to sync my cms with routelogic (webhooks)

It is possible to sync your CMS with RouteLogic by using webhooks. You can create a webhook in the RouteLogic dashboard that will send a POST request to your CMS every time a task is created, updated or deleted. This way you can keep your CMS up to date with the latest information from RouteLogic. It is possible to set a bearer token for each webhook to make sure that only authorized requests are accepted by your CMS.

Moreover, you van also use the visit_status_updated webhook to get notified when the status of a visit is updated. The internal_note_created webhook can be used to get notified when an internal note is created by a driver.

How to work with barcodes / QR codes

To be able to scan barcodes or QR codes, they have to be linked to a task or visit in RouteLogic. In most cases a code should be linked to a task. This can be done by sending a POST request to the api/v2/tasks/{task_uuid}/codes endpoint with the barcode as a payload. Sometimes a package with the same code should be scanned multiple times. This can be done by adding the amount parameter to the payload.

It is possible to scan a code when delivering an order with the RouteLogic Driver App. The scanned codes will be visible in the manager portal and the scanned codes are also visible in a task endpoint.

Codes and recurring tasks

A recurring task is a task that is repeated on a regular basis. To create a recurring task, you add a recurring object to the payload of the POST request to the api/v2/tasks endpoint. If you want the same code for each delivery, you send a POST request to the api/v2/tasks/{task_uuid}/codes endpoint with the code as a payload. But if you want the code for just a specific delivery, you can add the code to the payload of the POST request to the api/v2/visits/{scheduleVisit_uuid}/codes endpoint. This will make sure that the code is only linked to that specific delivery and not to future deliveries.

Webhooks

This document describes the webhooks that are send by RouteLogic Webhooks are used to notify external systems about events that happen in the system. The webhooks are send to the provided webhook URL in the webhook group. The webhook URL can be set in the company synchronisation settings. It is possible to set multiple webhook URLs and only send specific events.

task_created

This event is sent when a task has been created

{
    "type": "task_created",
    "timestamp": "2025-01-23T10:48:46+01:00",
    "data": {
        "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
        "type": "delivery",
        "external_identifier": "mMUIXm",
        "external_reference": null,
        "note": null,
        "pending_payment_amount": 0,
        "external_link": null,
        "delivery_from_date": "2025-01-23",
        "delivery_date": "2025-01-23",
        "start_time": "09:00:00",
        "end_time": "17:00:00",
        "delivery_duration_minutes": 0,
        "recurring": null,
        "return_required": null,
        "signature_required": null,
        "used_capacity": 0,
        "used_capacity_2": 0,
        "used_capacity_3": 0,
        "updated_at": "2025-01-23T09:48:45.000000Z",
        "created_at": "2025-01-23T09:48:45.000000Z",
        "tags": [],
        "notification_template_uuid": null,
        "return_task_uuid": null
    }
}

task_updated

This event is sent when a task has been updated

{
    "type": "task_updated",
    "timestamp": "2025-01-23T10:48:46+01:00",
    "data": {
        "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
        "type": "delivery",
        "external_identifier": "mMUIXm",
        "external_reference": null,
        "note": null,
        "pending_payment_amount": 0,
        "external_link": null,
        "delivery_from_date": "2025-01-23",
        "delivery_date": "2025-01-23",
        "start_time": "09:00:00",
        "end_time": "17:00:00",
        "delivery_duration_minutes": 0,
        "recurring": null,
        "return_required": null,
        "signature_required": null,
        "used_capacity": 0,
        "used_capacity_2": 0,
        "used_capacity_3": 0,
        "updated_at": "2025-01-23T09:48:45.000000Z",
        "created_at": "2025-01-23T09:48:45.000000Z",
        "tags": [],
        "notification_template_uuid": null,
        "return_task_uuid": null
    }
}

task_deleted

This event is sent when a task has been deleted

{
    "type": "task_deleted",
    "timestamp": "2025-01-23T10:48:46+01:00",
    "data": {
        "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
        "type": "delivery",
        "external_identifier": "mMUIXm",
        "external_reference": null,
        "note": null,
        "pending_payment_amount": 0,
        "external_link": null,
        "delivery_from_date": "2025-01-23",
        "delivery_date": "2025-01-23",
        "start_time": "09:00:00",
        "end_time": "17:00:00",
        "delivery_duration_minutes": 0,
        "recurring": null,
        "return_required": null,
        "signature_required": null,
        "used_capacity": 0,
        "used_capacity_2": 0,
        "used_capacity_3": 0,
        "updated_at": "2025-01-23T09:48:45.000000Z",
        "created_at": "2025-01-23T09:48:45.000000Z",
        "tags": [],
        "notification_template_uuid": null,
        "return_task_uuid": null
    }
}

visit_status_updated

This event is sent when a visit status has been updated

{
    "type": "visit_status_updated",
    "timestamp": "2025-01-23T10:48:46+01:00",
    "data": {
        "uuid": "9e094068-f607-40b0-b9a3-2616e7f08292",
        "type": "task",
        "order_index": 0,
        "delivery_time": "09:00:00",
        "task": {
            "uuid": "9e094068-e509-4b96-b0c0-5c2f14e02396",
            "type": "delivery",
            "external_identifier": "mMUIXm",
            "external_reference": null,
            "note": null,
            "pending_payment_amount": 0,
            "external_link": null,
            "delivery_from_date": "2025-01-23",
            "delivery_date": "2025-01-23",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "delivery_duration_minutes": 0,
            "recurring": null,
            "return_required": false,
            "signature_required": false,
            "used_capacity": 0,
            "used_capacity_2": 0,
            "used_capacity_3": 0,
            "updated_at": "2025-01-23T09:48:45.000000Z",
            "created_at": "2025-01-23T09:48:45.000000Z",
            "tags": [],
            "notification_template_uuid": null,
            "return_task_uuid": null,
            "address": {
                "street": "7572 Trinity Pine Suite 993",
                "house_number": "8674",
                "house_number_extension": null,
                "postal_code": "61204",
                "city": "Johanland",
                "latitude": 67.930989,
                "longitude": 46.181075,
                "address_line": "7572 Trinity Pine Suite 993 8674",
                "full_address_line": "7572 Trinity Pine Suite 993 8674, 61204, Johanland",
                "country": {
                    "iso_code": "NL",
                    "description": "Nederland"
                }
            },
            "customer": {
                "name": "Alyson Mitchell",
                "email": null,
                "phone_number": null
            }
        },
        "schedule_date": null,
        "status": {
            "status_identifier": "delivered"
        },
        "schedule_uuid": "8c97a7de-0808-4763-a957-111d1940dbdd"
    }
}

internal_note_created

This event is send when an internal note has been created

{
    "type": "internal_note_created",
    "timestamp": "2025-01-23T10:48:46+01:00",
    "data": {
        "message": "This is an example message. Drivers use this to communicate with their managers"
    }
}

schedule_calculated

This event is sent everytime a schedule has been calculated

{
    "type": "schedule_calculated",
    "timestamp": "2025-01-23T10:48:46+01:00",
    "data": {
        "uuid": "8c97a7de-0808-4763-a957-111d1940dbdd",
        "date": "2025-01-23",
        "description": "Example Schedule 1",
        "total_travel_time": 0,
        "total_distance": 0,
        "notifications_send": false,
        "schedule_vehicles": {
            "data": [
                {
                    "uuid": "9e094068-f5b7-4e0d-961d-a272078937b8",
                    "start_time": "08:00:00",
                    "end_time": "10:00:00",
                    "started_at": "2025-01-23 08:03:00",
                    "finished_at": "2025-01-23 10:02:00",
                    "total_travel_time": 0,
                    "total_distance": 1850,
                    "visits": {
                        "data": [
                            {
                                "uuid": "9e094068-f607-40b0-b9a3-2616e7f08292",
                                "type": "task",
                                "order_index": 0,
                                "delivery_time": "09:00:00",
                                "schedule_date": "2025-01-22T23:00:00.000000Z",
                                "status": {
                                    "status_identifier": "delivered"
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}