Download OpenAPI specification:Download
The planning API provides information about plannings and their lifecycle.
You can find out more in our developer portal.
The ping
-endpoint can be used for validating a connection with the application.
It will authenticate the caller and returns a pong
response when everything is set-up correctly.
Everything set-up correctly
Authentication required
pong
Returns a cursor paged list of plannings. Results are sorted by created_at
in descending order.
You can find out more about how to use cursors in our developer portal.
OK
Bad request
Authentication required
{- "plannings": [
- {
- "id": "86b54c9d-21d7-4b37-af3d-25f03886153b",
- "created_at": "2024-11-30T08:15:00Z",
- "released_at": "2024-11-30T10:00:00Z",
- "name": "Operational Planning",
- "labels": [
- "operational",
- "DEMO",
- "label-xyz"
]
}
], - "cursor": {
- "self": "c2VsZl9fcGFnZQ",
- "prev": "cHJldmlvdXNfX3BhZ2U",
- "next": "bmV4dF9fcGFnZQ"
}
}
Retrieves detailed information on the given released planning.
Note that information about releases are only stored for 2 weeks after the release was made. If you try to retrieve a release which is older than 2 weeks, you will get a 404 Not Found response.
OK
Authentication required
Not found
{- "release_metadata": {
- "planning_id": "86b54c9d-21d7-4b37-af3d-25f03886153b",
- "released_at": "2024-11-30T10:00:00Z"
}, - "routes": [
- {
- "id": "d2c6013e-9194-46ac-a44c-855abf1176ca",
- "resource_combination": {
- "id": "5a4e8c43-80c0-4d5b-8f7e-32ec94f25d79",
- "employee": {
- "business_id": "EMP-18",
- "name": "Patrick Simmons",
- "custom_data": {
- "shop_manager": "John Smith"
}
}, - "transport_resources": [
- {
- "business_id": "TR-14",
- "license_plate": "2-QBD-124",
- "custom_data": {
- "shop_manager": "John Smith"
}
}
]
}, - "start": {
- "location": {
- "business_id": "LOC_001",
- "name": "Conundra (Oosterzele)",
- "type": "CUSTOMER",
- "geo_point": {
- "latitude": 50.9514048,
- "longitude": 3.8067878
}, - "address": {
- "address_line": "Voordries 41b",
- "city": "Oosterzele",
- "zip_code": "9860",
- "country_code": "BE"
}
}, - "timings": {
- "arrival_at": "2024-12-01T10:30:00Z",
- "service_time": "PT45M",
- "departure_at": "2024-12-01T11:15:00Z"
}
}, - "end": {
- "location": {
- "business_id": "LOC_001",
- "name": "Conundra (Oosterzele)",
- "type": "CUSTOMER",
- "geo_point": {
- "latitude": 50.9514048,
- "longitude": 3.8067878
}, - "address": {
- "address_line": "Voordries 41b",
- "city": "Oosterzele",
- "zip_code": "9860",
- "country_code": "BE"
}
}, - "timings": {
- "arrival_at": "2024-12-01T10:30:00Z",
- "service_time": "PT45M",
- "departure_at": "2024-12-01T11:15:00Z"
}
}, - "breaks": [
- {
- "at": "2024-12-01T11:15:30Z",
- "duration": "PT45M"
}
], - "trips": [
- {
- "stops": [
- {
- "location": {
- "business_id": "LOC_001",
- "name": "Conundra (Oosterzele)",
- "type": "CUSTOMER",
- "geo_point": {
- "latitude": 50.9514048,
- "longitude": 3.8067878
}, - "address": {
- "address_line": "Voordries 41b",
- "city": "Oosterzele",
- "zip_code": "9860",
- "country_code": "BE"
}
}, - "deliveries": [
- {
- "order": {
- "business_id": "O_554",
- "description": "Order 554",
- "capacities": [
- {
- "type": "weight",
- "value": 20.02
}
], - "custom_data": {
- "shop_manager": "John Smith"
}
}, - "timings": {
- "arrival_at": "2024-12-01T10:30:00Z",
- "earliest_arrival_at": "2024-12-01T10:00:00Z",
- "latest_arrival_at": "2024-12-01T12:00:00Z",
- "service_time": "PT15M",
- "wait_time": "PT30M",
- "departure_at": "2024-12-01T11:15:00Z"
}
}
], - "pickups": [
- {
- "order": {
- "business_id": "O_554",
- "description": "Order 554",
- "capacities": [
- {
- "type": "weight",
- "value": 20.02
}
], - "custom_data": {
- "shop_manager": "John Smith"
}
}, - "timings": {
- "arrival_at": "2024-12-01T10:30:00Z",
- "earliest_arrival_at": "2024-12-01T10:00:00Z",
- "latest_arrival_at": "2024-12-01T12:00:00Z",
- "service_time": "PT15M",
- "wait_time": "PT30M",
- "departure_at": "2024-12-01T11:15:00Z"
}
}
], - "timings": {
- "arrival_at": "2024-12-01T10:30:00Z",
- "service_time": "PT15M",
- "wait_time": "PT30M",
- "departure_at": "2024-12-01T11:15:00Z"
}
}
]
}
]
}
]
}
Retrieves detailed information on the given location workload levelling set
.
OK
Authentication required
Not found
{- "business_id": "86b54c9d-21d7-4b37-af3d-25f03886153b",
- "name": "Weekday",
- "settings": [
- {
- "location_business_ids": [
- "LOC_001",
- "LOC_002"
], - "loading_zones": [
- {
- "cost": 10
}
], - "minimum_buffer_duration": "PT30M"
}
]
}
Create or update a location workload levelling set
. A unique ID (business_id
) is required to identify the location workload levelling set
.
Calling this endpoint with an existing business_id
will update the location workload levelling set
.
location workload levelling set created successful
location workload levelling set updated successful
Bad request
Authentication required
Not found
Conflict
This status is returned when an entity is updated with an outdated version in the If-Match header.
{- "name": "Weekday",
- "settings": [
- {
- "location_business_ids": [
- "LOC_001",
- "LOC_002"
], - "loading_zones": [
- {
- "cost": 10
}
], - "minimum_buffer_duration": "PT30M"
}
]
}
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request. See violations for more details.",
- "violations": [
- {
- "field": "limit",
- "message": "Limit must be strictly positive."
}
]
}
Delete a location workload levelling set
by it's business_id
.
Delete successful
Bad request
Authentication required
Not found
This status is returned when an entity is updated with an outdated version in the If-Match header.
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request. See violations for more details.",
- "violations": [
- {
- "field": "limit",
- "message": "Limit must be strictly positive."
}
]
}