{"openapi":"3.0.0","info":{"title":"ABC Devices Data Model API","description":"Data Model and API for the ABC Devices.","version":"1.0.0"},"servers":[{"url":"https://dev.sita.lab.syd/","description":"Dev server in Sydney labs"}],"tags":[{"name":"Eligibility"},{"name":"Risk"},{"name":"Border Movement"},{"name":"Identify"}],"paths":{"/eligibility/V1":{"put":{"description":"Check the eligibility of the traveller. Eligibility uses the alphanumeric data from the travel document and the borer crossing information to sort the traveller into a group and determine if a device is allowed to be used. A travel case is assigned that then defines which data is required from the traveller as they proceed through the border process.","tags":["Eligibility"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityResponse"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/risk/travelDocument/V1":{"put":{"description":"Requests the risk assessment of the primary line movement using the travel document and returns the Risk Response that comprises the performed Fast Risk Assessed result and the latest lastmovement result of a passanger on the basis of configurable date range for status Allowed and Denied in iBorder.","tags":["Risk"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskTravelDocument"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/movement/kioskRecord":{"post":{"description":"The enrolment record captured by the mobile or kiosk. Travellers will be directed to the gate or workstation to finalise the border crossing.","tags":["Kiosk Record"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrimaryLineMovement"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string","example":"ACK"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/borderMovement/movement/completedMovement/V1":{"post":{"description":"This Operation is used to submit the border crossing movement.","tags":["Border Movement"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrimaryLineMovement"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string","example":"ACK"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/configurationData/borderControlData/V1/{deviceType}":{"get":{"tags":["Configuration Data"],"parameters":[{"name":"deviceType","in":"path","description":"Type of device, values are kiosk, gate, workstation, mobile","required":true,"schema":{"type":"string"},"example":"kiosk"},{"name":"group","in":"query","description":"Apply the configuration updates to this group only. Changes are global if this parameter is not specified.","required":false,"schema":{"type":"string"},"example":"Airport"},{"name":"last_updated","in":"query","description":"Return the delta update of data changed from this date to current.","required":false,"schema":{"type":"string","format":"date-time"},"example":"2019-09-04T14:20:00Z"}],"responses":{"200":{"description":"A list of Reference Data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationDataResponse"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Configuration Data"],"description":"Enpoint for updates to the configuration data made by the web ui.","parameters":[{"name":"deviceType","in":"path","description":"Type of device, values are kiosk, gate, workstation, mobile","required":true,"schema":{"type":"string"},"example":"kiosk"},{"name":"group","in":"query","description":"Apply the configuration updates to this group only. Changes are global if this parameter is not specified.","required":false,"schema":{"type":"string"},"example":"Airport"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationDataResponse"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string","example":"ACK"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/referenceData/borderControlData/V1/{type}":{"get":{"description":"It returns a list of reference data. Currently it supports Locations and Country reference data elements defined in SYSTEM_CODE_MAPPING table other than NATIONALITY, COUNTRY_OF_BRITH and COUNTRY_OF_ISSUE. The data elements include TD_TYPE, TDTYPE_MAPPING, WATCHLIST etc","tags":["Reference Data"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string"},"example":"BorderControlRules"},{"name":"last_updated","in":"query","description":"Return the delta update of data changed from this date to current.","required":false,"schema":{"type":"string","format":"date-time"},"example":"2019-09-04T14:20:00Z"}],"responses":{"200":{"description":"A list of Reference Data","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/LocationResponses"},{"$ref":"#/components/schemas/CountryDataResponse"}]}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/referenceData/questionnaire/V1":{"get":{"description":"Fetch the questionnaire","tags":["Reference Data"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuestionData"}}}}}}}},"/movement/traveller/retrieve-by-biometric/V1":{"post":{"description":"Retrieve the kiosk enrolment for the gate or workstation","tags":["Kiosk Record"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveByBiometricRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveKioskRecordResponse"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/movement/traveller/retrieve-by-biographic/V1":{"post":{"description":"Retrieve the kiosk enrolment for the gate or workstation","tags":["Kiosk Record"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveByBiographicRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveKioskRecordResponse"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/identify/traveller/find-by-biographic/V1":{"post":{"description":"Find a traveller's identity using biographic data. Product use case is to search the iBorders Identity Service. Project use case will use this method to find travellers in external systems. Additional properties are used case by case so will always require development work.","tags":["Identify"],"requestBody":{"content":{"application/json":{"schema":{"properties":{"request":{"$ref":"#/components/schemas/RetrieveByBiographicRequest"},"additionalProperties":{"type":"string","example":{"bar-code":23423423141234,"identity-id":34212}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveByBiographicResponse"}}}},"default":{"description":"Unexpected error, covers all HTTP 400 + 500 responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"EligibilityRequest":{"description":"Data used to determine the data capture requirements of a traveller.","properties":{"requestId":{"description":"ID of the request used for logging.","type":"string"},"deviceType":{"description":"Device being used by the traveller.","type":"string"},"direction":{"description":"Direction of border crossing.","type":"string"},"location":{"description":"Location code of the border crossing.","type":"string"},"travelDocumentType":{"description":"Type of travel document.","type":"string"},"travelDocumentSubtype":{"description":"Subtype of the travel document.","type":"string"},"nationality":{"description":"Nationality of the traveller.","type":"string"},"dateOfBirth":{"description":"DOB of the traveller.","type":"string"},"age":{"description":"Age of the traveller at the time of the border crossing.","type":"integer"},"gender":{"description":"Gender of the travller.","type":"string"},"issuingState":{"description":"Issuing state of the travel document.","type":"string"},"issueDate":{"description":"Date the travel document was issued.","type":"string","format":"date"},"expiryDate":{"description":"Date the travel document expires.","type":"string","format":"date"},"extraParams":{"description":"List of customised rule keys for a customer added by the server.","type":"array","items":{"type":"string"}}}},"EligibilityResponse":{"description":"Data capture and travel case assigned to a traveller.","properties":{"requestId":{"description":"ID of the request used for logging.","type":"string"},"faceCaptureRequired":{"description":"Capture the traveller's face image.","type":"boolean"},"fingerprintRequired":{"description":"Capture the traveller's finger prints.","enum":["None","All","RightSlap","LeftSlap","Thumbs","Index"]},"questionnaireRequired":{"description":"Present the traveller with the questionnaire","type":"boolean"},"allowedVisaTypes":{"description":"List of valid visa types the traveller may use to enter the country. Included for use on the Traveller Summary screen at the booth, primary purpose is for countries that allow VOA at the border.","type":"array","items":{"type":"string"}},"allowedDevices":{"description":"List of devices the traveller may use at the border.","type":"array","items":{"enum":["Kiosk","eGate","ABCGate"]}},"travelCaseNumber":{"description":"ID of the travel case.","type":"integer"},"traveCaseCode":{"description":"Code of the travel case.","type":"string"},"travelCaseDescription":{"description":"Descriptor of the travel case.","type":"string"},"ruleMajorVersion":{"description":"Major version of the rule.","type":"string"},"ruleMinorVersion":{"description":"Minor version of the rule.","type":"string"}}},"QuestionData":{"properties":{"id":{"description":"ID is a primary key reference of the question.","type":"integer"},"question":{"description":"Text value of the question.","type":"array","items":{"$ref":"#/components/schemas/NameType"}},"answer":{"type":"object","properties":{"type":{"description":"Answer type.","enum":["Text","Number","Binary","SingleList","MultiList","Date"]},"min":{"description":"Minimum amount. Used for number, multi list and date types.","type":"integer"},"max":{"description":"Maximum amount. Used for all types. Text type is string length.","type":"integer"},"options":{"description":"Answer text to display.","type":"array","items":{"$ref":"#/components/schemas/ListCodeType"}},"appliesTo":{"description":"The question is restricted to a specific travel case.","type":"string"}}}},"example":{"id":1,"question":[{"text":"Please select the countries you have visited in the last 14 days.","language":"en"},{"text":"Veuillez sélectionner les pays que vous avez visités au cours des 14 derniers jours.","language":"fr"}],"answer":{"type":"MultiList","min":0,"max":3,"options":[{"name":[{"text":"Australia","language":"en"},{"text":"Australie","language":"fr"}],"value":"AUS"},{"name":[{"text":"India","language":"en"},{"text":"Inde","language":"fr"}],"value":"IND"},{"name":[{"text":"France","language":"en"},{"text":"France","language":"fr"}],"value":"FRA"}]}}},"QuestionResponse":{"description":"Response to the Question Data object type.","properties":{"id":{"description":"Question ID"},"response":{"description":"Response given by the traveller.","type":"array","items":{"type":"string"}}},"example":{"id":1,"response":["AUS","FRA"]}},"ListCodeType":{"description":"Selection values for questions","properties":{"name":{"$ref":"#/components/schemas/NameType"},"value":{"description":"Value of the name","type":"string"}}},"NameType":{"description":"Multi lingual text values","properties":{"text":{"description":"Question text.","type":"string"},"language":{"description":"Question language.","type":"string"}}},"PrimaryLineMovement":{"type":"object","properties":{"movement_id":{"type":"string","example":"234FF609C7F766A143B9A8FC44"},"workstation_id":{"type":"string","example":"123DFR"},"location_code":{"description":"Location code of Entry Exit Client ie MCTA","type":"string","example":"MCTA"},"local_port":{"description":"In country port code of the border crossing","type":"string","example":"SYD"},"foreign_port":{"description":"Other country port code of the border crossing","type":"string","example":"CGK"},"vessel_id":{"description":"ID of the vessel","type":"string","example":"QF42"},"direction":{"description":"Direction of the movement","type":"string","example":"Arrival"},"traveller_type":{"description":"Traveller category","enum":["P","C","X"],"example":"P"},"expected_movement_id":{"description":"The ID of the APP or APIS expected movement","type":"string","example":"234FF6-09C7-F766-A143-B9A8FC44"},"movement_date_time":{"type":"string","format":"date-time","example":"2019-09-04T14:20:00Z"},"status":{"description":"Status of the movement","type":"string","enum":["Allowed","Denied","Referred","Potential"],"example":"Allowed"},"submission_mode":{"description":"Denotes whether the movement is submitted RealTime or Offline. Offline will be used while the client is trying to resubmit after network issues/error.","type":"string","enum":["RealTime","Offline"]},"risk_assessed":{"description":"Denotes whether risk assessment is performed.","type":"boolean","example":true},"companion_movement_id":{"description":"This attribute will be used while sending the dependent details. Companion movement id should be populated here.","type":"string","example":"234FF609C7F766A143B9A8FC55"},"travel_document":{"$ref":"#/components/schemas/TravelDocument"},"biometrics":{"description":"A list of Biometrics captured at the border","type":"array","items":{"$ref":"#/components/schemas/Biometric"}},"device_capture_status":{"description":"Contains biometric capture details","type":"object","properties":{"camera_status":{"description":"denotes the camera status","type":"string","enum":["Captured","NotCaptured","NotApplicable"]},"document_scanner_status":{"description":"document scanner status","type":"string","enum":["Captured","NotCaptured","NotApplicable"]},"fingerprint_scanner_status":{"description":"fingerprint scanner status","type":"string","enum":["Captured","PartiallyCaptured","NotCaptured","NotApplicable"]},"biometric_skipped":{"description":"denotes whether the biometric is skipped or not","type":"boolean","example":false},"skipped_reason_code":{"description":"The reason code for skipping Biometrics","type":"string","example":"Camera malfunction"},"officer_note":{"description":"The officer note for skipping biometrics","type":"string","example":"Camera is stuck"}}},"travel_case_code":{"description":"Entry Exit category for the traveller movement. EG National, Visa Free, VIA, VOA, Deport","type":"string","example":"1A"},"visa":{"description":"The Visa used for this movement","type":"object","properties":{"number":{"description":"The Visa number","type":"string","example":"HF234"},"type":{"description":"Any type attributed to the visa","type":"string","example":"resident"},"sub_type":{"description":"Any sub type attributed to the visa type","type":"string","example":"Family Visa"},"issue_date":{"description":"Date the visa was issued","type":"string","format":"date","example":"2022-09-04"},"expiry_date":{"description":"Date the visa expires","type":"string","format":"date","example":"2020-09-04"},"stay_expiry_date":{"description":"The stay expiry date","type":"string","format":"date","example":"2019-09-04"},"use_by_date":{"description":"Date the visa must be first used by","type":"string","format":"date","example":"2019-09-04"},"receipt_number":{"description":"Receipt number in case of Visa On Arrival","type":"string","example":"a1234"},"fee":{"description":"visa fee","type":"number","format":"float","example":10.0},"currency":{"description":"Visa Fee Currency","type":"string","example":"AUD"},"visa_additional":{"type":"object","additionalProperties":{"type":"string","example":{"sponsor":"Local Business","address":"15 Credibility St"}}}}},"risk_results":{"description":"A list of watch list and document check results","type":"object","properties":{"border_rule_id":{"description":"The applied border rule id","type":"string"},"recommended_risk_outcome":{"description":"Risk assesment outcome shown to the officer based on border rules.","type":"string","enum":["Amber","Red","Green"]},"risks":{"type":"array","items":{"type":"object","properties":{"risk_type":{"description":"risk type","type":"string","example":"WL"},"risk_source_code":{"description":"Code of the watch list","type":"string","example":"interpol"},"result":{"description":"Result of the risk assessment","type":"string","enum":["Found","Not Found","Hit","No Hit","Not Applicable","Arrival","Departure","Valid","Expired","Invalid","Not Available","Denied","Expected"],"example":"No Hit"}}}}}},"officer_referral_details":{"type":"array","items":{"type":"object","properties":{"officer_username":{"description":"Border Officer Username","type":"string","example":"john"},"officer_type":{"description":"Officer Type","type":"string","enum":["BorderOfficer","BorderSupervisor"]},"referral_code":{"description":"Referral code choosen by the officer","type":"string","example":"Visa Stay Expiry Not valid"},"referral_note":{"description":"Referral note entried by the officer after choosing the referral code.","type":"string","example":"Visa Stay expired on 12-jan"},"decision":{"description":"Officers Decision details","type":"string","enum":["Allowed","Denied","Referred"]},"processing_time":{"description":"Time spent to process the passenger in seconds","type":"number","example":100}}}},"overstay_details":{"description":"Contains overstay details","type":"object","properties":{"exit-type":{"description":"exit type","type":"string","example":null},"final-exit-indicator":{"description":"denotes whether it is a final exit","type":"boolean","example":false},"stay-expiry-date":{"description":"stay expiry date","type":"string","format":"date","example":"2019-09-04"},"visa-type":{"description":"visa type used","type":"string"},"amount-payable":{"description":"total amount payable","type":"number","format":"float","example":15},"discount-amount":{"description":"the discount amount paid","type":"number","format":"float","example":5},"amount-paid":{"description":"fee amount paid","type":"number","format":"float","example":10},"currency":{"description":"currency","type":"string","example":"USD"},"receipt-number":{"description":"overstay fee paid receipt number","type":"string","example":12345},"total-fine-amount":{"description":"total fine amount paid","type":"number","format":"float","example":5},"comments":{"description":"comments entered by officer while collecting the overstay details","type":"string"}}},"declarations":{"type":"array","items":{"$ref":"#/components/schemas/QuestionResponse"}},"movement_additional":{"description":"Any country specific bespoke key value data points outside of the iBorders requirements","type":"object","additionalProperties":{"type":"string"}}}},"Biometric":{"description":"Biometric data","type":"object","properties":{"biometric_key":{"description":"Key used to identify the biometric","type":"string","example":"RightThumb"},"quality_score":{"description":"The score given to the biometric","type":"number","example":99},"biometric":{"description":"Biometric string","type":"string"},"biometric_additional":{"description":"Other biometric relevant data. EG liveness check results","type":"object","additionalProperties":{"type":"string","example":{"liveness_check":"pass"}}}},"example":{"biometric_key":"LIVE_PHOTO","biometric":"base64imagestring"}},"RiskResponse":{"description":"The iBorders Risk Assessment response content. EE uses this to determine the risk outcome","type":"object","properties":{"risk_status":{"description":"Allow or Deny the traveller. Based off black list check and passport check (for national) or visa check (for foreigner). Kiosk and Gate devices only need a stop / go signal.","type":"string","enum":["Allow","Deny"]},"risk_rule":{"description":"If the risk system allocates a rule for further reference it can be put here.","type":"string"}}},"TravelDocument":{"description":"Document presented by the traveller","type":"object","properties":{"mrz":{"description":"Machine Readable Zone of the document","type":"string","example":"P<H23141234<235434<"},"document_number":{"description":"Number of the document","type":"string","example":"HG2345"},"document_type":{"description":"Type of document","type":"string","example":"P"},"issuing_state":{"description":"ISO country code of the document","type":"string","example":"AUS"},"issue_date":{"description":"Issue date of the document","type":"string","format":"date","example":"2000-09-21"},"expiry_date":{"description":"Expiry date of the document","type":"string","format":"date","example":"2029-09-21"},"given_names":{"description":"Given names on the document","type":"string","example":"Christine Maree"},"family_name":{"description":"Family name on the document","type":"string","example":"Borgetto"},"gender":{"description":"Gender on the document","type":"string","enum":["F","M","X","U"],"example":"F"},"nationality":{"description":"ISO country code on the document","type":"string","example":"AUS"},"date_of_birth":{"description":"DOB on the document","type":"string","format":"date","example":"2019-09-04"},"place_of_birth":{"description":"Place of brith","type":"string","example":"London"},"scans":{"type":"object","properties":{"image_list":{"type":"array","items":{"type":"object","properties":{"key":{"description":"Key code of image","type":"string","example":"TD Scan"},"image":{"description":"Scanned image of the document","type":"string"}}}}}},"td_additional":{"description":"Additional data points for the TD","type":"object","additionalProperties":{"type":"string","example":{"secondary_number":"JH21341"}}}},"required":["document_number","document_type","issuing_state","gender","nationality","date_of_birth"],"example":{"mrz":"P<H23141234<235434<","document_number":"HG2345","document_type":"P","issuing_state":"AUS","issue_date":"2000-09-21","expiry_date":"2029-09-21","given_names":"Christine Maree","family_name":"Borgetto","gender":"F","nationality":"AUS","date_of_birth":"2019-09-04","place_of_birth":"London"}},"ErrorResponse":{"type":"object","required":["message"],"properties":{"code":{"description":"error code","type":"string"},"message":{"type":"string"}}},"ErrorResponses":{"type":"array","items":{"$ref":"#/components/schemas/ErrorResponse"}},"RiskTravelDocument":{"description":"Travel Doc to submit to the Risk Assessment","type":"object","properties":{"location":{"description":"Code of the border crossing sending the request","type":"string","example":"SYD"},"direction":{"description":"Direction of the movement","type":"string","example":"Arrival"},"travel_document":{"$ref":"#/components/schemas/TravelDocument"}}},"RetrieveByBiometricRequest":{"type":"object","required":["workstation-id","biometric"],"properties":{"user-id":{"description":"User ID submitting the data","type":"string","example":"F1234"},"workstation-id":{"description":"Workstation ID submitting the data","type":"string","example":"FG23423"},"biometric":{"$ref":"#/components/schemas/Biometric"}}},"RetrieveKioskRecordResponse":{"type":"object","properties":{"movement":{"$ref":"#/components/schemas/PrimaryLineMovement"}}},"RetrieveByBiographicResponse":{"description":"Search by biographic is a 1:1 search, an exact TD match is expected or an error message","type":"object","properties":{"traveller":{"type":"object","properties":{"identifier":{"type":"string","description":"Any primary key identifier of the traveller","example":14234},"biometrics":{"$ref":"#/components/schemas/Biometric"}}}}},"RetrieveByBiographicRequest":{"type":"object","required":["user-id","workstation-id","biographics"],"properties":{"user-id":{"description":"User ID submitting the data","type":"string","example":"F1234"},"workstation-id":{"description":"Workstation ID submitting the data","type":"string","example":"FG23423"},"biographics":{"$ref":"#/components/schemas/TravelDocument"}}},"ConfigurationData":{"description":"Configuration settings for the devices","type":"object","properties":{"config_id":{"type":"number","example":1234},"key":{"type":"string","example":"face_quality_score"},"value":{"type":"string","example":90},"updated":{"type":"string","format":"date-time","example":"2021-12-15T13:00"}}},"ConfigurationDataResponse":{"description":"REsponse object containing a list of configuration data","type":"array","items":{"$ref":"#/components/schemas/ConfigurationData"}},"CountryData":{"description":"Country Data object","type":"object","required":["name","value","last_update","effective_from","effective_to"],"properties":{"name":{"description":"Name of the reference data","type":"string","example":"Australia"},"value":{"description":"Key value of the reference data","type":"string","example":"AUS"},"effective_from":{"description":"The date this rule takes affect","type":"string","format":"date","example":"2019-09-09"},"effective_to":{"description":"The date this rule stops taking affect","type":"string","format":"date","example":"2099-09-09"},"last_update":{"description":"Date the record was last touched","type":"string","format":"date-time","example":"2019-09-04T15:34:00Z"},"other_names":{"description":"Other language names for the UI","type":"array","items":{"type":"object","properties":{"language":{"description":"ISO language code","type":"string","example":"fr"},"value":{"description":"Name of the reference data","type":"string","example":"Australie"}}}},"ref_data_additional":{"type":"object","additionalProperties":{"description":"Additional data points for the reference data outside of the UI requirements","type":"string","example":{"isocode2":"AU","countryusagetype":["NATIONALITY","COUNTRY_OF_ISSUE","COUNTRY_OF_BIRTH"]}}}}},"CountryDataResponse":{"description":"Response object containing the list of reference data objects","type":"object","required":["ref_data_type","ref_data"],"properties":{"ref_data":{"description":"List of country data objects","type":"array","items":{"$ref":"#/components/schemas/CountryData"}}}},"LocationResponse":{"description":"Location response object","type":"object","properties":{"code":{"description":"location code","type":"string","example":"SJOA"},"name":{"description":"location name","type":"string","example":"Juan Santamaría International Airport Arrivals"},"type":{"description":"location type ie sea, AIR","type":"string","example":"AIR"},"parent_code":{"description":"parent location code","type":"string","example":"SJO"},"direction":{"description":"The direction this location allows","type":"string","example":"Arrival"},"effective_from":{"description":"The date this rule takes affect","type":"string","format":"date","example":"2019-09-09"},"effective_to":{"description":"The date this rule stops taking affect","type":"string","format":"date","example":"2099-09-09"},"last_updated":{"description":"The date this rule was last altered, default to creation date","type":"string","format":"date-time","example":"2019-09-09T00:00:00Z"},"other_names":{"description":"Mulitple language support for names belongs here","type":"array","items":{"type":"object","properties":{"language":{"type":"string","example":"es"},"value":{"type":"string","example":"Aeropuerto Internacional Juan Santamaría Llegadas"}}}}}},"LocationResponses":{"description":"Response object containing the list of location responses","type":"object","properties":{"locations":{"description":"List of border crossing locations in the country.","type":"array","items":{"$ref":"#/components/schemas/LocationResponse"}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"sec-api-key"}}},"security":[{"bearerAuth":[],"ApiKeyAuth":[]}]}