{"openapi":"3.0.1","info":{"title":"Advance Reservations and Ticketing (Category 05) Rules","description":"Advance Reservations and Ticketing (Category 05) Rules API is used to define advance reservations and ticketing requirements applicable to a fare. Reservation restrictions may be specified as a period of time before departure of the originating flight of the pricing unit that indicates either the latest time reservations are required or the earliest time reservations are permitted. Ticketing restrictions are specified as either a period of time before departure of the originating flight of the pricing unit and/or a period of time after reservations are confirmed that indicate the latest time ticketing is required.","termsOfService":"https://www.atpco.net","contact":{"name":"ATPCO Support","url":"https://www.atpco.net","email":"support@atpco.net"},"license":{"name":"ATPCO license policy","url":"https://www.atpco.net"},"version":"2.8.0-SNAPSHOT"},"servers":[{"url":"https://gold.apis.atpco.net/advrsvtkt5-gold","description":"GOLD server"}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/rules/advrsvtkt":{"post":{"tags":["adv-rsv-tkt-05-controller"],"summary":"Rec3 Rules Cat 05 POST API","description":"Creates or updates Advance Reservation/Ticketing (Category 05) rules Record 3 data along with supporting 994, 995 and 996 tables","operationId":"advrsvtkt","parameters":[{"name":"GATEWAY_USER_ID","in":"header","required":true,"schema":{"maxLength":50,"pattern":"^[^\\r\\n]*$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}},"required":true},"responses":{"201":{"description":"Successful","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"400":{"description":"Bad Request","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"401":{"description":"Unauthorized","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"422":{"description":"Unprocessable Entity","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"429":{"description":"Too Many Requests","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"Retry-After":{"style":"simple","schema":{"maximum":3600,"minimum":1,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}}}}},"/api/v1/rules/advrsvtkt/ping":{"get":{"tags":["adv-rsv-tkt-05-controller"],"summary":"Rec3 Rules Cat 05 PING API","description":"Health check endpoint for the Advance Reservation/Ticketing (Category 05) Rules service","operationId":"ping","responses":{"200":{"description":"OK","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"text/plain":{"schema":{"maxLength":200,"pattern":"^[^\\r\\n]*$","type":"string"}}}},"400":{"description":"Bad Request","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"401":{"description":"Unauthorized","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"429":{"description":"Too Many Requests","headers":{"X-RateLimit-Remaining":{"style":"simple","schema":{"maximum":1000,"minimum":0,"type":"integer","format":"int32"}},"Retry-After":{"style":"simple","schema":{"maximum":3600,"minimum":1,"type":"integer","format":"int32"}},"X-RateLimit-Limit":{"style":"simple","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvRsvTkt05Request"}}}}}}}},"components":{"schemas":{"APIMessage":{"type":"object","properties":{"errors":{"maxItems":100,"type":"array","items":{"maxLength":500,"pattern":"^[^\\r\\n]*$","type":"string"}},"warnings":{"maxItems":100,"type":"array","items":{"maxLength":500,"pattern":"^[^\\r\\n]*$","type":"string"}}}},"AdvRsvTkt05Request":{"type":"object","properties":{"msg":{"maxLength":500,"pattern":"^[^\\r\\n]*$","type":"string"},"rtnTblNumsOnly":{"maxLength":1,"pattern":"^[YN]?$","type":"string"},"allowEdot":{"maxLength":1,"pattern":"^[YN]?$","type":"string"},"allow1stTktDt":{"maxLength":1,"pattern":"^[YN]?$","type":"string"},"advancedres05":{"$ref":"#/components/schemas/AdvRsvTkt05VO"},"errorOvrrdblWarnings":{"maxLength":1,"pattern":"^[YN]?$","type":"string"},"carrier":{"maxLength":2,"pattern":"^[A-Z0-9]{2}$","type":"string"},"tariff":{"maxLength":7,"pattern":"^([A-Z][A-Z0-9]{1,6}|[0-9]{1,3})$","type":"string"}}},"AdvRsvTkt05VO":{"type":"object","properties":{"tblNum":{"maxLength":8,"pattern":"^\\d{1,8}$","type":"string"},"msgs":{"$ref":"#/components/schemas/APIMessage"},"resStartTime":{"maxLength":4,"pattern":"^\\d{4}$","type":"string"},"resStartDayOfWeek":{"maxLength":3,"pattern":"^(MON|TUE|WED|THU|FRI|SAT|SUN)$","type":"string"},"resStartOccurrence":{"maxLength":2,"pattern":"^0?[1-6]$","type":"string"},"resStartDuration":{"maxLength":3,"pattern":"^\\d{1,3}$","type":"string"},"resStartUnit":{"maxLength":1,"pattern":"^[MDHN]$","type":"string"},"resStopTime":{"maxLength":4,"pattern":"^\\d{4}$","type":"string"},"resStopDayOfWeek":{"maxLength":3,"pattern":"^(MON|TUE|WED|THU|FRI|SAT|SUN)$","type":"string"},"resStopOccurrence":{"maxLength":2,"pattern":"^0?[1-6]$","type":"string"},"resStopDuration":{"maxLength":3,"pattern":"^\\d{1,3}$","type":"string"},"resStopUnit":{"maxLength":1,"pattern":"^[MDHN]$","type":"string"},"resMeasuredFromTsi":{"maxLength":2,"pattern":"^\\d{2}$","type":"string"},"confirmedSector":{"maxLength":1,"pattern":"^[XYNE]$","type":"string"},"advResIndicator":{"maxLength":1,"pattern":"^[YN]$","type":"string"},"standbyWaitlist":{"maxLength":1,"pattern":"^[A-LX]$","type":"string"},"resWaiverDate":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"tktIssueTime":{"maxLength":4,"pattern":"^\\d{4}$","type":"string"},"tktDayofWeek":{"maxLength":3,"pattern":"^(MON|TUE|WED|THU|FRI|SAT|SUN)$","type":"string"},"tktOccurrence":{"maxLength":2,"pattern":"^0?[1-6]$","type":"string"},"tktDuration":{"maxLength":3,"pattern":"^\\d{1,3}$","type":"string"},"tktUnit":{"maxLength":1,"pattern":"^[MDHN]$","type":"string"},"tktPermittedIndicator":{"maxLength":1,"pattern":"^[RP]$","type":"string"},"departureDuration":{"maxLength":3,"pattern":"^\\d{1,3}$","type":"string"},"departureUnit":{"maxLength":1,"pattern":"^[MDHN]$","type":"string"},"tktMeasuredFromTsi":{"maxLength":2,"pattern":"^\\d{2}$","type":"string"},"applyWhichever":{"maxLength":1,"pattern":"^[EL]$","type":"string"},"tktWaiverDuration":{"maxLength":3,"pattern":"^\\d{1,3}$","type":"string"},"tktWaiverUnit":{"maxLength":1,"pattern":"^[MDHN]$","type":"string"},"tktWaiverDate":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"ovrrdDt994":{"$ref":"#/components/schemas/OverrideDate994VO"},"geoSpec995":{"$ref":"#/components/schemas/GeoSpec995VO"},"noteTxt996":{"$ref":"#/components/schemas/NoteText996VO"}}},"GeoSpec995VO":{"type":"object","properties":{"tblNum":{"maxLength":8,"pattern":"^\\d{1,8}$","type":"string"},"msgs":{"$ref":"#/components/schemas/APIMessage"},"tsi":{"maxLength":2,"pattern":"^\\d{2}$","type":"string"},"type":{"maxLength":1,"pattern":"^[CNAZS]?$","type":"string"},"loc1":{"maxLength":5,"pattern":"^[^\\r\\n]*$","type":"string"},"loc2":{"maxLength":5,"pattern":"^[^\\r\\n]*$","type":"string"}}},"NoteText996ItemVO":{"type":"object","properties":{"lnNum":{"maxLength":3,"pattern":"^\\d{1,3}$","type":"string"},"txt":{"maxLength":50,"pattern":"^[^\\r\\n]*$","type":"string"}}},"NoteText996VO":{"type":"object","properties":{"tblNum":{"maxLength":8,"pattern":"^\\d{1,8}$","type":"string"},"msgs":{"$ref":"#/components/schemas/APIMessage"},"txtLns":{"maxItems":999,"type":"array","items":{"$ref":"#/components/schemas/NoteText996ItemVO"}}}},"OverrideDate994VO":{"type":"object","properties":{"tblNum":{"maxLength":8,"pattern":"^\\d{1,8}$","type":"string"},"msgs":{"$ref":"#/components/schemas/APIMessage"},"rsvEff":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"rsvDisc":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"tktEff":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"tktDisc":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"tvlEff":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"},"tvlDisc":{"maxLength":8,"pattern":"^\\d{8}$","type":"string"}}}},"securitySchemes":{"bearerAuth":{"type":"http","description":"JWT Bearer token authentication. Tokens must comply with RFC8725 (JSON Web Token Best Current Practices). Use short-lived tokens, validate all claims, and use strong signing algorithms (RS256 or ES256).","scheme":"bearer","bearerFormat":"JWT"}}}}