{"openapi":"3.0.4","info":{"title":"ABT.CheckService – Control API","version":"v1","x-revision":"rev3","x-revision-date":"2026-07-08","x-changelog":["rev1 – Original-Spezifikation des Auftraggebers (OpenAPI 3.0.4, v1)","rev2 – Zeitfelder harmonisiert (int64, Unix-Sekunden, UTC); MediumIdDto.mediumNumber auf int64 erweitert (mind. 17 Stellen, MediumID gesamt >= 19 Stellen)","rev3 – mediumStatus in der Control-API auf MediumStatus-Enum {5, 7, 19, 88} typisiert; MediumDto damit in beiden APIs identisch"],"description":"API for control purposes. Zeitfelder harmonisiert: alle Zeitstempel einheitlich als int64, Unix-Sekunden (UTC). MediumIdDto.mediumNumber auf int64 erweitert (mind. 17 Stellen; MediumID gesamt >= 19 Stellen). mediumStatus auf MediumStatus-Enum {5, 7, 19, 88} typisiert (einheitlich mit Store-API)."},"paths":{"/api/Inspections":{"post":{"tags":["Inspections"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestInspectionDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/RequestInspectionDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/RequestInspectionDto"}}}},"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ResponseInspectionDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/ResponseInspectionDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/ResponseInspectionDto"}}}},"400":{"description":"Bad Request","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/Inspections/with-entitlements":{"post":{"tags":["Inspections"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestInspectionWithEntitlementsDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/RequestInspectionWithEntitlementsDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/RequestInspectionWithEntitlementsDto"}}}},"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ResponseInspectionDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/ResponseInspectionDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/ResponseInspectionDto"}}}},"400":{"description":"Bad Request","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"EntitlementDto":{"required":["entitlementEffectiveTime","entitlementExpirationTime","entitlementID","entitlementStatus","entitlementStatusTime","infoText","productID","productParameter"],"type":"object","properties":{"entitlementID":{"$ref":"#/components/schemas/EntitlementIdDto"},"entitlementStatus":{"$ref":"#/components/schemas/EntitlementStatus"},"entitlementStatusTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"productID":{"$ref":"#/components/schemas/EntitlementProductIdDto"},"entitlementEffectiveTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"entitlementExpirationTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"productParameter":{"$ref":"#/components/schemas/EntitlementProductParameterDto"},"infoText":{"type":"string","nullable":true}},"additionalProperties":false},"EntitlementIdDto":{"required":["ccpOrgID","entitlementIssuerCounter","samID"],"type":"object","properties":{"ccpOrgID":{"type":"integer","format":"int32"},"samID":{"$ref":"#/components/schemas/EntitlementSamIdDto"},"entitlementIssuerCounter":{"type":"integer","format":"int32"}},"additionalProperties":false},"EntitlementProductIdDto":{"required":["productNumber","productOwnerID","productType"],"type":"object","properties":{"productOwnerID":{"type":"integer","format":"int32"},"productType":{"type":"integer","format":"int32"},"productNumber":{"type":"integer","format":"int32"}},"additionalProperties":false},"EntitlementProductParameterDto":{"required":["content","productParameterContentTypeCode"],"type":"object","properties":{"productParameterContentTypeCode":{"type":"integer","format":"int32"},"content":{"type":"string","nullable":true}},"additionalProperties":false},"EntitlementSamIdDto":{"required":["registrationAuthorityID","subjectNumber","subjectRole"],"type":"object","properties":{"registrationAuthorityID":{"type":"integer","format":"int32"},"subjectRole":{"type":"string","nullable":true},"subjectNumber":{"type":"string","nullable":true}},"additionalProperties":false},"EntitlementStatus":{"enum":[5,7,19],"type":"integer","format":"int32"},"InspectionLocationDto":{"required":["locationNumber","locationTypeCode","orgID"],"type":"object","properties":{"orgID":{"type":"integer","format":"int32"},"locationTypeCode":{"type":"integer","format":"int32"},"locationNumber":{"type":"integer","format":"int32"}},"additionalProperties":false},"InspectionResult":{"enum":[1,2,3],"type":"integer","format":"int32"},"InspectionTerminalIdDto":{"required":["deviceType","orgID","terminalNumber"],"type":"object","properties":{"orgID":{"type":"integer","format":"int32"},"deviceType":{"type":"integer","format":"int32"},"terminalNumber":{"type":"integer","format":"int32"}},"additionalProperties":false},"LocationWrapperDto":{"required":["locationCurrent","locationNext"],"type":"object","properties":{"locationCurrent":{"$ref":"#/components/schemas/InspectionLocationDto"},"locationNext":{"$ref":"#/components/schemas/InspectionLocationDto"}},"additionalProperties":false},"MediumDto":{"required":["mediumEffectiveTime","mediumExpirationTime","mediumID","mediumStatus","mediumStatusTime","mediumTime","mediumType"],"type":"object","properties":{"mediumID":{"$ref":"#/components/schemas/MediumIdDto"},"mediumStatus":{"$ref":"#/components/schemas/MediumStatus"},"mediumStatusTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"mediumType":{"type":"integer","format":"int32"},"mediumTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"mediumEffectiveTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"mediumExpirationTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"}},"additionalProperties":false},"MediumIdDto":{"required":["ccpOrgID","mediumNumber"],"type":"object","properties":{"ccpOrgID":{"type":"integer","format":"int32"},"mediumNumber":{"type":"integer","format":"int64","description":"Mediennummer (mind. 17 Stellen). Erweitert von int32 auf int64. Vergaberegel: Werte <= 9223372036854775807 (int64-Grenze). Konsumenten muessen 64-Bit-Ganzzahlen verlustfrei verarbeiten (kein Parsing als IEEE-754-Double, Rundung ab ~16 Stellen)."}},"additionalProperties":false},"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}},"RequestInspectionDto":{"required":["controlTime","location","medium","operatorID","terminalID","vehicleTypeCode"],"type":"object","properties":{"medium":{"$ref":"#/components/schemas/MediumDto"},"location":{"$ref":"#/components/schemas/LocationWrapperDto"},"vehicleTypeCode":{"type":"integer","format":"int32"},"controlTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"terminalID":{"$ref":"#/components/schemas/InspectionTerminalIdDto"},"operatorID":{"type":"integer","format":"int32"}},"additionalProperties":false},"RequestInspectionWithEntitlementsDto":{"required":["controlTime","entitlements","location","medium","operatorID","terminalID","vehicleTypeCode"],"type":"object","properties":{"medium":{"$ref":"#/components/schemas/MediumDto"},"location":{"$ref":"#/components/schemas/LocationWrapperDto"},"vehicleTypeCode":{"type":"integer","format":"int32"},"controlTime":{"type":"integer","format":"int64","description":"Unix-Zeit in Sekunden seit Epoch (UTC)"},"terminalID":{"$ref":"#/components/schemas/InspectionTerminalIdDto"},"operatorID":{"type":"integer","format":"int32"},"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementDto"},"nullable":true}},"additionalProperties":false},"ResponseInspectionDto":{"required":["entitlements","responseStatus","results"],"type":"object","properties":{"responseStatus":{"type":"integer","format":"int32"},"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementDto"},"nullable":true},"results":{"$ref":"#/components/schemas/ResultsDto"}},"additionalProperties":false},"ResultsDto":{"required":["areaOfValidityResult","explanationText","inspectionResult"],"type":"object","properties":{"explanationText":{"type":"string","nullable":true},"inspectionResult":{"$ref":"#/components/schemas/InspectionResult"},"areaOfValidityResult":{"type":"boolean"}},"additionalProperties":false},"MediumStatus":{"enum":[5,7,19,88],"type":"integer","format":"int32"}}},"tags":[{"name":"Inspections"}]}