Mind to choose the dedicated server for this application.
Finds the best available slot for qualified field resources to carry out a given type of work order, based on the client's best slot policy. Given a work order type and a location, and a Best Slot Policy, the service allows to find a single slot during which field resource possessing the needed skills have enough time to travel to the work order site from the previous site, perform the work order, and travel to the site of the next work order.
Selection policy
Candidates slots are ranked according to an ordered list of criteria. As soon as a single candidate remains, it is returned; otherwise the next criterion applies.
Best value for each criterion :
TRAVEL_TIME : Lowest travel time added to the field resource's route
GAP_FILL : Highest workload of the field resource on the day of the slot
EARLIEST : Earliest start, regarding the beginning of the searched period
Default policy: TRAVEL_TIME > GAP_FILL > EARLIEST. It applies when
bestSlotCriteria or criteriaOrder is not provided, null or empty.
When only 1 or 2 criteria are provided, they come first (in the given
order), followed by the remaining criteria in the default order.
If candidates are still tied after the three criteria, field resource ID is used to make a decision.
Options not available on this endpoint
The following options of /rest/v3/slots/search are ignored if
provided:
slotSearchConfiguration.searchSize.maximumSlotNumberslotSearchConfiguration.servedSlots.perTimeIntervalslotSearchConfiguration.servedSlots.perResource
Responses
-
OK. The best slot, or an empty
slotlist if no slot is eligible. -
Bad request
-
The work order type is missing
-
A list of time ranges or a an appointment date is missing
-
Received a request requesting slots related to field resources in charge of an area (enableZoneFilter = 'true'). However, no zip code has been provided to help identify the area in which the work order will take place
-
The provided work order type does not exist
-
At least one of the provided offices does not exist
-
The provided dates are in the past
-
The end date of the search interval is earlier than the start date
-
The slot search period is too long. The maximum is 200 weeks
-
The 'offices' list accepts either 'codes' or 'ids', but not both. Please provide only one
-
The provided areas do not exist
-
The skills list accepts either 'codes' or 'ids', but not both. Please provide only one
-
The 'workOrder' can either be a code or an id. Please provide only one
-
Invalid value '%s' for parameter 'areaScope'. Allowed values are: 'RESOURCE', 'TIMESLOT'
-
The parameter 'customerPortalUser' cannot be used with the 'RESOURCE' area scopes
-
Invalid value '%s' for parameter 'criteriaOrder'. Allowed values are: 'GAP_FILL', 'EARLIEST', 'TRAVEL_TIME'
-
The criteria '%s' is duplicated in 'criteriaOrder'. Each criteria can only be provided once
-
The provided address couldn't be geocoded
-
The provided [latitude, longitude] is out of range : [%s, %s]. Expected values : -90 < latitude < 90 and -180 < longitude < 180
-
Coordinates (0,0) are not accepted
-
The travel times and distances could not be computed
-
No route could be found to reach the work order destination (e.g. closed road, unreachable area)
curl \
--request POST 'https://availableslots-production-1.praxedo.com/rest/v1/slots/search/best' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"endCustomer": {
"need": {
"workOrder": {
"code": "MAINTENANCE"
},
"dispatchLocation": {
"address": "28 rue de Mogador, 75009 Paris"
}
},
"availabilities": {
"ranges": [
{
"start": "2026-11-03 07:00:00 UTC",
"end": "2026-11-05 17:00:00 UTC"
}
]
}
}
}'
{
"endCustomer": {
"need": {
"workOrder": {
"code": "MAINTENANCE"
},
"dispatchLocation": {
"address": "28 rue de Mogador, 75009 Paris"
}
},
"availabilities": {
"ranges": [
{
"start": "2026-11-03 07:00:00 UTC",
"end": "2026-11-05 17:00:00 UTC"
}
]
}
}
}
{
"endCustomer": {
"need": {
"workOrder": {
"code": "SAV_FIBER"
},
"overrides": {
"duration": "PT40M",
"skillsRequirement": {
"additionalSkills": [
{
"code": "FIBER",
"constraint": "MANDATORY"
},
{
"code": "COPPER",
"constraint": "OPTIONAL"
}
]
}
},
"dispatchLocation": {
"address": "4 rue du Rhin, 75019 Paris"
}
},
"availabilities": {
"ranges": [
{
"start": "2026-11-03 07:00:00 UTC",
"end": "2026-11-04 17:00:00 UTC"
}
]
}
},
"schedulerRequirements": {
"fieldResourceScheduled": {
"nearDispatchLocation": {
"maximumAddedTravelTime": "PT2H30M"
}
},
"fieldResourceWorkingFor": {
"offices": [
{
"code": "PARISOFFICE"
},
{
"code": "NANTERREOFFICE"
}
]
},
"workingHours": {
"ignoreFieldResourceBreak": true
}
},
"slotSearchConfiguration": {
"servedSlots": {
"startingHours": {
"allowSlotOverlap": false,
"pattern": "HALF"
}
},
"bestSlotCriteria": {
"criteriaOrder": [
"GAP_FILL",
"EARLIEST",
"TRAVEL_TIME"
]
}
}
}
{
"endCustomer": {
"need": {
"workOrder": {
"code": "MAINTENANCE"
},
"dispatchLocation": {
"coordinates": {
"latitude": 48.8755905,
"longitude": 2.3287881
}
}
},
"availabilities": {
"ranges": [
{
"start": "2026-11-10 08:00:00 UTC",
"end": "2026-11-14 18:00:00 UTC"
}
]
}
},
"slotSearchConfiguration": {
"bestSlotCriteria": {
"criteriaOrder": [
"EARLIEST"
]
}
}
}
{
"endCustomer": {
"need": {
"workOrder": {
"code": "MAINTENANCE"
},
"dispatchLocation": {
"address": "28 rue de Mogador, 75009 Paris"
}
},
"availabilities": {
"ranges": [
{
"start": "2026-11-03 07:00:00 UTC",
"end": "2026-11-05 17:00:00 UTC"
}
]
}
},
"schedulerRequirements": {
"fieldResourceScheduled": {
"excludeFieldResourceWithoutSubscription": true
}
},
"slotSearchConfiguration": {
"bestSlotCriteria": {
"criteriaOrder": [
"TRAVEL_TIME",
"GAP_FILL",
"EARLIEST"
]
}
}
}
{
"slot": [
{
"start": "2026-11-03 09:30:00 +0100",
"end": "2026-11-03 10:10:00 +0100",
"fieldResource": [
{
"fieldResource": {
"code": "MAINT_SERV"
},
"office": {
"code": "PARISOFFICE"
},
"hasActivatedSubscription": true,
"selection": {
"addedTravelTime": "PT33M53S",
"travelTimeToLocation": "PT17M45S",
"distanceToLocation": {
"value": 3.539,
"unit": "KILOMETERS"
},
"workLoad": "50%",
"optionalSkillCount": 0
}
}
]
}
]
}
{
"slot": []
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}
{
"errorCode": "string",
"errorMessage": "string"
}