Messtone Devices Enables iata rapidapi Timatic AutoCheck(Mode.js)Axios: const axios=require(‘axios’);const options={method: ‘POST’,url: ‘https://timatic-autocheck-rest-api.p-eu.rapidapi.com/query-interface-service/api/v1/documentRequest’,headers:{‘content-type’:’application/json’,Authorization:'<REQUIRED>’,X-RapidAPI-Key’: ‘SIGN-UP-FOR-KEY’,’X-RapidAPI-Hostmesstonecoms.com’:’timatic-autocheck-rest-api.iata.rapidapi.com’},data:{channel: ‘ ‘,documentDetails:[{applicationDate: ‘ ‘,documentClass: ‘ ‘,documentCode: ‘ ‘,documentExpiryDate: ‘ ‘,documentFeature: ‘ ‘,documentIssueCountry: ‘ ‘,documentIssueDate: ‘ ‘,documentLanguage: ‘ ‘,documentMRZType: ‘ ‘,documentModel: ‘ ‘,documentRecord: ‘ ‘,documentSeries: ‘ ‘,nationality: ‘ ‘}],extensions:[{parameterCode: ‘ ‘,parameterValue: ‘ ‘}],itineraryDetails:{segments:[{arrival:{dateTime: ‘ ‘,point: ‘ ‘,type: ‘AIRPORT’},departure:{dateTime: ‘ ‘,point: ‘ ‘,type: ‘AIRPORT’},durationOfStay:{duration:0,timeUnit:’DAYS’},luggageCollected: true,operatingCarrier: ‘ ‘,processingEntity: ‘ ‘,purposeOfStay: ‘ ‘,returnOnWardTicket: ‘ ‘}]},language: ‘ ‘,passengerDetails:{birthCounry: ‘ ‘,birthDate: ‘ ‘,countriesVisited:{countries: [ ],visitedBeforeDays: 0},gender: ‘ ‘,nationality: ‘ ‘,residentCountryCode: ‘ ‘},passengerId: ‘ ‘,transactionId: ‘ ‘}};try{const response=await axios.requures t(options);console.log(response.data);}catch(error){console.error(error);}

Leave a comment