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-06-25
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-06-25
filters.types
string[]

Filter on specific task types.

Must be one of:
  • delivery
  • pickup
  • recurring
Example:
["delivery"]
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:
33
filters.page
integer

Must be at least 1.

Example:
44

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks?filters[search]=Amsterdam&filters[from_date]=2025-06-25&filters[to_date]=2025-06-25&filters[types][]=delivery&filters[statuses][]=not_planned&filters[deleted]=include&filters[limit]=33&filters[page]=44" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
            "type": "delivery",
            "external_identifier": "OCjooc",
            "external_reference": null,
            "note": null,
            "pending_payment_amount": 0,
            "external_link": null,
            "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
            "delivery_from_date": null,
            "delivery_date": "2025-06-25",
            "start_time": "08: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-06-25T09:57:12.000000Z",
            "created_at": "2025-06-25T09:57:12.000000Z",
            "tags": [],
            "notification_template_uuid": null,
            "return_task_uuid": null,
            "address": {
                "street": "7721 Jacobs Rapids",
                "house_number": "3608",
                "house_number_extension": null,
                "postal_code": "17217",
                "city": "Lake Linwood",
                "latitude": 5.4321,
                "longitude": 5.4321,
                "address_line": "7721 Jacobs Rapids 3608",
                "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                "country": {
                    "iso_code": "NL",
                    "description": "Nederland"
                }
            },
            "customer": {
                "name": "Alexander Spencer",
                "email": null,
                "phone_number": null
            },
            "next_visit": {
                "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
                "type": "task",
                "order_index": 0,
                "delivery_time": "09:00:00",
                "schedule_date": "2025-06-24T22:00:00.000000Z",
                "address": {
                    "street": "7721 Jacobs Rapids",
                    "house_number": "3608",
                    "house_number_extension": null,
                    "postal_code": "17217",
                    "city": "Lake Linwood",
                    "latitude": 5.4321,
                    "longitude": 5.4321,
                    "address_line": "7721 Jacobs Rapids 3608",
                    "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                    "country": {
                        "iso_code": "NL",
                        "description": "Nederland"
                    }
                },
                "scanned_codes": {
                    "data": [
                        {
                            "type": "task_code",
                            "code_uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
                            "scanned_count": 1
                        },
                        {
                            "type": "schedule_visit_code",
                            "code_uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
                            "scanned_count": 1
                        }
                    ]
                },
                "status": {
                    "status_identifier": "delivered"
                },
                "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
                "files": {
                    "data": [
                        {
                            "type": "image",
                            "key": "OVRuRjBzZ05jVmM3bWVybQ"
                        }
                    ]
                }
            }
        }
    ],
    "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\": \"delivery\",
    \"external_identifier\": \"nf\",
    \"external_reference\": \"kfwcmzwriqrrd\",
    \"note\": \"Please deliver at the side door.\",
    \"pending_payment_amount\": 100,
    \"external_link\": \"https:\\/\\/example.com\\/\",
    \"delivery_from_date\": \"2020-07-25\",
    \"start_time\": \"08:00\",
    \"end_time\": \"17:00\",
    \"delivery_duration_minutes\": 15,
    \"return_required\": false,
    \"return_task_uuid\": \"fed71d3c-c0a7-3e04-8161-f1bc5047de81\",
    \"signature_required\": true,
    \"used_capacity\": 21,
    \"used_capacity_2\": 5,
    \"used_capacity_3\": 7,
    \"notification_template_uuid\": \"83ecd585-48e2-3b88-9d0c-8c51887f9cb2\",
    \"recurring\": {
        \"period\": \"month\",
        \"interval\": 15,
        \"settings\": \"[\\\"string\\\", \\\"third\\\", \\\"monday\\\"]\",
        \"end_date\": \"2068-11-14\"
    },
    \"address\": {
        \"house_number\": \"12\",
        \"house_number_extension\": \"1A\",
        \"street\": \"LongStreet\",
        \"postal_code\": \"1234AB\",
        \"city\": \"Amsterdam\",
        \"country\": \"NL\",
        \"latitude\": 23,
        \"longitude\": 18
    },
    \"customer\": {
        \"email\": \"[email protected]\",
        \"phone_number\": \"+01 234567890\",
        \"name\": \"Andrew\"
    },
    \"tags\": [
        \"cooled\"
    ],
    \"delivery_date\": \"2025-06-25T11:57:14\"
}"
Example response:
{
    "uuid": "9f3d0c03-21c2-4a3c-9027-d914d43f934b",
    "type": "delivery",
    "external_identifier": "RL1DbnENbRUp",
    "external_reference": null,
    "note": null,
    "pending_payment_amount": 0,
    "external_link": null,
    "track_and_trace_link": "http://localhost/tr/GeSMdIumrtfS",
    "delivery_from_date": null,
    "delivery_date": "2025-06-25",
    "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-06-25T09:57:13.000000Z",
    "created_at": "2025-06-25T09:57:13.000000Z",
    "tags": [],
    "notification_template_uuid": null,
    "return_task_uuid": null,
    "address": {
        "street": "",
        "house_number": "",
        "house_number_extension": "",
        "postal_code": "",
        "city": "",
        "latitude": 5.4321,
        "longitude": 5.4321,
        "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:
c9b1e0c1-90d0-3a84-9350-5035c044982a

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/c9b1e0c1-90d0-3a84-9350-5035c044982a" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
    "type": "delivery",
    "external_identifier": "OCjooc",
    "external_reference": null,
    "note": null,
    "pending_payment_amount": 0,
    "external_link": null,
    "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
    "delivery_from_date": null,
    "delivery_date": "2025-06-25",
    "start_time": "08: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-06-25T09:57:12.000000Z",
    "created_at": "2025-06-25T09:57:12.000000Z",
    "tags": [],
    "notification_template_uuid": null,
    "return_task_uuid": null,
    "address": {
        "street": "7721 Jacobs Rapids",
        "house_number": "3608",
        "house_number_extension": null,
        "postal_code": "17217",
        "city": "Lake Linwood",
        "latitude": 5.4321,
        "longitude": 5.4321,
        "address_line": "7721 Jacobs Rapids 3608",
        "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
        "country": {
            "iso_code": "NL",
            "description": "Nederland"
        }
    },
    "customer": {
        "name": "Alexander Spencer",
        "email": null,
        "phone_number": null
    },
    "next_visit": {
        "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
        "type": "task",
        "order_index": 0,
        "delivery_time": "09:00:00",
        "schedule_date": "2025-06-24T22:00:00.000000Z",
        "address": {
            "street": "7721 Jacobs Rapids",
            "house_number": "3608",
            "house_number_extension": null,
            "postal_code": "17217",
            "city": "Lake Linwood",
            "latitude": 5.4321,
            "longitude": 5.4321,
            "address_line": "7721 Jacobs Rapids 3608",
            "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
            "country": {
                "iso_code": "NL",
                "description": "Nederland"
            }
        },
        "scanned_codes": {
            "data": [
                {
                    "type": "task_code",
                    "code_uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
                    "scanned_count": 1
                },
                {
                    "type": "schedule_visit_code",
                    "code_uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
                    "scanned_count": 1
                }
            ]
        },
        "status": {
            "status_identifier": "delivered"
        },
        "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
        "files": {
            "data": [
                {
                    "type": "image",
                    "key": "OVRuRjBzZ05jVmM3bWVybQ"
                }
            ]
        }
    }
}
{
    "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:
0db67aaa-f505-31d7-8cf9-3be05ba41ba1

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/tasks/0db67aaa-f505-31d7-8cf9-3be05ba41ba1" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"pickup\",
    \"external_identifier\": \"ubckbxoddqnemnnjvbnwa\",
    \"external_reference\": \"fxuszspcbppzuxo\",
    \"note\": \"Please deliver at the side door.\",
    \"pending_payment_amount\": 100,
    \"external_link\": \"https:\\/\\/example.com\\/\",
    \"delivery_from_date\": \"2010-09-20\",
    \"start_time\": \"08:00\",
    \"end_time\": \"17:00\",
    \"delivery_duration_minutes\": 24,
    \"return_required\": false,
    \"return_task_uuid\": \"192548c9-7d28-3cda-a37f-554ab1f2da25\",
    \"signature_required\": false,
    \"used_capacity\": 1,
    \"used_capacity_2\": 11,
    \"used_capacity_3\": 22,
    \"notification_template_uuid\": \"406f8026-444b-3004-8782-f536f3fc5d13\",
    \"recurring\": {
        \"period\": \"month\",
        \"interval\": 10,
        \"settings\": \"[\\\"string\\\", \\\"third\\\", \\\"monday\\\"]\",
        \"end_date\": \"2114-06-12\"
    },
    \"address\": {
        \"house_number\": \"12\",
        \"house_number_extension\": \"1A\",
        \"street\": \"LongStreet\",
        \"postal_code\": \"1234AB\",
        \"city\": \"Amsterdam\",
        \"country\": \"NL\",
        \"latitude\": 3,
        \"longitude\": 21
    },
    \"customer\": {
        \"email\": \"[email protected]\",
        \"phone_number\": \"+01 234567890\",
        \"name\": \"Andrew\"
    },
    \"tags\": [
        \"cooled\"
    ],
    \"delivery_date\": \"2025-06-25T11:57:14\"
}"
Example response:
{
    "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
    "type": "delivery",
    "external_identifier": "RLMpYYCBfKZb",
    "external_reference": null,
    "note": null,
    "pending_payment_amount": 0,
    "external_link": null,
    "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
    "delivery_from_date": null,
    "delivery_date": "2025-06-25",
    "start_time": "08: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-06-25T09:57:13.000000Z",
    "created_at": "2025-06-25T09:57:12.000000Z",
    "tags": [],
    "notification_template_uuid": null,
    "return_task_uuid": null,
    "address": {
        "street": "7721 Jacobs Rapids",
        "house_number": "3608",
        "house_number_extension": null,
        "postal_code": "17217",
        "city": "Lake Linwood",
        "latitude": 5.4321,
        "longitude": 5.4321,
        "address_line": "7721 Jacobs Rapids 3608",
        "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
        "country": {
            "iso_code": "NL",
            "description": "Nederland"
        }
    },
    "customer": {
        "name": "Alexander Spencer",
        "email": null,
        "phone_number": null
    },
    "next_visit": {
        "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
        "type": "task",
        "order_index": 0,
        "delivery_time": "09:00:00",
        "schedule_date": "2025-06-24T22:00:00.000000Z",
        "address": {
            "street": "7721 Jacobs Rapids",
            "house_number": "3608",
            "house_number_extension": null,
            "postal_code": "17217",
            "city": "Lake Linwood",
            "latitude": 5.4321,
            "longitude": 5.4321,
            "address_line": "7721 Jacobs Rapids 3608",
            "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
            "country": {
                "iso_code": "NL",
                "description": "Nederland"
            }
        },
        "scanned_codes": {
            "data": [
                {
                    "type": "task_code",
                    "code_uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
                    "scanned_count": 1
                },
                {
                    "type": "schedule_visit_code",
                    "code_uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
                    "scanned_count": 1
                }
            ]
        },
        "status": {
            "status_identifier": "delivered"
        },
        "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
        "files": {
            "data": [
                {
                    "type": "image",
                    "key": "OVRuRjBzZ05jVmM3bWVybQ"
                }
            ]
        }
    }
}
{
    "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:
034cf443-1085-3663-a138-ef75b4713448

Query Parameters

forceRemoveFromSchedules
boolean

Optionally force remove task from all schedules.

Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/034cf443-1085-3663-a138-ef75b4713448?forceRemoveFromSchedules=" \
    --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:
fbc14201-f11b-3e37-855c-d982e9bf477b

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/fbc14201-f11b-3e37-855c-d982e9bf477b/products" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c01-d646-41bc-9eb6-e5d6ef2e4c1b",
            "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:
45acb6b2-8b5a-357e-b756-60daf2c59e43

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/tasks/45acb6b2-8b5a-357e-b756-60daf2c59e43/products" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"identifier\": \"yj\",
            \"quantity\": 24,
            \"unit\": \"pieces\",
            \"description\": \"Table\"
        }
    ]
}"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c03-c071-49f0-a61f-01ffb684b210",
            "quantity": 1,
            "description": "Test line",
            "unit": "pieces",
            "identifier": "2f7e673aae64ffbe3821016e253b45ed"
        },
        {
            "uuid": "9f3d0c03-c11f-4e9c-a83f-a8d01b6196c0",
            "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:
99a04d00-1c4b-3ce1-b15c-2b2a11de1c79
product_uuid
string

uuid of the corresponding product

Example:
e6a8b9e5-b6a0-30e4-9b90-bf3dba6b9d5e

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/99a04d00-1c4b-3ce1-b15c-2b2a11de1c79/products/e6a8b9e5-b6a0-30e4-9b90-bf3dba6b9d5e" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9f3d0c01-d646-41bc-9eb6-e5d6ef2e4c1b",
        "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:
23c2f8ce-a252-36af-9b6e-7da46f07e9c0
product_uuid
string

uuid of the corresponding product

Example:
a24d3999-13bf-37be-a890-d5e5abff1003

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/tasks/23c2f8ce-a252-36af-9b6e-7da46f07e9c0/products/a24d3999-13bf-37be-a890-d5e5abff1003" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"identifier\": \"fwbxmvohcmy\",
    \"quantity\": 6,
    \"unit\": \"weight\",
    \"description\": \"Table\"
}"
Example response:
{
    "data": {
        "uuid": "9f3d0c01-d646-41bc-9eb6-e5d6ef2e4c1b",
        "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:
af010a64-3786-3de2-a30a-8c347a7b72f2
product_uuid
string

uuid of the corresponding product

Example:
48c894ce-dfdd-3504-9507-419e95ef959f
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/af010a64-3786-3de2-a30a-8c347a7b72f2/products/48c894ce-dfdd-3504-9507-419e95ef959f" \
    --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:
90207ca8-4a74-3303-a037-4edca1a95699
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/90207ca8-4a74-3303-a037-4edca1a95699/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:
1d882663-4bc7-3ca9-bc43-744a49bf6ec9

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/1d882663-4bc7-3ca9-bc43-744a49bf6ec9/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
            "amount": 1,
            "code": "3Dn0b95cj6vd0xf3",
            "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"
}

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:
d9f349dd-e1cd-32b1-8b78-b76909a1053b

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/tasks/d9f349dd-e1cd-32b1-8b78-b76909a1053b/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"amount\": 12,
            \"code\": \"gmedcjgdhwvnevdxlbpk\",
            \"description\": \"Table\"
        }
    ]
}"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c03-ef87-4f3f-9646-c23e6ac6d217",
            "amount": 1,
            "code": "1234567890",
            "description": "Box"
        },
        {
            "uuid": "9f3d0c03-f09a-4967-925c-db58b9ce3563",
            "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:
60736a6a-db79-3a71-9b19-f191969db33c
taskCode_uuid
string

uuid of the corresponding task code

Example:
3ef89b3a-95c8-357e-8a02-ae868d679e8e

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/tasks/60736a6a-db79-3a71-9b19-f191969db33c/codes/3ef89b3a-95c8-357e-8a02-ae868d679e8e" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
        "amount": 1,
        "code": "3Dn0b95cj6vd0xf3",
        "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"
}

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:
9048d6c4-6525-3f0d-a11a-ebf72d5bd293
taskCode_uuid
string

