{"openapi":"3.1.0","info":{"title":"RoutiGo KPI REST API ","contact":{"name":"RoutiGo Team","url":"https://www.routigo.com","email":"team@routigo.com"},"version":"2.0"},"servers":[{"url":"https://api.routigo.com/api"}],"tags":[{"name":"KPI"}],"paths":{"/v1/kpi/generate/customer":{"get":{"tags":["KPI"],"summary":"Retrieve all customer satisfaction KPIs, as JSON or as a CSV or XLSX file.","description":"Send `Accept: application/json` for a list of KPIs, or `Accept: application/octet-stream` for a file of the type given in `fileType`. The file has no contact columns.","operationId":"generateCustomerKPIasJson","parameters":[{"name":"from","in":"query","description":"The date from which we should start to return all KPIs - in ISO-8601 format.","schema":{"type":"string","default":""}},{"name":"to","in":"query","description":"The date until we should to return all KPI - in ISO-8601 format.","schema":{"type":"string","default":""}},{"name":"fileType","in":"query","description":"The export file type. Only used with `Accept: application/octet-stream`; defaults to CSV.","schema":{"type":"string","default":"CSV","enum":["CSV","XLSX"]}}],"responses":{"200":{"description":"All customer satisfaction KPIs: a list as JSON, or a CSV or XLSX file.","content":{"application/json":{"schema":{"type":"array","additionalProperties":{"default":""},"contains":{"default":""},"items":{"$ref":"#/components/schemas/CustomerKpiDto","default":""},"unevaluatedItems":{"default":""}}},"application/octet-stream":{"schema":{"type":"string","format":"binary","additionalProperties":{"default":""},"default":""}}}},"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."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]}},"/v1/kpi/generate/operation":{"get":{"tags":["KPI"],"summary":"Retrieve all operational efficiency KPIs, as JSON or as a CSV or XLSX file.","description":"Send `Accept: application/json` for a list of KPIs, or `Accept: application/octet-stream` for a file of the type given in `fileType`.","operationId":"generateOperationsKPIAsJson","parameters":[{"name":"from","in":"query","description":"The date from which we should start to return all KPIs - in ISO-8601 format.","schema":{"type":"string","default":""}},{"name":"to","in":"query","description":"The date until we should to return all KPI - in ISO-8601 format.","schema":{"type":"string","default":""}},{"name":"fileType","in":"query","description":"The export file type. Only used with `Accept: application/octet-stream`; defaults to CSV.","schema":{"type":"string","default":"CSV","enum":["CSV","XLSX"]}}],"responses":{"200":{"description":"All operational efficiency KPIs: a list as JSON, or a CSV or XLSX file.","content":{"application/json":{"schema":{"type":"array","additionalProperties":{"default":""},"contains":{"default":""},"items":{"$ref":"#/components/schemas/OperationKpi","default":""},"unevaluatedItems":{"default":""}}},"application/octet-stream":{"schema":{"type":"string","format":"binary","additionalProperties":{"default":""},"default":""}}}},"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."}}}}},"security":[{"X-API-KEY":[]},{"Token":[]}]}}},"components":{"schemas":{"AddressDto":{"type":"object","properties":{"streetName":{"type":["string","null"]},"houseNumber":{"type":["string","null"]},"houseNumberAppendix":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]}}},"ContactInfoDto":{"type":"object","properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"]},"phoneNumber":{"type":["string","null"]}}},"CustomerKpiDto":{"type":"object","properties":{"shipmentId":{"type":"string"},"assignmentType":{"type":"string","enum":["DELIVERY","PICKUP","SERVICE","PAUSE","RECHARGE","SCAN"]},"tourInformation":{"$ref":"#/components/schemas/TourInformationDto"},"contractualTimeConstraint":{"oneOf":[{"$ref":"#/components/schemas/TimeConstraintDto"},{"type":"null"}]},"communicatedTimeConstraint":{"oneOf":[{"$ref":"#/components/schemas/TimeConstraintDto"},{"type":"null"}]},"initialCustomerValues":{"oneOf":[{"$ref":"#/components/schemas/CustomerValuesDto"},{"type":"null"}]},"actualCustomerValues":{"oneOf":[{"$ref":"#/components/schemas/CustomerValuesDto"},{"type":"null"}]},"endStatus":{"type":["string","null"]},"contactInfos":{"type":"array","items":{"$ref":"#/components/schemas/ContactInfoDto"}},"address":{"$ref":"#/components/schemas/AddressDto"}}},"CustomerValuesDto":{"type":"object","properties":{"arrivalTime":{"type":["string","null"],"format":"date-time"},"duration":{"type":["integer","null"],"format":"int32"}}},"TimeConstraintDto":{"type":"object","properties":{"after":{"type":["string","null"],"format":"date-time"},"before":{"type":["string","null"],"format":"date-time"},"realised":{"type":["boolean","null"]}}},"TourInformationDto":{"type":"object","properties":{"serviceCentreCode":{"type":"string"},"routeName":{"type":"string"},"plannedDate":{"type":"string","format":"date"},"vehicleType":{"type":"string","enum":["CAR","TRUCK","BIKE"]},"courierName":{"type":["string","null"]},"releaseMoment":{"type":"string","format":"date-time"}}},"OperationKpi":{"type":"object","default":null,"description":"An objecting holding all information of a single tour","properties":{"tourInformation":{"$ref":"#/components/schemas/TourInformationDto"},"plannedValues":{"$ref":"#/components/schemas/OperationValues"},"actualValues":{"$ref":"#/components/schemas/OperationValues"},"amountOfAssignmentsWithinContract":{"type":"integer","format":"int32"},"amountOfAssignmentsWithinCommunicated":{"type":"integer","format":"int32"}}},"OperationValues":{"type":"object","default":null,"description":"An objecting holding actual/planned values regarding a single tour for the purpose of operational performance indicators.","properties":{"distance":{"type":["integer","null"],"format":"int32"},"duration":{"type":["string","null"]},"startTime":{"type":["string","null"],"format":"date-time"},"endTime":{"type":["string","null"],"format":"date-time"},"amountOfAssignments":{"type":"integer","format":"int32"}}}},"securitySchemes":{"X-API-KEY":{"type":"apiKey","name":"X-API-KEY","in":"header"},"Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}