{"openapi":"3.0.1","info":{"title":"RoutiGo Core REST API","contact":{"name":"RoutiGo Team","url":"https://www.routigo.com","email":"team@routigo.com"},"version":"1.0"},"servers":[{"url":"https://api.routigo.com/api/v1"}],"tags":[{"name":"Shipments"},{"name":"Tours"}],"paths":{"/destinations":{"get":{"tags":["destinations-handler"],"summary":"Retrieve all available destinations for user in every company and service center allowed","operationId":"getAvailableDestinations","parameters":[{"name":"planDate","in":"query","description":"A date used for finding relevant destinations. This refers to the date the destination is planned to be visited. (full-date notation as defined by RFC 3339, section 5.6, for example, 2023-09-18)","schema":{"type":"string"},"example":"2023-09-18"},{"name":"from","in":"query","description":"Sets up the earliest date for search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2023-05-07). It\n must be used alongside the \"to\" parameter. Incompatible with the \"planDate\" parameter.","schema":{"type":"string"},"example":"2023-05-07"},{"name":"to","in":"query","description":"Sets up the latest date for search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2023-05-10). It\n must be used alongside the \"from\" parameter. Incompatible with the \"planDate\" parameter.","schema":{"type":"string"},"example":"2023-05-10"}],"responses":{"200":{"description":"The available destinations have been successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableDestinationsByCompany"}}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/planning/tours":{"get":{"tags":["Tours"],"summary":"Retrieve planning details of tours on a given date","operationId":"getPlanningByDate","parameters":[{"name":"planDate","in":"query","description":"The date at which the tour is planned (full-date notation as defined by RFC 3339, section 5.6, for example, 2023-09-18)","schema":{"type":"string"},"example":"2023-09-18"}],"responses":{"200":{"description":"The available tours have been successfully retrieved.","content":{"application/json":{}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/planning/tours/overview":{"get":{"tags":["Tours"],"summary":"Retrieve an overview of available tours on a given date","operationId":"getPlanningOverviewByDate","parameters":[{"name":"planDate","in":"query","description":"The date at which the tour is planned (full-date notation as defined by RFC 3339, section 5.6, for example, 2023-09-18)","schema":{"type":"string"},"example":"2023-09-18"}],"responses":{"200":{"description":"The available tours have been successfully retrieved.","content":{"application/json":{}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/planning/tours/overview/{svcId}":{"get":{"tags":["Tours"],"summary":"Retrieve an overview of available tours in a service center on a given date","operationId":"getPlanningOverviewByDateAndSvc","parameters":[{"name":"svcId","in":"path","description":"The id of the service center where to look for the tours","required":true,"schema":{"type":"string"},"example":"DEMEERN"},{"name":"planDate","in":"query","description":"The date at which the tour is planned (full-date notation as defined by RFC 3339, section 5.6, for example, 2023-09-18)","schema":{"type":"string"},"example":"2023-09-18"}],"responses":{"200":{"description":"The available tours have been successfully retrieved.","content":{"application/json":{}}},"204":{"description":"The retrieval has been rejected as the tours could not be found.","content":{"application/json":{}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/planning/tours/{svcId}":{"get":{"tags":["Tours"],"summary":"Get planning details of tours in a service center on a given date","operationId":"getPlanningByDateAndSvc","parameters":[{"name":"svcId","in":"path","description":"The id of the service center where to look for the tours","required":true,"schema":{"type":"string"},"example":"1236-JHGSD"},{"name":"planDate","in":"query","description":"The date at which the tour is planned (full-date notation as defined by RFC 3339, section 5.6, for example, 2023-09-18)","schema":{"type":"string"},"example":"2023-09-18"}],"responses":{"200":{"description":"The available tours have been successfully retrieved.","content":{"application/json":{}}},"204":{"description":"The retrieval has been rejected because the tours could not be found.","content":{"application/json":{}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/serviceCentres":{"get":{"tags":["service-centre-handler"],"summary":"Retrieve available service centres","operationId":"getAvailableServiceCentres","responses":{"200":{"description":"The available service centres have been successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceCentre"}},"example":[{"companyCode":"ELLINA-T","serviceCentres":[{"identifier":"DEMEERN","name":"De Meern","address":{"streetName":"","houseNumber":"","houseNumberAddition":"","postcode":"","cityName":"","countryCode":"","geolocation":{"latitude":5.0425669,"longitude":52.0727817,"course":null}}}]}]}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/shipment":{"post":{"tags":["Shipments"],"summary":"Create a shipment within the RoutiGo system","operationId":"createShipment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputShipment"}}},"required":true},"responses":{"201":{"description":"The shipment has been accepted and successfully added."},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/shipment/{id}":{"get":{"tags":["Shipments"],"summary":"Retrieve a shipment by its id","operationId":"getShipmentById","parameters":[{"name":"id","in":"path","description":"A shipment ID","required":true,"schema":{"type":"string"},"example":"a4a1ebf3-c2d8-4f18-9a86-58621de05448"}],"responses":{"200":{"description":"The shipment has been successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Shipment"},"example":{"identifier":"a4a1ebf3-c2d8-4f18-9a86-58621de05448","externalId":"3159af5d-f910-4e79-984a-bf4e0423410c","planDate":"2023-10-19","assignedRoute":{"identifier":"DEMEERN|Rit|02|20231019","name":"Rit-02","serviceCentreCode":"DEMEERN","serviceCentreName":"De Meern","assignedTo":null},"pickUpLocation":null,"deliveryLocation":{"duration":"PT5M","addressInformation":{"streetName":"Bisonspoor","houseNumber":"3002A-901","houseNumberAddition":null,"postcode":"3605LT","cityName":"Maarssen","countryCode":"NL","geolocation":{"latitude":52.1353694,"longitude":5.0303715,"course":null}},"interactions":{"alcoholCheckRequired":false,"paymentRequired":{"currency":"EUR","amount":50.0}},"remark":"The office is located on the 8th floor above a mall. Parking can be done in the parking garage allocated next to the office building.\n\nThis customer has ordered a meal for the first time. Please, introduce them to our concept and hand over a discount for the next order.","eta":"2023-12-20T15:11:57.901+01:00","customerTrackingId":"0edd3699ffc2445aa87c94a9a8028249","onRouteInstructions":"The office is located on the 8th floor above a mall. Parking can be done in the parking garage allocated next to the office building.","onSiteInstructions":"This customer has ordered a meal for the first time. Please, introduce them to our concept and hand over a discount for the next order.","timeConstraints":[{"deliverAfter":"2023-12-20T08:00:00+01:00","deliverBefore":"2023-12-20T12:00:00+01:00","type":"CONTRACT"}],"contactInformation":[{"name":"Routigo","email":null,"mobilePhone":null,"language":null}],"completionData":null},"supplier":null,"unit":null,"physicalTag":[]}}}},"204":{"description":"The shipment with the given id does not exist."},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}},"put":{"tags":["Shipments"],"summary":"Update a shipment by its id","operationId":"updateShipment","parameters":[{"name":"id","in":"path","description":"A shipment ID","required":true,"schema":{"type":"string"},"example":"e165ff4e-6e84-11ee-b962-0242ac120002"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentUpdateDto"}}},"required":true},"responses":{"200":{"description":"The shipment has been successfully updated."},"404":{"description":"The update has been rejected as the shipment could not be found."},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}},"delete":{"tags":["Shipments"],"summary":"Delete a shipment by its id","operationId":"removeShipmentById","parameters":[{"name":"id","in":"path","description":"A shipment ID","required":true,"schema":{"type":"string"},"example":"2dcfe700-6e85-11ee-b962-0242ac120002"}],"responses":{"200":{"description":"The shipment has successfully been deleted."},"404":{"description":"The deletion has been rejected as the shipment could not be found."},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/shipment/{id}/{planDate}":{"get":{"tags":["Shipments"],"operationId":"getShipmentByIdAndDate","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServerResponse"}}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/shipments/search":{"get":{"tags":["Shipments"],"summary":"Get all shipments related to the given search term(s)","operationId":"getShipmentsByIdAndSearchQuery","parameters":[{"name":"from","in":"query","description":"Sets up the earliest date for the search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2017-07-21). It\n must be used alongside the \"to\" parameter. Incompatible with the \"planDate\" parameter.","schema":{"type":"string"},"example":"2023-05-07"},{"name":"to","in":"query","description":"Sets up the latest date for the search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2017-07-21). It\n must be used alongside the \"from\" parameter. Incompatible with the \"planDate\" parameter.","schema":{"type":"string"},"example":"2023-05-10"},{"name":"planDate","in":"query","description":"Sets up the specific date for the search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2017-07-21)","schema":{"type":"string"},"example":"2023-05-07"},{"name":"query","in":"query","description":"Specifies a search term which is used to find a set of shipments. The term\n is used to search in all properties of a shipment, such as description(s),\n name(s) and address details","schema":{"type":"string"},"example":"RoutiGo kantoor"}],"responses":{"200":{"description":"A list of all found shipments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Shipment"},"example":{"searchResults":[{"identifier":"a4a1ebf3-c2d8-4f18-9a86-58621de05448","externalId":"3159af5d-f910-4e79-984a-bf4e0423410c","planDate":"2023-10-19","assignedRoute":{"identifier":"DEMEERN|Rit|02|20231019","name":"Rit-02","serviceCentreCode":"DEMEERN","serviceCentreName":"De Meern","assignedTo":null},"pickUpLocation":null,"deliveryLocation":{"duration":"PT5M","addressInformation":{"streetName":"Bisonspoor","houseNumber":"3002A-901","houseNumberAddition":null,"postcode":"3605LT","cityName":"Maarssen","countryCode":"NL","geolocation":{"latitude":52.1353694,"longitude":5.0303715,"course":null}},"interactions":{"alcoholCheckRequired":false,"paymentRequired":{"currency":"EUR","amount":50.0}},"remark":"The office is located on the 8th floor above a mall. Parking can be done in the parking garage allocated next to the office building.\n\nThis customer has ordered a meal for the first time. Please, introduce them to our concept and hand over a discount for the next order.","eta":"2023-12-20T15:11:57.901+01:00","customerTrackingId":"0edd3699ffc2445aa87c94a9a8028249","onRouteInstructions":"The office is located on the 8th floor above a mall. Parking can be done in the parking garage allocated next to the office building.","onSiteInstructions":"This customer has ordered a meal for the first time. Please, introduce them to our concept and hand over a discount for the next order.","timeConstraints":[{"deliverAfter":"2023-12-20T08:00:00+01:00","deliverBefore":"2023-12-20T12:00:00+01:00","type":"CONTRACT"}],"contactInformation":[{"name":"Routigo","email":null,"mobilePhone":null,"language":null}],"completionData":null},"supplier":null,"unit":null,"physicalTag":[]}]}}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/stashes":{"get":{"tags":["stashes-handler"],"summary":"Retrieve a list of stashes that contain shipments that have to be planned","operationId":"getStashes","parameters":[{"name":"planDate","in":"query","description":"The date at which the destination is placed (full-date notation as defined by RFC 3339, section 5.6, for example, 2023-09-18)","schema":{"type":"string"},"example":"2023-09-18"},{"name":"from","in":"query","description":"Sets up the earliest date for search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2023-05-07). It\n must be used alongside the \"to\" parameter. Incompatible with the \"planDate\" parameter.","schema":{"type":"string"},"example":"2023-05-07"},{"name":"to","in":"query","description":"Sets up the latest date for search query (full-date notation\n as defined by RFC 3339, section 5.6, for example, 2023-05-10). It\n must be used alongside the \"from\" parameter. Incompatible with the \"planDate\" parameter.","schema":{"type":"string"},"example":"2023-05-10"}],"responses":{"200":{"description":"The available stashes have been successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StashSummary"}},"example":[{"identifier":"DEMEERN|ROUTE|A|20231222","name":"ROUTE-A","stopsAmount":2},{"identifier":"DEMEERN|Ingeladen stops|3|20231222","name":"Ingeladen stops-3","stopsAmount":1}]}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}},"/tours/{tourId}/sequence":{"get":{"tags":["tours-handler"],"summary":"Retrieve a stop sequence","operationId":"getStopSequence","parameters":[{"name":"tourId","in":"path","description":"A tour ID in the format serviceCentreCode|tourName|tourCode|plannedDate","required":true,"schema":{"type":"string"},"example":"DEMEERN|Rit|10|20250116"}],"responses":{"200":{"description":"The stop sequence has been successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}},"put":{"tags":["tours-handler"],"summary":"Create a stop sequence","operationId":"postStopSequence","parameters":[{"name":"tourId","in":"path","description":"A tour ID in the format serviceCentreCode|tourName|tourCode|plannedDate","required":true,"schema":{"type":"string"},"example":"DEMEERN|Rit|10|20250116"}],"requestBody":{"description":"A list of assignment identifiers","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"The stop sequence has been successfully created."},"400":{"description":"There was a problem with the request itself. See the response for a more detailed error description."},"401":{"description":"Authentication information is missing or invalid. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"Could not find a proper way to authenticate"}}}},"403":{"description":"The user (or API key) does not have enough permissions to execute the request. See the response for more detailed error description.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"User does not have enough permissions to execute the request"}}}},"500":{"description":"Unexpected error. Please contact RoutiGo for more details.","content":{"text/plain;charset=UTF-8":{"schema":{"example":"An error has occurred while processing the request."}}}}}}}},"components":{"schemas":{"AvailableDestinationsByCompany":{"required":["companyContext","destinations"],"type":"object","properties":{"companyContext":{"$ref":"#/components/schemas/CompanyContext"},"destinations":{"type":"array","items":{"$ref":"#/components/schemas/DestinationSummary"}}}},"CompanyContext":{"required":["companyCode","companyName","countryCode"],"type":"object","properties":{"companyCode":{"type":"string"},"companyName":{"type":"string"},"countryCode":{"type":"string"}}},"DestinationSummary":{"required":["identifier","name","stopsAmount","type"],"type":"object","properties":{"identifier":{"type":"string","description":"A unique identifier within the system","example":"1236123-HGDFHG-236523JH-ASHGF67"},"name":{"type":"string","description":"A human readable description for this destination which can be used for visualisation","example":"Inladen fiets-1"},"stopsAmount":{"type":"integer","description":"Amount of stops in this destination","format":"int32","example":42},"vehicleType":{"type":"string","description":"The type of the vehicle, used during planning to assume driving speed and accessible roads","enum":["CAR","SMALL_TRUCK","EV","BIKE","TRUCK"]},"type":{"type":"string","description":"Can either be a `STASH`, indicating a place where stops are set aside for later optimisation, or a `TOUR` meaning a route that can be driven","enum":["STASH","TOUR"]}},"description":"A destination is either a tour or a stash where the stop can be placed for processing"},"ServiceCentre":{"required":["countryCode","latitude","longitude","serviceCentreCode","serviceCentreName"],"type":"object","properties":{"countryCode":{"type":"string"},"serviceCentreCode":{"type":"string"},"serviceCentreName":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"address":{"type":"string"}}},"Address":{"required":["countryCode","geolocation","houseNumber","postcode"],"type":"object","properties":{"streetName":{"type":"string","description":"Indicates the precise street name","example":"Bisonspoor"},"houseNumber":{"type":"string","description":"Indicates the precise house number","example":"8006"},"houseNumberAddition":{"type":"string","description":"Indicates the precise house number addition","example":"A"},"postcode":{"maxLength":8,"pattern":"^[A-Za-z0-9 ]{0,8}$","type":"string","description":"Indicates a postal code as used to address postal mail within the country with a maximum of 8 characters, allowing only letters, numbers, and spaces","example":"1234 AB"},"cityName":{"type":"string","description":"Indicates an incorporated city or town political entity","example":"Maarsen"},"countryCode":{"maxLength":2,"type":"string","description":"The country code of the location. Default `NL`. Described using: ISO 3166-1 alpha-2, Codes for the representation of countries","example":"NL","default":"NL"},"geolocation":{"$ref":"#/components/schemas/Geolocation"},"inZeroEmissionZone":{"type":"boolean","description":"Flag indicating if the address is within a zero emission zone"}},"description":"An objecting holding all information related to a single location"},"AssignedRoute":{"required":["identifier","name","serviceCentreCode"],"type":"object","properties":{"identifier":{"type":"string","description":"A unique identifier for the tour","example":"23487234-7623476236-B76"},"name":{"type":"string","description":"The name of the tour","example":"Ingeladen-1"},"serviceCentreCode":{"type":"string","description":"A unique identifier for the SVC","example":"AMS"},"serviceCentreName":{"type":"string","description":"SVC name","example":"Amsterdam"},"assignedTo":{"$ref":"#/components/schemas/AssignedUser"}}},"Geolocation":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"type":"number","description":"The latitude of the location","format":"double","example":52.137105},"longitude":{"type":"number","description":"The longitude of the location","format":"double","example":5.029677},"course":{"type":"number","description":"The course of the location","format":"double","example":42.42}},"description":"The lat/lng of a location"},"InputShipment":{"required":["route","scheduledDeliveryDate"],"type":"object","properties":{"id":{"maxLength":80,"minLength":8,"pattern":"^[A-Za-z0-9_-]{8,80}$","type":"string","description":"An identifier for a given shipment. Identifier should contain between 8 and 80 characters, using only letters, numbers, dashes, and underscores.","example":"91a34a3e-6e84-11ee-b962-0242ac120002"},"scheduledDeliveryDate":{"type":"string","description":"The day at which the shipment should take place (full-date notation as defined by RFC 3339, section 5.6)","format":"date","example":"2023-08-10"},"pickUpLocation":{"$ref":"#/components/schemas/InputShipmentLocation"},"deliveryLocation":{"$ref":"#/components/schemas/InputShipmentLocation"},"supplier":{"$ref":"#/components/schemas/Supplier"},"route":{"$ref":"#/components/schemas/AssignedRoute"},"units":{"type":"array","items":{"$ref":"#/components/schemas/Unit"}},"tags":{"type":"array","description":"A set of physical tags","items":{"$ref":"#/components/schemas/PhysicalTag"}},"customFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonNode"},"description":"A map of custom key-value fields to persist with this shipment. Keys must not exceed 255 characters."}}},"InputShipmentLocation":{"required":["addressInformation","duration","interactions","tasks","timeRestrictions","timeWindows"],"type":"object","properties":{"identifier":{"maxLength":80,"minLength":8,"pattern":"^[A-Za-z0-9_-]{8,80}$","type":"string","description":"A unique identifier of the shipment. Identifier should contain between 8 and 80 characters, using only letters, numbers, dashes, and underscores.","example":"35463906-d19e-485d-9976-6e896046c685"},"addressInformation":{"$ref":"#/components/schemas/Address"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"units":{"type":"array","items":{"type":"object","properties":{"dateBased":{"type":"boolean"},"timeBased":{"type":"boolean"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"zero":{"type":"boolean"}}},"durationEstimated":{"type":"boolean"}}}},"zero":{"type":"boolean"}},"description":"The duration of the shipment.","example":"PT30M"},"timeWindows":{"type":"array","description":"The time windows specify the time limitations for the driver's arrival at the location.","items":{"$ref":"#/components/schemas/TimeWindow"}},"timeRestrictions":{"type":"array","description":"The time restrictions specify when the driver's can not arrive at the location.","items":{"$ref":"#/components/schemas/TimeRestriction"}},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"onRouteInstructions":{"type":"string","description":"An optional remark field where on route instructions can be placed. It will be shown to the courier while he is driving to this location.","example":"The office is located on the 8th floor above a mall. Parking can be done in the parking garage allocated next to the office building."},"onSiteInstructions":{"type":"string","description":"An optional remark field where on site instructions can be placed. It will be shown to the courier while he is driving to this location.","example":"This customer has ordered a meal for the first time; introduce them to our concept and hand over a discount for the next order."},"interactions":{"$ref":"#/components/schemas/Interactions"}}},"Interactions":{"required":["alcoholCheckRequired"],"type":"object","properties":{"alcoholCheckRequired":{"type":"boolean","description":"Indicates if an alcohol check should be performed","example":true,"default":false}},"description":"Within RoutiGo we have a number of predefined interactions which can easily be enabled by setting the appropriate values on the property.These predefined interactions can trigger predefined actions, such as showing an Nix18 to indicate an alcohol check should be performed abd adds an extra question to the delivery/pick-up survey to register if the alcohol check was performed."},"JsonNode":{"type":"object"},"PhysicalTag":{"required":["identifier","type"],"type":"object","properties":{"identifier":{"type":"string","description":"The unique identifier for the physical tag","example":"762347623469"},"type":{"type":"string","description":"A type indicating the type of the physical tag","example":"BARCODE","enum":["BARCODE","NFC","BLE"]}},"description":"An object describing a single Physical Tag that can be used to identify a 'package'"},"Supplier":{"required":["identifier","name"],"type":"object","properties":{"identifier":{"type":"string","description":"The technical code identifier. Usually this is a customer identifier or code. This code should be unique, because later this identifier can be used to retrieve all shipments for a single supplier.","example":"ABS"},"name":{"type":"string","description":"The human readable description of the supplier, which can be used in communication with the receiver e.g.","example":"A Banana Store"}},"description":"The supplier is a person, company, or organization selling/sending goods, equipment or services to customers. This field can be used to differentiate between various parties (e.g. restaurants, webshops, merchants) that deliver goods to a transport company."},"Task":{"required":["description","mandatory"],"type":"object","properties":{"description":{"type":"string"},"mandatory":{"type":"boolean"}},"description":"The task that needs to be completed at the stop"},"TimeRestriction":{"required":["end","start","type"],"type":"object","properties":{"start":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"units":{"type":"array","items":{"type":"object","properties":{"dateBased":{"type":"boolean"},"timeBased":{"type":"boolean"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"zero":{"type":"boolean"}}},"durationEstimated":{"type":"boolean"}}}},"zero":{"type":"boolean"}},"description":"The start time of the restriction","example":"PT09H30M"},"end":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"units":{"type":"array","items":{"type":"object","properties":{"dateBased":{"type":"boolean"},"timeBased":{"type":"boolean"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"zero":{"type":"boolean"}}},"durationEstimated":{"type":"boolean"}}}},"zero":{"type":"boolean"}},"description":"The end time of the restriction","example":"PT11H30M"},"type":{"type":"string","description":"An enum indicating the type of time restriction ","example":"AREA_RESTRICTION","default":"AREA_RESTRICTION","enum":["AREA_RESTRICTION","UNDEFINED","AREA_RESTRICTION","UNKNOWN"]}},"description":"A window of time, used to describe the times during which the courier is not allowed to arrive at the location. This should be taken into account while planning a route."},"TimeWindow":{"required":["type"],"type":"object","properties":{"after":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"units":{"type":"array","items":{"type":"object","properties":{"dateBased":{"type":"boolean"},"timeBased":{"type":"boolean"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"zero":{"type":"boolean"}}},"durationEstimated":{"type":"boolean"}}}},"zero":{"type":"boolean"}},"description":"The earliest time the driver is allowed to arrive at the location","example":"PT09H30M"},"before":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"units":{"type":"array","items":{"type":"object","properties":{"dateBased":{"type":"boolean"},"timeBased":{"type":"boolean"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"zero":{"type":"boolean"}}},"durationEstimated":{"type":"boolean"}}}},"zero":{"type":"boolean"}},"description":"The latest time the driver is allowed to arrive at the location","example":"PT11H30M"},"type":{"type":"string","description":"An enum indicating the type of time constraint ","example":"CONTRACT","default":"CONTRACT","enum":["PROPOSED","AREA_RESTRICTION","CONTRACT","COMMUNICATED","UNDEFINED","CONTRACT","COMMUNICATED","AREA_RESTRICTION"]}},"description":"A window of time, used to describe the times during which the courier is supposed to arrive at the location. This should be taken into account while planning a route."},"Unit":{"required":["amount","name"],"type":"object","properties":{"name":{"type":"string","description":"A human readable description of the unit that needs to be picked up or delivered","example":"BOX 1 - Bananas, apples and oranges"},"amount":{"type":"number","description":"A number, describing the number of items that need to be picked up or delivered","format":"double","example":123.0},"tags":{"type":"array","description":"A set of physical tags that can be scanned to identify this unit","items":{"$ref":"#/components/schemas/PhysicalTag"}}},"description":"A single shipment that needs to be delivered or picked up at a location"},"AssignedUser":{"required":["userName"],"type":"object","properties":{"userName":{"type":"string","description":"The username of the user","example":"random-user@routigo.com"},"firstName":{"type":"string","description":"The first name of the user","example":"Jaap"},"lastName":{"type":"string","description":"The last name of the user","example":"Janssen"}},"description":"The assigned courier"},"ClientInstruction":{"required":["creationMoment"],"type":"object","properties":{"creationMoment":{"type":"string","description":"The moment at which the instruction was set, presented in ISO 8601 datetime with time zone format","format":"date-time","example":"2024-01-01T14:26:51Z"},"instruction":{"type":"string","description":"The actual instruction the client set.","example":"If I'm not at home, you can leave it at the door.","deprecated":true},"instructionType":{"type":"string","description":"This class specifies the preferred action to be taken by the courier if the client is unavailable at the delivery address or notifies that he/she is not at home. Instruction types include `not at home` remark, leaving the parcel at the neighbours and leaving the parcel in the safe space.","example":"LEAVE_AT_NEIGHBOURS","enum":["NOT_HOME","LEAVE_AT_NEIGHBOURS","LEAVE_IN_SAFE_PLACE"]},"details":{"type":"string","description":"If the client chooses `LEAVE_AT_NEIGHBOURS` or `LEAVE_IN_SAFE_PLACE` delivery, he/she must provide a specific neighbour's address or the designated location accordingly.","example":"Please, leave my parcel with the neighbours: Wibautstraat 123."},"additionalMessage":{"type":"string","description":"An optional field for any other details.","example":"Please, do NOT leave parcels in the bin."}},"description":"An optional remark field where client remarks can be placed. These will be shown to the courier both while he is driving to this location and when he arrives. The instruction field can only be filled by the client and done through the tracking page.Versioning will be kept by storing all versions of the remark together with the creation moment. The latest creation moment is the current instruction to be used."},"CompletionData":{"required":["time"],"type":"object","properties":{"time":{"type":"string","description":"The time at which the assignment was marked as arrived","format":"date-time"},"location":{"$ref":"#/components/schemas/Geolocation"},"courierUsername":{"type":"string","description":"The username of the courier that arrived at this assignment.","example":"random-user@routigo.com"}},"description":"All data about the completion of a single assignment"},"ContactInformation":{"type":"object","properties":{"name":{"type":"string","description":"The name of the contact person","example":"Jan-Johan Janssen"},"email":{"type":"string","description":"The email-address used to send out emails regarding updates on the visit","example":"no-reply@routigo.com"},"mobilePhone":{"type":"string","description":"The phone number used to send out text messages regarding updates on the visit","example":"+31612345678"},"language":{"type":"string","description":"The customer language used for communication. Default `NL`.Described using: ISO 639-1:2002, Codes for the representation of names of languages","example":"NL"}},"description":"All data describing the location to visit. This data is used for sending alerts regarding the expected time of arrival."},"Shipment":{"required":["externalId","identifier","planDate"],"type":"object","properties":{"identifier":{"type":"string","description":"An identifier for a given shipment","example":"ASJHD-ASDJH-71235"},"externalId":{"type":"string","description":"An identifier provided by the user of RoutiGo, this identifier is unique per day","example":"ASSIGNMENT-76"},"planDate":{"type":"string","description":"The day at which the shipment should take place (full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21)","format":"date","example":"2019-11-30"},"assignedRoute":{"$ref":"#/components/schemas/AssignedRoute"},"pickUpLocation":{"$ref":"#/components/schemas/ShipmentLocation"},"deliveryLocation":{"$ref":"#/components/schemas/ShipmentLocation"},"supplier":{"$ref":"#/components/schemas/Supplier"},"unit":{"type":"array","items":{"$ref":"#/components/schemas/Unit"}},"physicalTag":{"type":"array","items":{"$ref":"#/components/schemas/PhysicalTag"}},"customFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonNode"}}}},"ShipmentLocation":{"required":["customerTrackingId","duration","interactions"],"type":"object","properties":{"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"units":{"type":"array","items":{"type":"object","properties":{"dateBased":{"type":"boolean"},"timeBased":{"type":"boolean"},"duration":{"type":"object","properties":{"seconds":{"type":"integer","format":"int64"},"nano":{"type":"integer","format":"int32"},"negative":{"type":"boolean"},"zero":{"type":"boolean"}}},"durationEstimated":{"type":"boolean"}}}},"zero":{"type":"boolean"}},"description":"The amount of time we expect to spend at the location for this shipment","example":"PT0H5M"},"originalAddress":{"$ref":"#/components/schemas/Address"},"addressInformation":{"$ref":"#/components/schemas/Address"},"interactions":{"$ref":"#/components/schemas/Interactions"},"remark":{"type":"string","description":"Deprecated, use the `onSiteInstructions` field instead.","deprecated":true},"eta":{"type":"string","description":"the estimated time of arrival","format":"date-time"},"customerTrackingId":{"type":"string","description":"Identifier used to find tracking information as send to the receiver","example":"757e7190-f6c2-4732-8f94-2eab426ed020"},"onRouteInstructions":{"type":"string","description":"An optional remark field where on route instructions can be placed. These will be shown to the courier while he is driving to this location. ","example":"The office is located on the 8th floor above a mall. Parking can be done in the parking garage allocated next to the office building."},"onSiteInstructions":{"type":"string","description":"An optional remark field where on site instructions can be placed. These will be shown to the courier while he is driving to this location. This field was formerly known as `remark`. ","example":"This customer has ordered a meal for the first time; introduce them to our concept and hand over a discount for the next order"},"clientInstructions":{"type":"array","items":{"$ref":"#/components/schemas/ClientInstruction"}},"timeConstraints":{"type":"array","items":{"$ref":"#/components/schemas/TimeConstraint"}},"timeRestrictions":{"type":"array","items":{"$ref":"#/components/schemas/TimeRestriction"}},"contactInformation":{"type":"array","items":{"$ref":"#/components/schemas/ContactInformation"}},"completionData":{"$ref":"#/components/schemas/CompletionData"},"arrivalData":{"$ref":"#/components/schemas/CompletionData"}}},"TimeConstraint":{"required":["type"],"type":"object","properties":{"deliverAfter":{"type":"string","description":"The earliest time the driver is allowed to arrive at the location","format":"date-time"},"deliverBefore":{"type":"string","description":"The latest time the driver is allowed to arrive at the location","format":"date-time"},"type":{"type":"string","description":"An enum indicating the type of time constraint ","example":"PROPOSED","enum":["PROPOSED","AREA_RESTRICTION","CONTRACT","COMMUNICATED","UNDEFINED"]}}},"ShipmentUpdateDto":{"required":["route","scheduledDeliveryDate"],"type":"object","properties":{"scheduledDeliveryDate":{"type":"string","description":"The day at which the shipment should take place (full-date notation as defined by RFC 3339, section 5.6)","format":"date","example":"2023-08-10"},"pickUpLocation":{"$ref":"#/components/schemas/InputShipmentLocation"},"deliveryLocation":{"$ref":"#/components/schemas/InputShipmentLocation"},"supplier":{"$ref":"#/components/schemas/Supplier"},"route":{"$ref":"#/components/schemas/AssignedRoute"},"units":{"type":"array","items":{"$ref":"#/components/schemas/Unit"}},"customFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonNode"},"description":"A map of custom key-value fields to persist with this shipment. Keys must not exceed 255 characters."}}},"ServerResponse":{"type":"object"},"StashSummary":{"required":["identifier","name","stopsAmount"],"type":"object","properties":{"identifier":{"type":"string","description":"A unique identifier within the system","example":"1236123-HGDFHG-236523JH-ASHGF67"},"name":{"type":"string","description":"A human readable description for this stash which can be used for visualisation","example":"Inladen fiets-1"},"stopsAmount":{"type":"integer","description":"Amount of stops in this stash","format":"int32","example":42}},"description":"An overview of a stash that contains shipments that still have to be planned (by moving to another, 'drivable' tours). Stashes cannot be driven, hence they have neither a planned start moment nor an estimated end time. Stashes are primarily used as a holder/bucket of shipments put together for further planning (e.g. source routes in case of vrp planning)"}},"securitySchemes":{"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}