uuid of the corresponding task code

Example:
12c4b4d6-0a91-38f1-8bcb-7cb72d58d7c1

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/tasks/9048d6c4-6525-3f0d-a11a-ebf72d5bd293/codes/12c4b4d6-0a91-38f1-8bcb-7cb72d58d7c1" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 13,
    \"code\": \"honknpugxjo\",
    \"description\": \"Table\"
}"
Example response:
{
    "data": {
        "uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
        "amount": 1,
        "code": "3Dn0b95cj6vd0xf3",
        "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"
}

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:
554f2668-405d-3cc6-836a-cc655cb94d40
taskCode_uuid
string

uuid of the corresponding task code

Example:
f978dd55-d019-3958-be7a-df8dc2d255c0
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/tasks/554f2668-405d-3cc6-836a-cc655cb94d40/codes/f978dd55-d019-3958-be7a-df8dc2d255c0" \
    --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:
afc4e077-dc0f-3afc-8434-e511cd1a3ac3

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/visits/afc4e077-dc0f-3afc-8434-e511cd1a3ac3/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
            "amount": 1,
            "code": "c6rJTIlIMe2HIefn",
            "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:
00d634a7-9759-30f5-a4ed-ce672344db54

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/visits/00d634a7-9759-30f5-a4ed-ce672344db54/codes" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"amount\": 17,
            \"code\": \"goxzkolneqtcsrroaffwtwi\",
            \"description\": \"Table\"
        }
    ]
}"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c04-9bbc-42d9-a3a2-d8a22f663511",
            "amount": 1,
            "code": "1234567890",
            "description": "Box"
        },
        {
            "uuid": "9f3d0c04-9c65-44d8-aaa5-8911b69be474",
            "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:
f54ea857-56be-39e6-987e-95e27b753214
scheduleVisitCode_uuid
string

uuid of the corresponding scheduled visit code

Example:
080d6170-ef7e-3359-abbb-1d94af4445dd

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/visits/f54ea857-56be-39e6-987e-95e27b753214/codes/080d6170-ef7e-3359-abbb-1d94af4445dd" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
        "amount": 1,
        "code": "c6rJTIlIMe2HIefn",
        "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:
8dda50d6-bc6f-3458-a31c-7983291a5450
scheduleVisitCode_uuid
string

uuid of the corresponding scheduled visit code

Example:
b4b6cf4f-2792-387c-8acc-bda2d9136d69

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/visits/8dda50d6-bc6f-3458-a31c-7983291a5450/codes/b4b6cf4f-2792-387c-8acc-bda2d9136d69" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 16,
    \"code\": \"zretixmhhn\",
    \"description\": \"Table\"
}"
Example response:
{
    "data": {
        "uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
        "amount": 1,
        "code": "c6rJTIlIMe2HIefn",
        "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:
14844d64-01db-3c4d-8d5d-99b2b9306396
scheduleVisitCode_uuid
string

uuid of the corresponding scheduled visit code

Example:
09f12ad1-c101-3d2e-b80f-d61ab0cd62f2
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/visits/14844d64-01db-3c4d-8d5d-99b2b9306396/codes/09f12ad1-c101-3d2e-b80f-d61ab0cd62f2" \
    --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:
51
filters.page
integer

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

Example:
50

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookGroups?filters[limit]=51&filters[page]=50" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "9f3d0c01-e09b-4f46-9ba7-8371dcd150a9",
            "name": "Webhook group 1",
            "description": "Task webhook group 1",
            "webhook_url": "https://test.com/webhook/",
            "events": []
        },
        {
            "uuid": "9f3d0c02-046e-49e9-887d-c9f0663022d3",
            "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\": [
        \"visit_status_updated\"
    ]
}"
Example response:
{
    "data": {
        "uuid": "9f3d0c04-29a2-4b3e-90b0-4e912f2423de",
        "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:
5126846f-612c-3f7b-b038-62bf5efadfff

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookGroups/5126846f-612c-3f7b-b038-62bf5efadfff" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "9f3d0c02-046e-49e9-887d-c9f0663022d3",
        "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:
b49acb75-ee35-35f8-b587-f7dffb081e8f

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.routelogic.io/api/v2/webhookGroups/b49acb75-ee35-35f8-b587-f7dffb081e8f" \
    --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\": [
        \"sending_notifications\"
    ]
}"
Example response:
{
    "data": {
        "uuid": "9f3d0c02-046e-49e9-887d-c9f0663022d3",
        "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:
276f0a66-5f24-3010-9c6d-6ea22354fb77
Example request:
curl --request DELETE \
    "https://api.routelogic.io/api/v2/webhookGroups/276f0a66-5f24-3010-9c6d-6ea22354fb77" \
    --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.

filters.limit
integer

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

Example:
25
filters.page
integer

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

Example:
65

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookEvents?filters[status_failed]=&filters[limit]=25&filters[page]=65" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "306c8722-99c0-4e96-aefb-cb1d3f676fea",
            "webhook_url": "https://test.com/webhook/",
            "event_data": {
                "data": {
                    "note": null,
                    "tags": [],
                    "type": "delivery",
                    "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                    "end_time": "17:00:00",
                    "recurring": null,
                    "created_at": "2025-06-25T09:57:12.000000Z",
                    "start_time": "08:00:00",
                    "updated_at": "2025-06-25T09:57:12.000000Z",
                    "delivery_date": "2025-06-25",
                    "external_link": null,
                    "used_capacity": 0,
                    "return_required": null,
                    "used_capacity_2": 0,
                    "used_capacity_3": 0,
                    "return_task_uuid": null,
                    "delivery_from_date": null,
                    "external_reference": null,
                    "signature_required": null,
                    "external_identifier": "OCjooc",
                    "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
                    "pending_payment_amount": 0,
                    "delivery_duration_minutes": 0,
                    "notification_template_uuid": null
                },
                "type": "task_created",
                "timestamp": "2025-06-25T11:57:12+02:00"
            },
            "response_status": 200,
            "created_at": "2025-06-25T09:57:12.000000Z",
            "updated_at": "2025-06-25T09:57:12.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:
2f9fc7e3-3c04-3c7c-9e8a-76d889525e15

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/webhookEvents/2f9fc7e3-3c04-3c7c-9e8a-76d889525e15" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "306c8722-99c0-4e96-aefb-cb1d3f676fea",
        "webhook_url": "https://test.com/webhook/",
        "event_data": {
            "data": {
                "note": null,
                "tags": [],
                "type": "delivery",
                "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                "end_time": "17:00:00",
                "recurring": null,
                "created_at": "2025-06-25T09:57:12.000000Z",
                "start_time": "08:00:00",
                "updated_at": "2025-06-25T09:57:12.000000Z",
                "delivery_date": "2025-06-25",
                "external_link": null,
                "used_capacity": 0,
                "return_required": null,
                "used_capacity_2": 0,
                "used_capacity_3": 0,
                "return_task_uuid": null,
                "delivery_from_date": null,
                "external_reference": null,
                "signature_required": null,
                "external_identifier": "OCjooc",
                "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
                "pending_payment_amount": 0,
                "delivery_duration_minutes": 0,
                "notification_template_uuid": null
            },
            "type": "task_created",
            "timestamp": "2025-06-25T11:57:12+02:00"
        },
        "response_status": 200,
        "created_at": "2025-06-25T09:57:12.000000Z",
        "updated_at": "2025-06-25T09:57:12.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:
11a8b50e-1de3-3ea7-baa0-18f2b56601e1
Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/webhookEvents/11a8b50e-1de3-3ea7-baa0-18f2b56601e1/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
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": "9f3d0c01-8cd0-4b93-803b-6ea4b28d3c81",
            "identifier": "0lMWhC3VfVcRdxHb",
            "title": "Standaard e-mail en SMS notificatie voor bezorgen",
            "default": true,
            "default_pickup": false
        },
        {
            "uuid": "9f3d0c01-9107-40cd-8baf-55f04125d69a",
            "identifier": "2DEV3mqdPiTJr6uR",
            "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-06-25
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-06-25
filters.limit
integer

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

Example:
55
filters.page
integer

Must be at least 1.

Example:
73

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/schedules?filters[from_date]=2025-06-25&filters[to_date]=2025-06-25&filters[limit]=55&filters[page]=73" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "uuid": "d95b3567-0af9-4e7f-aa79-d4b4003c84d2",
            "date": "2025-06-25",
            "description": "Example Schedule 1",
            "total_travel_time": 0,
            "total_distance": 0,
            "notifications_send": false,
            "schedule_vehicles": {
                "data": [
                    {
                        "uuid": "9f3d0c01-db35-4ece-b722-353dbd30d1b4",
                        "start_time": "08:00:00",
                        "end_time": "10:00:00",
                        "started_at": "2025-06-25 08:03:00",
                        "finished_at": "2025-06-25 10:02:00",
                        "total_travel_time": 0,
                        "total_distance": 1850,
                        "vehicle": {
                            "uuid": "9f3d0c01-9fc0-4cdb-9a80-4f9fc4c14401",
                            "licence_plate": "CjyC6xh2F",
                            "description": "Van 1"
                        },
                        "user": {
                            "uuid": "9f3d0c01-a8b4-46c5-895b-a3be17741615",
                            "name": "Mr. Jett Stamm",
                            "public_name": "Mr. Jett Stamm"
                        },
                        "visits": {
                            "data": [
                                {
                                    "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
                                    "type": "task",
                                    "order_index": 0,
                                    "delivery_time": "09:00:00",
                                    "eta_start": "08:25",
                                    "eta_end": "09:25",
                                    "task": {
                                        "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                                        "type": "delivery",
                                        "external_identifier": "RLMpYYCBfKZb",
                                        "external_reference": null,
                                        "note": null,
                                        "pending_payment_amount": 0,
                                        "external_link": null,
                                        "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
                                        "delivery_from_date": null,
                                        "delivery_date": "2025-06-25",
                                        "start_time": "08: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-06-25T09:57:13.000000Z",
                                        "created_at": "2025-06-25T09:57:12.000000Z",
                                        "tags": [],
                                        "notification_template_uuid": null,
                                        "return_task_uuid": null,
                                        "address": {
                                            "street": "7721 Jacobs Rapids",
                                            "house_number": "3608",
                                            "house_number_extension": null,
                                            "postal_code": "17217",
                                            "city": "Lake Linwood",
                                            "latitude": 5.4321,
                                            "longitude": 5.4321,
                                            "address_line": "7721 Jacobs Rapids 3608",
                                            "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                                            "country": {
                                                "iso_code": "NL",
                                                "description": "Nederland"
                                            }
                                        },
                                        "customer": {
                                            "name": "Alexander Spencer",
                                            "email": null,
                                            "phone_number": null
                                        }
                                    },
                                    "schedule_date": "2025-06-24T22:00:00.000000Z",
                                    "address": {
                                        "street": "7721 Jacobs Rapids",
                                        "house_number": "3608",
                                        "house_number_extension": null,
                                        "postal_code": "17217",
                                        "city": "Lake Linwood",
                                        "latitude": 5.4321,
                                        "longitude": 5.4321,
                                        "address_line": "7721 Jacobs Rapids 3608",
                                        "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                                        "country": {
                                            "iso_code": "NL",
                                            "description": "Nederland"
                                        }
                                    },
                                    "scanned_codes": {
                                        "data": [
                                            {
                                                "type": "task_code",
                                                "code_uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
                                                "scanned_count": 1
                                            },
                                            {
                                                "type": "schedule_visit_code",
                                                "code_uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
                                                "scanned_count": 1
                                            }
                                        ]
                                    },
                                    "status": {
                                        "status_identifier": "delivered"
                                    },
                                    "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
                                    "files": {
                                        "data": [
                                            {
                                                "type": "image",
                                                "key": "OVRuRjBzZ05jVmM3bWVybQ"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ],
    "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:
7428e252-f029-3607-a486-fa260226eda5

Response Fields

Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/schedules/7428e252-f029-3607-a486-fa260226eda5" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "d95b3567-0af9-4e7f-aa79-d4b4003c84d2",
        "date": "2025-06-25",
        "description": "Example Schedule 1",
        "total_travel_time": 0,
        "total_distance": 0,
        "notifications_send": false,
        "schedule_vehicles": {
            "data": [
                {
                    "uuid": "9f3d0c01-db35-4ece-b722-353dbd30d1b4",
                    "start_time": "08:00:00",
                    "end_time": "10:00:00",
                    "started_at": "2025-06-25 08:03:00",
                    "finished_at": "2025-06-25 10:02:00",
                    "total_travel_time": 0,
                    "total_distance": 1850,
                    "vehicle": {
                        "uuid": "9f3d0c01-9fc0-4cdb-9a80-4f9fc4c14401",
                        "licence_plate": "CjyC6xh2F",
                        "description": "Van 1"
                    },
                    "user": {
                        "uuid": "9f3d0c01-a8b4-46c5-895b-a3be17741615",
                        "name": "Mr. Jett Stamm",
                        "public_name": "Mr. Jett Stamm"
                    },
                    "visits": {
                        "data": [
                            {
                                "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
                                "type": "task",
                                "order_index": 0,
                                "delivery_time": "09:00:00",
                                "eta_start": "08:25",
                                "eta_end": "09:25",
                                "task": {
                                    "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                                    "type": "delivery",
                                    "external_identifier": "RLMpYYCBfKZb",
                                    "external_reference": null,
                                    "note": null,
                                    "pending_payment_amount": 0,
                                    "external_link": null,
                                    "track_and_trace_link": "http://localhost/tr/jmQJQGCr0GvW",
                                    "delivery_from_date": null,
                                    "delivery_date": "2025-06-25",
                                    "start_time": "08: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-06-25T09:57:13.000000Z",
                                    "created_at": "2025-06-25T09:57:12.000000Z",
                                    "tags": [],
                                    "notification_template_uuid": null,
                                    "return_task_uuid": null,
                                    "address": {
                                        "street": "7721 Jacobs Rapids",
                                        "house_number": "3608",
                                        "house_number_extension": null,
                                        "postal_code": "17217",
                                        "city": "Lake Linwood",
                                        "latitude": 5.4321,
                                        "longitude": 5.4321,
                                        "address_line": "7721 Jacobs Rapids 3608",
                                        "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                                        "country": {
                                            "iso_code": "NL",
                                            "description": "Nederland"
                                        }
                                    },
                                    "customer": {
                                        "name": "Alexander Spencer",
                                        "email": null,
                                        "phone_number": null
                                    }
                                },
                                "schedule_date": "2025-06-24T22:00:00.000000Z",
                                "address": {
                                    "street": "7721 Jacobs Rapids",
                                    "house_number": "3608",
                                    "house_number_extension": null,
                                    "postal_code": "17217",
                                    "city": "Lake Linwood",
                                    "latitude": 5.4321,
                                    "longitude": 5.4321,
                                    "address_line": "7721 Jacobs Rapids 3608",
                                    "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                                    "country": {
                                        "iso_code": "NL",
                                        "description": "Nederland"
                                    }
                                },
                                "scanned_codes": {
                                    "data": [
                                        {
                                            "type": "task_code",
                                            "code_uuid": "9f3d0c01-d875-413e-9904-4ee920d6cb2c",
                                            "scanned_count": 1
                                        },
                                        {
                                            "type": "schedule_visit_code",
                                            "code_uuid": "9f3d0c01-e741-436b-b289-7bb99d21a624",
                                            "scanned_count": 1
                                        }
                                    ]
                                },
                                "status": {
                                    "status_identifier": "delivered"
                                },
                                "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
                                "files": {
                                    "data": [
                                        {
                                            "type": "image",
                                            "key": "OVRuRjBzZ05jVmM3bWVybQ"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}
{
    "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 Send schedule notifications

POST
https://api.routelogic.io
/api/v2/schedules/{schedule_uuid}/send-notifications
requires authentication

Send the notifications to all the customers within a schedule.

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
Example:
d95b3567-0af9-4e7f-aa79-d4b4003c84d2

Body Parameters

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/schedules/d95b3567-0af9-4e7f-aa79-d4b4003c84d2/send-notifications" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"types\": [
        \"email\"
    ]
}"
Example response:
[Empty response]
{
    "message": "Insufficient sms credits."
}
{
    "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"
}

Beta Appointments


POST api/v2/beta/appointments/availability

POST
https://api.routelogic.io
/api/v2/beta/appointments/availability

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/beta/appointments/availability" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": {
        \"latitude\": 24.15259,
        \"longitude\": 7726601.89,
        \"tags\": [
            \"tkzfzuhxezi\"
        ],
        \"delivery_duration_minutes\": 5,
        \"start_date\": \"2042-12-13\",
        \"end_date\": \"2090-10-17\",
        \"used_capacity\": 10,
        \"used_capacity_2\": 11,
        \"used_capacity_3\": 4,
        \"type\": \"pickup\"
    }
}"

POST api/v2/beta/appointments

POST
https://api.routelogic.io
/api/v2/beta/appointments

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.routelogic.io/api/v2/beta/appointments" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"delivery\",
    \"external_identifier\": \"ORD-12345\",
    \"external_reference\": \"REF-6789\",
    \"note\": \"Please deliver at the side door.\",
    \"external_link\": \"https:\\/\\/example.com\\/\",
    \"start_time\": \"08:00\",
    \"end_time\": \"17:00\",
    \"delivery_duration_minutes\": 30,
    \"signature_required\": false,
    \"used_capacity\": 10.5,
    \"used_capacity_2\": 5.25,
    \"used_capacity_3\": 2.75,
    \"notification_template_uuid\": \"123e4567-e89b-12d3-a456-426614174000\",
    \"customer\": \"ut\",
    \"tags\": [
        \"cooled\"
    ],
    \"appointment_date\": \"2023-12-31\",
    \"address\": {
        \"house_number\": \"12\",
        \"house_number_extension\": \"1A\",
        \"street\": \"LongStreet\",
        \"postal_code\": \"1234AB\",
        \"city\": \"Amsterdam\",
        \"country\": \"NL\",
        \"latitude\": 52.3675734,
        \"longitude\": 4.9041389
    }
}"

Files

Files are photo's and signature's from a visit


GET File

GET
https://api.routelogic.io
/api/v2/file/{key}
requires authentication

Get the image of a photo or a signature by key

RateLimit (60/min)

Headers

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

URL Parameters

key
string
required

The key of the related image

Example:
Y2DAi383qkBcm
Example request:
curl --request GET \
    --get "https://api.routelogic.io/api/v2/file/Y2DAi383qkBcm" \
    --header "Authorization: Bearer {YOUR_API_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Binary data] -  The image
{
    "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"
}

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.

Sending Notifications from Your Own Application

You can send notifications directly from your own application. To ensure this also works with the "Send Notifications" button in the Routelogic interface and to keep Routelogic aware of the notification status we recommend following this flow:

  1. Enable Self-Managed Notifications Go to Notifications > Manage notifications yourself and make sure this setting is turned on.
  2. Set Up the sending_notifications Webhook Configure the sending_notifications webhook. When this webhook is triggered, handle the messages in your application as needed.
  3. Automate Notification Sending (Optional) If you want to automate notifications (without user interaction), do not send the notifications directly from your application. Instead, use the API endpoint: /api/v2/schedules/{schedule_uuid}/send-notifications This approach ensures Routelogic is aware of the notification status and triggers the webhook so you can process the messages accordingly.

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-06-25T11:57:14+02:00",
    "data": {
        "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
        "type": "delivery",
        "external_identifier": "OCjooc",
        "external_reference": null,
        "note": null,
        "pending_payment_amount": 0,
        "external_link": null,
        "track_and_trace_link": "http:\/\/localhost\/tr\/jmQJQGCr0GvW",
        "delivery_from_date": null,
        "delivery_date": "2025-06-25",
        "start_time": "08: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-06-25T09:57:12.000000Z",
        "created_at": "2025-06-25T09:57:12.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-06-25T11:57:14+02:00",
    "data": {
        "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
        "type": "delivery",
        "external_identifier": "OCjooc",
        "external_reference": null,
        "note": null,
        "pending_payment_amount": 0,
        "external_link": null,
        "track_and_trace_link": "http:\/\/localhost\/tr\/jmQJQGCr0GvW",
        "delivery_from_date": null,
        "delivery_date": "2025-06-25",
        "start_time": "08: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-06-25T09:57:12.000000Z",
        "created_at": "2025-06-25T09:57:12.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-06-25T11:57:14+02:00",
    "data": {
        "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
        "type": "delivery",
        "external_identifier": "OCjooc",
        "external_reference": null,
        "note": null,
        "pending_payment_amount": 0,
        "external_link": null,
        "track_and_trace_link": "http:\/\/localhost\/tr\/jmQJQGCr0GvW",
        "delivery_from_date": null,
        "delivery_date": "2025-06-25",
        "start_time": "08: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-06-25T09:57:12.000000Z",
        "created_at": "2025-06-25T09:57:12.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-06-25T11:57:14+02:00",
    "data": {
        "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
        "type": "task",
        "order_index": 0,
        "delivery_time": "09:00:00",
        "eta_start": "08:25",
        "eta_end": "09:25",
        "task": {
            "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
            "type": "delivery",
            "external_identifier": "OCjooc",
            "external_reference": null,
            "note": null,
            "pending_payment_amount": 0,
            "external_link": null,
            "track_and_trace_link": "http:\/\/localhost\/tr\/jmQJQGCr0GvW",
            "delivery_from_date": null,
            "delivery_date": "2025-06-25",
            "start_time": "08: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-06-25T09:57:12.000000Z",
            "created_at": "2025-06-25T09:57:12.000000Z",
            "tags": [],
            "notification_template_uuid": null,
            "return_task_uuid": null,
            "address": {
                "street": "7721 Jacobs Rapids",
                "house_number": "3608",
                "house_number_extension": null,
                "postal_code": "17217",
                "city": "Lake Linwood",
                "latitude": 5.4321,
                "longitude": 5.4321,
                "address_line": "7721 Jacobs Rapids 3608",
                "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                "country": {
                    "iso_code": "NL",
                    "description": "Nederland"
                }
            },
            "customer": {
                "name": "Alexander Spencer",
                "email": null,
                "phone_number": null
            }
        },
        "schedule_date": "2025-06-24T22:00:00.000000Z",
        "status": {
            "status_identifier": "delivered"
        },
        "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
        "files": {
            "data": [
                {
                    "type": "image",
                    "key": "OVRuRjBzZ05jVmM3bWVybQ"
                }
            ]
        },
        "schedule_uuid": "d95b3567-0af9-4e7f-aa79-d4b4003c84d2"
    }
}

internal_note_created

This event is send when an internal note has been created

{
    "type": "internal_note_created",
    "timestamp": "2025-06-25T11:57:14+02:00",
    "data": {
        "message": "This is an example message. Drivers use this to communicate with their managers",
        "visit": {
            "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
            "type": "task",
            "order_index": 0,
            "delivery_time": "09:00:00",
            "eta_start": "08:25",
            "eta_end": "09:25",
            "task": {
                "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                "type": "delivery",
                "external_identifier": "RLMpYYCBfKZb",
                "external_reference": null,
                "note": null,
                "pending_payment_amount": 0,
                "external_link": null,
                "track_and_trace_link": "http:\/\/localhost\/tr\/jmQJQGCr0GvW",
                "delivery_from_date": null,
                "delivery_date": "2025-06-25",
                "start_time": "08: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-06-25T09:57:13.000000Z",
                "created_at": "2025-06-25T09:57:12.000000Z",
                "tags": [],
                "notification_template_uuid": null,
                "return_task_uuid": null,
                "address": {
                    "street": "7721 Jacobs Rapids",
                    "house_number": "3608",
                    "house_number_extension": null,
                    "postal_code": "17217",
                    "city": "Lake Linwood",
                    "latitude": 5.4321,
                    "longitude": 5.4321,
                    "address_line": "7721 Jacobs Rapids 3608",
                    "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                    "country": {
                        "iso_code": "NL",
                        "description": "Nederland"
                    }
                },
                "customer": {
                    "name": "Alexander Spencer",
                    "email": null,
                    "phone_number": null
                }
            },
            "schedule_date": "2025-06-24T22:00:00.000000Z",
            "status": {
                "status_identifier": "delivered"
            },
            "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
            "files": {
                "data": [
                    {
                        "type": "image",
                        "key": "OVRuRjBzZ05jVmM3bWVybQ"
                    }
                ]
            }
        }
    }
}

schedule_calculated

This event is sent everytime a schedule has been calculated

{
    "type": "schedule_calculated",
    "timestamp": "2025-06-25T11:57:14+02:00",
    "data": {
        "uuid": "d95b3567-0af9-4e7f-aa79-d4b4003c84d2",
        "date": "2025-06-25",
        "description": "Example Schedule 1",
        "total_travel_time": 0,
        "total_distance": 0,
        "notifications_send": false,
        "schedule_vehicles": {
            "data": [
                {
                    "uuid": "9f3d0c01-db35-4ece-b722-353dbd30d1b4",
                    "start_time": "08:00:00",
                    "end_time": "10:00:00",
                    "started_at": "2025-06-25 08:03:00",
                    "finished_at": "2025-06-25 10:02:00",
                    "total_travel_time": 0,
                    "total_distance": 1850,
                    "vehicle": {
                        "uuid": "9f3d0c01-9fc0-4cdb-9a80-4f9fc4c14401",
                        "licence_plate": "CjyC6xh2F",
                        "description": "Van 1"
                    },
                    "visits": {
                        "data": [
                            {
                                "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
                                "type": "task",
                                "order_index": 0,
                                "delivery_time": "09:00:00",
                                "task": {
                                    "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                                    "external_identifier": "RLMpYYCBfKZb"
                                },
                                "task_uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                                "schedule_date": "2025-06-24T22:00:00.000000Z",
                                "status": {
                                    "status_identifier": "delivered"
                                },
                                "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj",
                                "files": {
                                    "data": [
                                        {
                                            "type": "image",
                                            "key": "OVRuRjBzZ05jVmM3bWVybQ"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}

sending_notifications

This event is sent everytime the notifications are being send through the button in the application or the api.

{
    "type": "sending_notifications",
    "timestamp": "2025-06-25T11:57:14+02:00",
    "data": {
        "uuid": "d95b3567-0af9-4e7f-aa79-d4b4003c84d2",
        "date": "2025-06-25",
        "description": "Example Schedule 1",
        "total_travel_time": 0,
        "total_distance": 0,
        "notifications_send": false,
        "first_notification": true,
        "schedule_vehicles": {
            "data": [
                {
                    "uuid": "9f3d0c01-db35-4ece-b722-353dbd30d1b4",
                    "start_time": "08:00:00",
                    "end_time": "10:00:00",
                    "started_at": "2025-06-25 08:03:00",
                    "finished_at": "2025-06-25 10:02:00",
                    "total_travel_time": 0,
                    "total_distance": 1850,
                    "vehicle": {
                        "uuid": "9f3d0c01-9fc0-4cdb-9a80-4f9fc4c14401",
                        "licence_plate": "CjyC6xh2F",
                        "description": "Van 1"
                    },
                    "user": {
                        "uuid": "9f3d0c01-a8b4-46c5-895b-a3be17741615",
                        "name": "Mr. Jett Stamm",
                        "public_name": "Mr. Jett Stamm"
                    },
                    "visits": {
                        "data": [
                            {
                                "uuid": "9f3d0c01-dcb0-4992-b6d0-7c25e4f1bcac",
                                "type": "task",
                                "order_index": 0,
                                "delivery_time": "09:00:00",
                                "eta_start": "08:25",
                                "eta_end": "09:25",
                                "task": {
                                    "uuid": "9f3d0c01-af0c-4eda-b133-c2a4c38a6ac7",
                                    "type": "delivery",
                                    "external_identifier": "RLMpYYCBfKZb",
                                    "external_reference": null,
                                    "note": null,
                                    "pending_payment_amount": 0,
                                    "external_link": null,
                                    "track_and_trace_link": "http:\/\/localhost\/tr\/jmQJQGCr0GvW",
                                    "delivery_from_date": null,
                                    "delivery_date": "2025-06-25",
                                    "start_time": "08: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-06-25T09:57:13.000000Z",
                                    "created_at": "2025-06-25T09:57:12.000000Z",
                                    "tags": [],
                                    "notification_template_uuid": null,
                                    "return_task_uuid": null,
                                    "address": {
                                        "street": "7721 Jacobs Rapids",
                                        "house_number": "3608",
                                        "house_number_extension": null,
                                        "postal_code": "17217",
                                        "city": "Lake Linwood",
                                        "latitude": 5.4321,
                                        "longitude": 5.4321,
                                        "address_line": "7721 Jacobs Rapids 3608",
                                        "full_address_line": "7721 Jacobs Rapids 3608, 17217, Lake Linwood",
                                        "country": {
                                            "iso_code": "NL",
                                            "description": "Nederland"
                                        }
                                    },
                                    "customer": {
                                        "name": "Alexander Spencer",
                                        "email": null,
                                        "phone_number": null
                                    }
                                },
                                "schedule_date": "2025-06-24T22:00:00.000000Z",
                                "status": {
                                    "status_identifier": "delivered"
                                },
                                "signature": "OWYzZDBjMDEtZGNiMC00OTkyLWI2ZDAtN2MyNWU0ZjFiY2Fj"
                            }
                        ]
                    }
                }
            ]
        }
    }
}