Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
79 views57 pages

Ink API v1.8

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 57

|

Ink API v1.8


Connect to Ink Cloud via
Web Services

INK AVIATION
aviation.ink
info@aviation.ink
linkedin.aviation.ink

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
AUTHENTICATION
Clients must use the ​https://​ protocol.

Basic Authentication

● For staging, servers use one of the following addresses: ​https://api-staging-web3.inkcloud.io/,


https://api-staging.inkcloud.io/ or https://api-staging.radixxgo.com/​.
● Add a header ​Authorization​ with the username and password provided by Ink Aviation as shown on the attached
Postman image. Example Value: ​Basic username=xxxxxx, password=YYYYYYYYYYYYY
● Add the header ​X-api-key,​ this is a key that will be provided by Ink Aviation for each customer using the API.

DOMAIN
If you are having connection problems, as an initial troubleshooting test please verify connectivity with a bootstrapped Web
Services client like ​Postman​, which can be effortlessly installed into Chrome without the complexity of your full application
stack.

PROTOCOL
{domain}​ in the development environment is ​staging.inkcloud.io​. This will be ​api.inkcloud.io​ in the production
environment.

API VERSION
The current API version is ​1.8.​ See the ​Changelog​.

Ink will maintain backwards compatibility to avoid impacting dependent services. It is imperative that you allow for and
expect extra data fields to be added at any time. Field ordering in the result data may change so your parsing should be
tolerant of this. The nesting structure to any particular element will be preserved and not unexpectedly deepen. However,
new nested elements may be added at any part of the structure. e.g.

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{
"path": [
{
"to": [
{
"nested_element": "will not change or deepen"
}
]
}
]
}

{
"path": [
{
"to": [
{
"nested_element": "will not change or deepen",
"new_element": "may be added"
}
]
}
],
"another_new_element": "may be added anywhere in the structure"
}

DATA FORMAT

Type of Format Value

date yyyy-mm-dd e.g: 2017-11-24

time Hh:mm:ss e.g: 15:36:03

datetime Yyyy-mm-dd Hh:mm:ss e.g: 2017-11-24 15:36:03

station_iata three uppercase letters code e.g: MAD

passenger_name_iata SURNAME/FIRSTNAME e.g: SMITH/JOHN

country_code ISO 3166 three uppercase letters code e.g: GBR

flight_number carrier code + numeric part (up to four digits) e.g: IN1010

DATA OPTIONS

Type of Data Possible values

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
id_document_type 'P' Passport
'C' Perm Res Card
'DL' Drivers Licence
'F' Border Crossing Card
'N' Us Natural Cert
'M' Military Id
'IN' Nexus or Sentry
'FD' Facilitation Doc
'G' Group Passport
'D' Diplomatic Identification
'AC' Crew Member Certificate
'IP' Passport Card
'I' Identity Card

aci ADULT
CHILD
INFANT

gender MALE
FEMALE
M
F

ticket_type ETICKET
PAPER

STATUSES
Possible status values are shown in the table below.

Type of Status Possible Value

passenger_status NOT_YET_CHECKED_IN
CHECKED_IN
NO_SHOW_CHECK_IN
BOARDED
NO_SHOW_BOARDING
FLOWN

flight_status OPEN
CLOSED
FLOWN
CANCELLED

apis_status OK
NOT_OK
WAITING_RESPONSE

checkin_status OPEN
CLOSED

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
boarding_status OPEN
CLOSED

ERRORS
Possible error codes are shown in the table below.

Type of Status Value

000 ERR_VERSION_NOT_SUPPORTED

001 ERR_METHOD_NOT_SUPPORTED

002 ERR_OBJECT_NOT_SUPPORTED

003 ERR_MANDATORY_PARAMETER_EMPTY

004 ERR_IATA_CODE_INVALID

005 ERR_DATE_FORMAT_INVALID

006 ERR_OBJECT_NOT_ALLOWED

007 ERR_PARAMETER_VALIDATION_FAILED

008 ERR_PARAMETERS_NOT_ENOUGH

009 ERR_CONDITIONAL_PARAMETER_EMPTY

010 ERR_DATE_RANGE_INVALID

011 ERR_PASSENGER_NOT_CHECKED_IN

012 ERR_CHECKIN_CLOSED_FOR_PRINTING_WARNING

013 ERR_CHECKIN_CLOSED

014 ERR_BAG_INFANT_PAX

015 ERR_BAG_NOT_CREATED

016 ERR_BAG_NOT_FOUND

017 ERR_BAG_ALLOWANCE_EXCEEDED

018 ERR_BAG_CREATE_CANCEL

020 ERR_BAG_ALREADY_EXISTS

021 ERR_AUTHENTICATION_FAILED

022 ERR_NOT_ASSOCIATED_STATION

023 ERR_NOT_ASSOCIATED_CARRIER

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
024 ERR_THERE_IS_NO_ASSOCIATION

025 ERR_BAG_NOT_UPDATED

026 ERR_PAX_NOT_FOUND

027 ERR_BAG_WEIGHT_CANNOT_EXCEED

028 ERR_REQUEST_BODY_VALIDATION_FAILED

029 ERR_FLIGHT_CREATION_FAILED

030 ERR_FLIGHT_UPDATE_SEAT_PLAN_FAILED

031 ERR_FLIGHT_ADD_PASSENGERS_FAILED

032 ERR_PAX_INVALID_PASSENGER

033 ERR_PAX_UPDATE_FAILED

034 ERR_PAX_DELETE_FAILED

035 ERR_PAX_STATUS_INVALID

036 ERR_FLIGHT_NOT_FOUND

037 ERR_AIRPLANE_MODEL_NOT_FOUND

038 ERR_CABIN_NOT_FOUND

039 ERR_SEAT_PLAN_NOT_AVAILABLE

040 ERR_CARRIER_NOT_FOUND

041 ERR_FLIGHT_FLOWN

042 ERR_FLIGHT_CLOSED

043 ERR_BAG_WEIGHT_EXCEEDED

044 ERR_UNABLE_DEACTIVATE_BAG_TAG

045 ERR_INVALID_COUNTRY_CODE

046 ERR_FLIGHT_LOCKED

047 ERR_PAX_ALREADY_UNCHECKED_IN

048 ERR_PAX_NOT_UNCHECKED_IN

049 ERR_PAX_NOT_CHECKED_IN

050 ERR_PAX_ALREADY_CHECKED_IN

051 ERR_PAX_SEAT_NOT_ASSIGNED

052 ERR_PASSBOOK_NOT_GENERATED

053 ERR_PAX_NOT_BOARDED

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
054 ERR_PAX_APIS_INCOMPLETE

055 ERR_PAX_DATA_PASSENGER_NAME_FORMAT

056 ERR_PAX_DATA_ACI_NOT_FOUND

057 ERR_PAX_DATA_GENDER_NOT_FOUND

058 ERR_PAX_DATA_DATE_FORMAT

059 ERR_PAX_DATA_COUNTRY_NOT_FOUND

060 ERR_PAX_DATA_COUNTRY_INVALID_FORMAT

061 ERR_PAX_DATA_DOCUMENT_TYPE_NOT_FOUND

062 ERR_PAX_DATA_FARE_CODE_NOT_FOUND

063 ERR_PAX_DATA_FARE_CODE_INVALID

064 ERR_PAX_DATA_PHONE_INVALID_FORMAT

065 ERR_PAX_DATA_EMAIL_INVALID_FORMAT

066 ERR_PAX_DATA_TICKET_TYPE_NOT_FOUND

067 ERR_PAX_DATA_LENGTH_NAME

068 ERR_PAX_DATA_LENGTH_BOOKING

069 ERR_PAX_DATA_LENGTH_GROUP_CODE

070 ERR_PAX_DATA_INVALID_SEQUENCE

071 ERR_PAX_DATA_INVALID_ID_NUMBER

072 ERR_PAX_DATA_INVALID_TICKET_NUMBER

073 ERR_PAX_DATA_INVALID_EXTERNAL_PAX_ID

074 ERR_PAX_DATA_INVALID_DISEMBARK_STATION

075 ERR_PAX_DATA_INVALID_ITINERARY

076 ERR_PAX_DATA_INVALID_SSR

077 ERR_PAX_DATA_INVALID_ONWARD

078 ERR_PAX_DATA_INVALID_INBOUND

079 ERR_PAX_DATA_INVALID_INFANT

080 ERR_PAX_DATA_INVALID_SEAT_NUMBER

081 ERR_INVALID_OR_INSUFFICIENT_PARAMETERS

082 ERR_PAX_STATUS_NOT_SUPPORT_ACTION

083 ERR_INFANT_WITHOUT_PARENT

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
084 ERR_INFANT_ACI_CANNOT_CHANGE

085 ERR_CANNOT_CHANGE_ACI_TO_PARENT

086 ERR_CANNOT_ASSOCIATE_INFANTS_TO_CHILD

087 ERR_INVALID_SEAT_NUMBER_FOR_CLASS

088 ERR_ADVISE_PAX_NOT_FOUND

089 ERR_ADVICE_PAX_NOT_FOUND_IN_FLIGHT

090 ERR_ADVICE_PAX_DELETE_FAILED

091 ERR_ADVICE_DCS_SERVICE_FAILED

092 ERR_BOARDING_GATE_NOT_FOUND

093 ERR_PAX_WRONG_TERMINAL

094 ERR_TIME_FORMAT_INVALID

095 ERR_DATETIME_FORMAT_INVALID

096 ERR_JSON_FORMAT_INVALID

METHOD : GET LIST OF FLIGHTS


HTTP Method: GET

{protocol}://{domain}/api/{version}/flight/get_list?station_iata={station_iata}&flight_status={fl
ight_status}&start_date={start_date}&end_date={end_date}

station_iata Mandatory
flight_status Optional
start_date Optional
end_date Optional

Example Request

/flight/get_list?station_iata=LGW&flight_status=OPEN&start_date=2020-05-13&end_date=2020-05-14

Example Response

Status: 200 OK

{
"flight_list" : [
{
"carrier_name": "Ink Trial",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"flight_number": "IK124",
"itinerary": [
{
"scheduled_departure_date": "2020-05-13",
"scheduled_departure_time": "12:34",
"station_iata": "LGW",
"sector_identifier": "12345678",
"flight_status": "OPEN",
"desk_status":"OPEN",
"kiosk_status":"OPEN",
"through_status":"OPEN",
"standby_status":"OPEN",
"bagdrop_status":"OPEN","
"boarding_status":"OPEN",
"api_status":"OPEN",
​ "​terminal​":"1",
"​gate​":"1"
},
{
"station_iata": "PAR"
}
]
}
]
}

METHOD : GET FLIGHT DETAILS


HTTP Method: GET

{protocol}://{domain}/api/{version}/flight/get_flight_details?station_iata={station_iata}&flight_
date={flight_date}&flight_number={flight_number}

station_iata Mandatory
flight_date Mandatory
flight_number Mandatory

Example Request

/flight/get_flight_details?station_iata=INK&flight_date=2019-10-01&flight_number=IN1212

¶¶¶¶¶
Example Response

Status: 200 OK

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"scheduled_departure_date": "2019-11-01",
"scheduled_departure_time": "06:30:00",
"station_iata": "INK",
"sector_identifier": "",
"flight_status": "OPEN",
"desk_status": "OPEN",
"kiosk_status": "OPEN",
"through_status": "CLOSED",
"standby_status": "CLOSED",
"bagdrop_status": "OPEN",
"boarding_status": "OPEN",
"api_status": "OPEN",
"terminal": "1",
"gate": "1"
}

METHOD : GET EMPTY FLIGHTS


HTTP Method: GET

Method returns flights without passengers.

{protocol}://{domain}/api/{version}/flight/empty_flights?station_iata={station_iata}&start_date={
start_date}&end_date={end_date}

station_iata Mandatory
start_date Optional
end_date Optional

Example Request

flight/empty_flights?station_iata=INK&start_date=2016-05-16&end_date=2016-05-16

Example Response

Status: 200 OK

{
"empty_flights": [
{
"carrier_name": "Ink Aviation",
"flight_number": "IN1333",
"schedule_number": "73-2492",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"billing_company": "Ink Company",
"departing_station_iata": "INK",
"scheduled_departure_date": "2016-05-16"
}
]
}

METHOD : GET MANIFEST


HTTP Method: GET

Method returns passengers list

{protocol}://{domain}/api/{version}/flight/get_manifest?station_iata={station_iata}&flight_number
={flight_number}&scheduled_departure_date={date}

station_iata Mandatory
flight_number Mandatory
scheduled_departure_date Mandatory date
include_transit Optional integer

Example Request

flight/get_manifest?station_iata=INK&flight_number=IN1212&scheduled_departure_date=2018-08-15

flight/get_manifest?station_iata=INK&flight_number=IN1212&scheduled_departure_date=2018-08-15&inc
lude_transit=1

Example Response

Status: 200 OK

{
"passengers": [
{
"passenger_name": "HARRISON\/AUDREYMRS",
"ink_passenger_identifier": "624D7762-6F455054-5A50654A-7A555769-75576C4D-6E413D3D",
"itinerary": [
{
"flight_number": "IN9023",
"scheduled_departure_date": "2018-11-01",
"scheduled_departure_time": "11:00:00",
"station_iata": "CPH",
"sector_identifier": "",
"flight_status": "OPEN",
"booking_reference": "2N3XTJ",
"ticket_number": "",
"passenger_status": "NOT_YET_CHECKED_IN",
"seat_number": "25F",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"sequence": "0"
}
],
"ssrs": [],
"baggage_tags_destination": "CPH",
"baggage_tags": [],
"apis_gender": "MALE",
"baggage_allowance_pieces": 2,
"baggage_allowance_weight_kg": 20,
"aci": "ADULT",
"id_number": null,
"email": null,
"citizen_country": "ABW",
"residence_country": "ABW",
"date_of_birth": "1990-12-12",
"infants": [
{
"passenger_name": "HARRISON\/MOLLY",
"ink_passenger_identifier":
"2B566A58-36555076-43656559-7A74414C-2F353551-6D773D3D",
"apis_gender": "FEMALE",
"aci": "INFANT",
"id_number": null,
"email": null,
"citizen_country": "ABW",
"residence_country": "ABW",
"date_of_birth": "2017-12-12"
}
]
}
]
}

METHOD : GET AUDIT DATA


HTTP Method: GET

Method returns passengers list

{protocol}://{domain}/api/{version}/flight/get_audit_data?station_iata={station_iata}&flight_numb
er={flight_number}&scheduled_departure_date={date}

station_iata Mandatory
flight_number Mandatory
scheduled_departure_date Mandatory Date

Example Request

flight/get_audit_data?station_iata=INK&flight_number=IN1212&scheduled_departure_date=2018-08-15

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
Example Response

Status: 200 OK

{
"data": [
{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "46644E35-76502B35-53664144-43615A73-7178734B-43513D3D",
"audit_trail": [
{
"date": "22-FEB-19",
"time": "18:54:04.615 GMT+0",
"description": "Seat Change (15F) (127.0.0.1)",
"user": "molly.harrison"
},
{
"date": "22-FEB-19",
"time": "18:54:04.542 GMT+0",
"description": "(127.0.0.1) PNR viewed in Departure Control",
"user": "molly.harrison"
},
{
"date": "22-FEB-19",
"time": "18:54:00.121 GMT+0",
"description": "Added (Manual) (127.0.0.1)",
"user": "molly.harrison"
}
]
}
]
}

METHOD : ADVISE FLIGHT CHANGE


HTTP Method: POST

This method only works for PSS integration services

{protocol}://{domain}/api/{version}/flight/advise_change

Example Request

flight/advise_change

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{
"FlightCheckInStatus": "OPEN",
"MarketingAirlineCode": "WW ",
"MarketingFlightNumber": "1218",
"BoardingTime": "2019-08-31T03:15:00",
"BoardingGate": "",
"ArrivalGate": "",
"FlightDate": "2019-08-30T00:00:00",
"BoardDate": "2019-08-31T00:00:00",
"Origin": "ZRH",
"Destination": "TFS",
"OperatingFlightNumber": "1218",
"Carrier": "WW",
"SeatConfigId": 45,
"FlightStatus": "OPEN",
"ScheduledDepartTime": "2019-08-31T04:00:00",
"EstimatedDepartTime": "2019-08-31T04:35:00",
"ScheduledArrivalTime": "2019-08-31T07:00:00",
"EstimatedArrivalTime": "2019-08-31T07:35:00",
"ThruLegs": [{
"DepartureDate": "2019-08-30T00:00:00",
"FlightOriginDateLt": "2019-08-30T00:00:00",
"ArrivalDate": "2019-08-30T22:30:00",
"Origin": "WAW ",
"Destination": "VNO ",
"FlightNumber": "1218",
"Carrier": "WW ",
"FlightStatus": "OPEN",
"SchArrival": "2019-08-30T22:30:00",
"SchDeparture": "2019-08-30T20:00:00"
}, {
"DepartureDate": "2019-08-30T00:00:00",
"FlightOriginDateLt": "2019-08-30T00:00:00",
"ArrivalDate": "2019-08-31T02:00:00",
"Origin": "VNO ",
"Destination": "ZRH ",
"FlightNumber": "1218",
"Carrier": "WW ",
"FlightStatus": "OPEN",
"SchArrival": "2019-08-31T02:00:00",
"SchDeparture": "2019-08-30T23:50:00"
}]
}

Example Response

Status: 200 OK

{
"operation_result": "SUCCESS"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
}

METHOD : BLOCK SEATS


HTTP Method: GET

{protocol}://{domain}/api/{version}/flight/block_seats?station_iata={station_iata}&flight_number=
{flight_number}&scheduled_departure_date={date}&seats={seat_numbers}

station_iata Mandatory
flight_number Mandatory
scheduled_departure_date Mandatory Date
seats Optional Seat numbers separated by commas

Example Request

flight/block_seats?station_iata=INK&flight_number=IN1212&scheduled_departure_date=2018-08-15&seat
s=2A,3B,21F

Example Response

Status: 200 OK

{
"result": "OK"
}

METHOD : UNBLOCK SEATS


HTTP Method: GET

{protocol}://{domain}/api/{version}/flight/unblock_seats?station_iata={station_iata}&flight_numbe
r={flight_number}&scheduled_departure_date={date}&seats={seat_numbers}

station_iata Mandatory
flight_number Mandatory
scheduled_departure_date Mandatory Date
seats Optional Seat numbers separated by commas

Example Request

flight/unblock_seats?station_iata=INK&flight_number=IN1212&scheduled_departure_date=2018-08-15&se
ats=2A,3B,21F

Example Response

Status: 200 OK

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{
"result": "OK"
}

METHOD : ADD TAG


HTTP Method: POST

Tags can only be added for open flights.

{protocol}://{domain}/api/{version}/baggage_tag/add

ink_passenger_identifier Mandatory
license_plate Optional If license_plate not supplied, one will be generated
baggage_tag_weight_kg Mandatory
baggage_tag_status Mandatory INACTIVE|ACTIVE
bag_destination_iata Optional
special_baggage_code Optional
checkin_method Optional desk|kiosk|web|thru|api

Example Request

/baggage_tag/add

{
"ink_passenger_identifier": "87654321",
"license_plate": "1234098765",
"baggage_tag_weight_kg": "13",
"baggage_tag_status": "ACTIVE",
"bag_destination_iata": "OSL",
"special_baggage_code": "BIKE"
}

Example Response

In this example, passenger travelling from Origin to GEN > OSL and the bag is tagged to OSL.

Status: 200 OK

{
"operation_result": "SUCCESS",
"license_plate" : "1234098765",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"passenger_name": "SMITH/JOHN",
"baggage_tag_status": "CANCELLED",
"baggage_tag_weight_kg": "13",
"special_baggage_code": "BIKE",
"itinerary": [
{

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"flight_number": "IK124",
"flight_date": "2020-05-13",
"station_iata": "OSL",
"stops_before_bag_destination": "0"
},
{
"flight_number": "LH456",
"flight_date": "2020-05-13",
"station_iata": "GEN",
"is_destination": "false",
"stops_before_bag_destination": "1"
}
]
}

METHOD : UPDATE TAG STATUS


HTTP Method: POST

Tags can only be activated for open flights. Only inactive tags can be activated or cancelled. Only active tags can be
cancelled or have their weights updated.

{protocol}://{domain}/api/{version}/baggage_tag/update

ink_passenger_identifier Mandatory
license_plate Mandatory
baggage_tag_weight_kg Optional
baggage_tag_status Mandatory ACTIVE|CANCEL|INACTIVE
checkin_method Optional desk|kiosk|web|thru|api

Example Request

/baggage_tag/update

{
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"license_plate": "1234098765",
"baggage_tag_status": "ACTIVE"
}

Example Response

Status: 200 OK

{
"operation_result": "SUCCESS",
"license_plate" : "1234098765",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"passenger_name": "SMITH/JOHN",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"baggage_tag_status": "ACTIVE",
"baggage_tag_weight_kg": "13",
"special_baggage_code": "BIKE",
"itinerary": [
{
"flight_number": "IK124",
"flight_date": "2020-05-13",
"station_iata": "OSL",
"stops_before_bag_destination": "0"
},
{
"flight_number": "LH456",
"flight_date": "2020-05-13",
"station_iata": "GEN",
"is_destination": "false",
"stops_before_bag_destination": "1"
}
]
}

METHOD : VIEW TAG


HTTP Method: GET

{protocol}://{domain}/api/{version}/baggage_tag/view?license_plate={license_plate}

license_plate Mandatory

Example Request

/baggage_tag/view?license_plate=1234098765

Example Response

Status: 200 OK

{
"license_plate" : "1234098765",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"passenger_name": "SMITH/JOHN",
"baggage_tag_status": "ACTIVE",
"baggage_tag_weight_kg": "13",
"special_baggage_code": "BIKE",
"itinerary": [
{
"flight_number": "IK124",
"flight_date": "2020-05-13",
"station_iata": "OSL",
"stops_before_bag_destination": "0"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
},
{
"flight_number": "LH456",
"flight_date": "2020-05-13",
"station_iata": "GEN",
"stops_before_bag_destination": "1"
}
]
}

METHOD : GET SPECIAL BAGGAGE


HTTP Method: GET

{protocol}://{domain}/api/{version}/baggage_tag/get_special_baggage

Example Request

/baggage_tag/get_special_baggage

Example Response

Status: 200 OK

{
"AMMUNITION": "Ammunition",
"ARCHERY": "Archery",
"BAGGAGE_IN_SEAT": "Baggage in Seat",
"BIKE": "Bike",
"BULK": "Bulk (Oversized)",
"CANOE": "Canoe / Kayak",
"FIREARMS": "Firearms",
"FISHING": "Fishing Gear",
"GATE_TAG": "Gate Tag",
"GOLF": "Golf",

"HAND_LUGGAGE": "Hand Luggage",


"HANG_GLIDER": "Hang Glider",
"HOTEL": "Hotel",
"PETS_CABIN": "Pets (Cabin)",
"PETS_CHECKED": "Pets (Checked)",
"PUSHCHAIR": "Pushchair / Pram",
"SCUBA": "Scuba",
"SERVICE_ANIMALS": "Service Animals",
"SKIS": "Skis / Snowboard",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"SURFBOARD": "Surfboard",
"WHEELCHAIR": "Wheelchair"
}

METHOD : SEARCH FOR PASSENGERS


HTTP Method: GET

Although they are all optional, either the booking_reference, ticket_number or name_filter must be given. There must be at
least one criteria with which to find the passenger(s).

{protocol}://{domain}/api/{version}/passenger/search?station_iata={station_iata}&booking_referenc
e={booking_reference}&flight_number={flight_number}&ticket_number={ticket_number}&name_filter={na
me_filter}&sequence={sequence}&license_plate={license_plate}&terminal_identifier={terminal_identi
fier}&flight_date={flight_date}

station_iata Mandatory
flight_number Optional
booking_reference Optional
ticket_number Optional
name_filter Optional (must have flight_number as well)
license_plate Optional
sequence Optional (must have flight_number as well)
terminal_identifier Optional
flight_date Optional

Example Request

/passenger/search?booking_reference=EJH7UK&flight_number=AA123
/passenger/search?ticket_number=123456789012
/passenger/search?name_filter=SMITH&flight_number=AA123
/passenger/search?name_filter=SMITH&terminal_identifier=6D754D4B-4F56724B-3931784D-61375936-55383
744-55674G4B

Example Response

Status: 200 OK

{
"passenger_results" : [
{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"flight_number": "AB111",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "ERY77JK",
"passenger_status": "CHECKED_IN",
"sequence": "234",
"itinerary_summary": "KRP-CPH"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
},
{
"passenger_name": "SMITHSON/JOHNSON",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"flight_number": "BC2222",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "JHS7EF",
"passenger_status": "NOT_YET_CHECKED_IN",
"itinerary_summary": "KRP-OSL"
}
]
}

METHOD : GET PASSENGER DETAIL


HTTP Methods: GET, POST

{protocol}://{domain}/api/{version}/passenger/get_detail?station_iata={station_iata}&ink_passenge
r_identifier={ink_passenger_identifier,ink_passenger_identifier,...,ink_passenger_identifier}

{protocol}://{domain}/api/{version}/passenger/get_detail?station_iata={station_iata}&flight_numbe
r={flight_number}&bcbp={bcbp}

station_iata Mandatory
flight_number Optional Mandatory if using ink_passenger_identifier
ink_passenger_identifier Optional Unique identifier
bcbp Optional URL encoded 2D BCBP string

Example Request

/passenger/get_detail?flight_number=AB123&ink_passenger_identifier=87654321

Example Response

Status: 200 OK

{
"passengers" : [
{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "87654321",
"itinerary": [
{
"station_iata": "LGW",
"flight_number": "AB123",
"scheduled_departure_date": "2020-05-13",
"scheduled_departure_time": "12:34",
"sector_identifier": "12345678",
"flight_status": "OPEN",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"booking_reference": "AAABBB",
"ticket_number": "123456789012",
"passenger_status": "CHECKED_IN",
"seat_number": "10A",
"sequence": "14"
}
],
"ssrs": [
{
"short_code": "TKNE",
"note": "HK1 2439704684092/1"
}
],
"baggage_tags_destination": "OSL",
"baggage_tags": [
{
"license_plate" : "1234098765",
"baggage_tag_status": "ACTIVE",
"tag_weight_kg": "13"
},
{
"license_plate" : "1234098766",
"baggage_tag_status": "INACTIVE",
"baggage_tag_weight_kg": "0"
}
],
"apis_gender": "MALE",
"group_allowance": 0,
"baggage_allowance_pieces": "3",
"baggage_allowance_weight_kg": "40",
"aci":"ADULT",
"id_number":"2323",
"email":null,
"citizen_country":"ABW",
"residence_country":null,
"date_of_birth":"1992-12-12"
}
]
}

METHOD : CHECK-IN PASSENGER


HTTP Method: GET

{protocol}://{domain}/api/{version}/passenger/check_in?station_iata={station_iata}&flight_number=
{flight_number}&ink_passenger_identifier={ink_passenger_identifier}

station_iata Mandatory
flight_number Mandatory

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
ink_passenger_identifier Mandatory Unique identifier
seat_​number Optional
checkin_group​ Optional
validate_al​l_checked_in Optional
checkin_method Optional desk|kiosk|web|thru|api

Example Request

/passenger/check_in?station_iata=KRP&flight_number=AB123&ink_passenger_identifier=6D754D4B-4F5672
4B-3931784D-61375936-55383744-55673D3D&seat_number=1A

Example Response

Status: 200 OK

{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"flight_number": "IN123",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "ERY77JK",
"passenger_status": "CHECKED_IN",
"sequence": "234",
"itinerary_summary": "KRP-CPH",
"seat_number": "1A",
"apis_status": "OK"
}

Example Request Multiple Ink_passenger_identifier

/passenger/check_in?station_iata=KRP&flight_number=AB123&ink_passenger_identifier=6D754D4B-4F5672
4B-3931784D-61375936-55383744-55673D3D​,7531574F-42756B78-2B705A78-64507439-30637258-2F413D3D

Example Response Multiple Ink_passenger_identifier

Status: 200 OK

{
"passenger_results": [
{
"passenger_name": "JOHN/SMITH",
"ink_passenger_identifier": "4D327879-304D3441-3347306E-41713765-5A545768-41673D3D",
"flight_number": "IN2409",
"scheduled_departure_date": "2019-10-29",
"booking_reference": "ASF6315",
"passenger_status": "CHECKED_IN",
"sequence": "141",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"aci": "ADULT",
"itinerary_summary": "​KRP-CPH​",
"seat_number": "",
"apis_status": "OK"
},
{
"passenger_name": "JEFF/SMITH",
"ink_passenger_identifier": "7531574F-42756B78-2B705A78-64507439-30637258-2F413D3D",
"flight_number": "IN2409",
"scheduled_departure_date": "2019-10-29",
"booking_reference": "ASF6315",
"passenger_status": "CHECKED_IN",
"sequence": "142",
"aci": "ADULT",
"itinerary_summary": "​KRP-CPH​",
"seat_number": "",
"apis_status": "OK"
}
]
}

METHOD : OFFLOAD PASSENGER


HTTP Method: GET

{protocol}://{domain}/api/{version}/passenger/offload?station_iata={station_iata}&flight_number={
flight_number}&ink_passenger_identifier={ink_passenger_identifier}

station_iata Mandatory
flight_number Mandatory
ink_passenger_identifier Mandatory Unique identifier

Example Request

/passenger/offload?station_iata=KRP&flight_number=AB123&ink_passenger_identifier=6D754D4B-4F56724
B-3931784D-61375936-55383744-55673D3D

Example Response

Status: 200 OK

{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"flight_number": "AB123",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "ERY77JK",
"passenger_status": "NOT_YET_CHECKED_IN",
"sequence": "",
"itinerary_summary": "KRP-CPH"
}

METHOD : BOARD PASSENGER


HTTP Method: GET

{protocol}://{domain}/api/{version}/passenger/board?station_iata={station_iata}&flight_number={fl
ight_number}&flight_date={flight_date}&sequence={sequence}

station_iata Mandatory
flight_number Mandatory
flight_date Mandatory
sequence Optional Unique identifier
bcbp Optional URL encoded 2D BCBP string
ink_passenger_identifier Optional

Example Request

/passenger/board?station_iata=KRP&flight_number=AB123&flight_date=2020-05-13&sequence=234

Example Response

Status: 200 OK

{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"flight_number": "AB123",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "ERY77JK",
"passenger_status": "BOARDED",
"sequence": "234",
"itinerary_summary": "KRP-CPH"
}

METHOD : ASSIGN SEAT TO PASSENGER


HTTP Method: GET

{protocol}://{domain}/api/{version}/passenger/assign_seat?station_iata={station_iata}&ink_passeng
er_identifier={ink_passenger_identifier}&seat_number={seat_number}&flight_number={flight_number}

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
station_iata Mandatory
ink_passenger_identifier Mandatory Unique identifier
flight_number Mandatory
seat_number Mandatory

Example Request

/passenger/assign_seat?staion_iata=KRP&&ink_passenger_identifier=6D754D4B-4F56724B-3931784D-61375
936-55383744-55673D3D&seat_number=14F&flight_number=IN7898

Example Response

Status: 200 OK

{
"seat_number": "14F",
}

METHOD : UPDATE PASSENGER APIS


HTTP Method: POST

{protocol}://{domain}/api/{version}/passenger/update_apis?station_iata={station_iata}flight_numbe
r={flight_number}

station_iata Mandatory
flight_number Mandatory
ink_passenger_identifier Mandatory Unique identifier
id_document_type Optional
surname Optional
first_name Optional
middle_name Optional
id_issuing_country Optional Three letter ISO format
id_number Optional
citizen_country Optional Three letter ISO format
residence_country Optional
date_of_birth Optional
id_expiry_date Optional
gender Optional M|F
destination_address Optional
destination_city_town Optional
destination_state Optional
destination_postcode Optional
emergency_contact_telephone Optional

Example Request

/passenger/update_apis?station_iata=INK&flight_number=IN6666

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"surname": "SMITH",
"first_name": "JOHN",
"id_issuing_country": "ESP",
"id_number": "246578",
"id_expiry_date": "2020-05-01",
"gender": "M",
"date_of_birth" : "1990-12-01",
"citizen_country" : "ALB",
"id_document_type" : "P"
}

Example Response

Status: 200 OK

{
"result": "OK"
}

Example Request Multiple Ink_passenger_identifier

/passenger/update_apis?station_iata=INK&flight_number=IN6666

{
"passengers": [
{
"ink_passenger_identifier":"6F4E7132-42366774-6162334C-437A6632-54673974-71413D3D",
"first_name": "JOHN",
"id_issuing_country": "ALB",
"id_number": "246578",
"id_expiry_date": "2020-05-01",
"gender ": "M",
"surname" : "SMITH",
"date_of_birth" : "2000-05-01",
"citizen_country" : "ESP",
"id_document_type" : "D"
},
{
"ink_passenger_identifier":"6F4E7132-42366774-6162334C-437A6632-54673974-71413D3D",
"first_name": "JEFF",
"id_issuing_country": "ALB",
"id_number": "246578",
"id_expiry_date": "2020-05-01",
"gender ": "M",
"surname" : "SMITH",
"date_of_birth" : "2000-05-01",
"citizen_country" : "ESP",
"id_document_type" : "P"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
}
]
}

Example Response Multiple Ink_passenger_identifier

Status: 200 OK

{
"result": [
{
"operation_result": "SUCCESS",
"ink_passenger_identifier": "6F4E7132-42366774-6162334C-437A6632-54673974-71413D3D"
},
{
"operation_result": "SUCCESS",
"ink_passenger_identifier": "6F4E7132-42366774-6162334C-437A6632-54673974-71413D3D"
}
]
}

METHOD : ADVISE PASSENGER CHANGE


HTTP Method: GET

{protocol}://{domain}/api/{version}/passenger/advise_passenger_change?station_iata={station_iata}
&external_passenger_identifier={string}&external_flight_id={string}

station_iata Mandatory
external_passenger_identifier Mandatory Unique identifier used in external systems
external_flight_id Mandatory Unique identifier used in external systems

Example Request

/passenger/advise_passenger_change?station_iata=INK&external_passenger_identifier=8X7654321&exter
nal_flight_id=1234546745X234

Example Response

Status: 200 OK

{
"passenger":"OK"
}

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
METHOD : ISSUE BOARDING PASS
HTTP Method: POST

Method always returns the latest issued boarding pass issued to the passenger. Note that reprints could result in a newer
boarding pass being issued to the passenger after this call.

{protocol}://{domain}/api/{version}/boarding_pass/issue

ink_passenger_identifier​ Mandatory

Example Request

/boarding_pass/issue

{
"passengers" : [
{ "ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D"},
{ "ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3X"}
]
}

Example Response

Status: 200 OK

{
"boarding_passes" : [
{
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3X",
"apis_status":"OK",
"passenger_name": "SMITH\/JOHN",
"flight_number": "IK2222",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "JHS7EF",
"passenger_status": "NOT_YET_CHECKED_IN",
"itinerary_summary": "KRP-OSL",
"booking_reference": "ABC123",
"passenger_class": "economy",
"fare_code": "Y",
"seat_number": "10A",
"sequence": "14",
"selectee":false,
"boarding_pass_number": "2100000293",
"2d_string": "M1SMITH\/JOHN ZELX3Y AALCPHDY 0971 318T003F0009 341> 003B 1 000 210000029
4",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"barcode_image":
"​data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAawAAACQAQMAAABuyc2NAAAABlBMVEX///8AAABVwtN+AAAAAX
RSTlMAQObYZgAAAhJJREFUWIXtmEuSwzAIRLkB978lNyD0Q05WyjpdFS8mY1nPVebXoIj/5Xn1XJkZWVVzF1GVs1yzkPsvz3s
WtDNma9lhDVcxd93RgvqNRaQ1pg9vYfOCHAuMcfSyWFu1NSbnztPjaL1HdhElE1lj8q682gpkGajGRI//d80Wa336xGzJFOyY
n7XGBrcxluvScXSNBVK+H3OUTBLgxpjWFLqtItvrY5WiIQhyZ0x1p5/CqpfsnSqRMravGWCBzZIKaTW/uTk7tB6GOSYHJyY5W
alVvUVBfa9cBlii6mQmjs44K8pUIt0ZY1/w9QgGLg6UX2FgjPWGsxKTzcpMpPKU2GsX5IHF7gxiGSlBGYMSa41JDo/C77RQK5
Vq3ypuoWyBoYxbTVVyUA/qLEzdM8AACxqz3vyUSU7XjUlaVdYXq6RHOxVnjJO0o8S31MMZayZa1dQd+nB+52m888v48PtYFNn
5cbe6M8a+lolubagL1rTV72khn3lPrfZNOiwwqimCgXxsvdWLtrzeo8QBY2CInWaZ1XVDn7by74wFeqFaQ7fNMUtzFFF0cMYY
WUpCJvWVkzGm+GCccMZyGdSRNBWFHup0MzlrMcbop9mH2O+xtHK265tJfh/Th2/3Us9pBDbBTHnPAAcsnu7s/J4/mCT2BNca2
x2x+dk7Cgaz0nXss8A4qs1V+J0W1LEpbVdSDLH/5Xi9AAw3xcUWH0KKAAAAAElFTkSuQmCC​"
},
{
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3X",
"apis_status":"OK",
"passenger_name": "SMITH/JAMES",
"flight_number": "BC2222",
"scheduled_departure_date": "2020-05-13",
"booking_reference": "JHS7EF",
"passenger_status": "NOT_YET_CHECKED_IN",
"itinerary_summary": "KRP-OSL",
"booking_reference": "ABC123",
"passenger_class": "Economy",
"fare_code": "Y",
"seat_number": "10A",
"sequence": "14",
"selectee":false,
"boarding_pass_number": "2100000295",
"2d_string": "M1SMITH\/JAMES ZELX3Y AALCPHDY 0971 318T003F0009 341> 003B 1 000 2100000295
4",
"barcode_image":
"​data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAawAAACQAQMAAABuyc2NAAAABlBMVEX///8AAABVwtN+AAAAAX
RSTlMAQObYZgAAAhJJREFUWIXtmEuSwzAIRLkB978lNyD0Q05WyjpdFS8mY1nPVebXoIj/5Xn1XJkZWVVzF1GVs1yzkPsvz3s
WtDNma9lhDVcxd93RgvqNRaQ1pg9vYfOCHAuMcfSyWFu1NSbnztPjaL1HdhElE1lj8q682gpkGajGRI//d80Wa336xGzJFOyY
n7XGBrcxluvScXSNBVK+H3OUTBLgxpjWFLqtItvrY5WiIQhyZ0x1p5/CqpfsnSqRMravGWCBzZIKaTW/uTk7tB6GOSYHJyY5W
alVvUVBfa9cBlii6mQmjs44K8pUIt0ZY1/w9QgGLg6UX2FgjPWGsxKTzcpMpPKU2GsX5IHF7gxiGSlBGYMSa41JDo/C77RQK5
Vq3ypuoWyBoYxbTVVyUA/qLEzdM8AACxqz3vyUSU7XjUlaVdYXq6RHOxVnjJO0o8S31MMZayZa1dQd+nB+52m888v48PtYFNn
5cbe6M8a+lolubagL1rTV72khn3lPrfZNOiwwqimCgXxsvdWLtrzeo8QBY2CInWaZ1XVDn7by74wFeqFaQ7fNMUtzFFF0cMYY
WUpCJvWVkzGm+GCccMZyGdSRNBWFHup0MzlrMcbop9mH2O+xtHK265tJfh/Th2/3Us9pBDbBTHnPAAcsnu7s/J4/mCT2BNca2
x2x+dk7Cgaz0nXss8A4qs1V+J0W1LEpbVdSDLH/5Xi9AAw3xcUWH0KKAAAAAElFTkSuQmCC​"
},
{
"ink_passenger_identifier":"37744F35-4D49566F-474E4C41-2F4B784F-65387646-4F513D3D",
"apis_status":"WAITING_RESPONSE"
}
]
​}

METHOD : OBTAIN APPLE WALLET FILE

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
HTTP Method: GET

{protocol}://{domain}/api/{version}/boarding_pass/passbook?station_iata={station_iata}&ink_passen
ger_identifier={ink_passenger_identifier}&flight_number={flight_number}

station_iata Mandatory
flight_number Mandatory
ink_passenger_identifier Mandatory Unique identifier

Example Request

/boarding_pass/passbook?staion_iata=KRP&ink_passenger_identifier=6D754D4B-4F56724B-3931784D-61375
936-55383744-55673D3D&flight_number=IN7898

Example Response

Status: 200 OK

{
"apis_status":"OK",
"selectee":false,
"base64_pkpass":"UEsDBBQAAAAIAKWoL0xMBdXeRQkAAPEMAAAJAAAAc2lnbmF0dXJlzZZ9..."
}

METHOD : GET SEAT PLAN


HTTP Method: GET

{protocol}://{domain}/api/{version}/seat_plan/get_seat_plan?station_iata={station_iata}&flight_nu
mber={flight_number}&departure_date={departure_date}

station_iata Mandatory
flight_number Mandatory
departure_date Mandatory

Example Request

/seat_plan/get_seat_plan?station_iata=CPH&flight_number=IK124&departure_date=2020-05-13

Example Response

Status: 200 OK

{
"carrier_name":"Ink Trial",
"carrier_code":"IK",
"airplane_model":"A318",
"cabin_configuration":"148Y-DUALCLASS",
"seat_plan_class":[

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{
"name":"Business",
"seat_plan_row":[
{
"row":1,
"seat_plan_position":[
{
"seat_number":"1A",
"exit_seat":false,
"type":"seat"
},
{
"seat_number":"1B",
"exit_seat":false,
"type":"seat"
},
{
"seat_number":"Ai",
"exit_seat":false,
"type":"aisle"
},
{
"seat_number":"1C",
"exit_seat":false,
"type":"seat"
},
{
"seat_number":"1D",
"exit_seat":false,
"type":"seat"
}
]
}
]
}
]
}

METHOD : GET SEAT OCCUPANCY


HTTP Method: GET

{protocol}://{domain}/api/{version}/seat_plan/get_seat_occupancy?station_iata={station_iata}&flig
ht_number={flight_number}&departure_date={departure_date}

station_iata Mandatory
flight_number Mandatory
departure_date Mandatory

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
Example Request

/seat_plan/get_seat_occupancy?station_iata=CPH&flight_number=IK124&departure_date=2020-05-13

Example Response

Status: 200 OK

{
"flight_number":"IK124",
"departure_date":"2020-05-13",
"origin_station_iata":"CPH",
"destination_station_iata":"MAD",
"row":[
{
"row_number":"1",
"seat":[
{
"seat_number":"1A",
"status":"blocked"
},
{
"seat_number":"1B",
"status":"available"
},
{
"seat_number":"1C",
"status":"occupied"
},
{
"seat_number":"1D",
"status":"available"
}
]
},
{
"row_number":"2",
"seat":[
{
"seat_number":"2A",
"status":"allocated"
},
{
"seat_number":"2B",
"status":"available"
},
{
"seat_number":"2C",
"status":"occupied"
},
{

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"seat_number":"2D",
"status":"available"
}
]
}
]
}

METHOD : ADD PASSENGERS


HTTP Method: POST

{protocol}://{domain}/api/{version}/passenger/add

flight_number Mandatory flight_number


scheduled_departure_date Mandatory date
origin_station_iata Mandatory station_iata
itinerary Mandatory
passengers Mandatory
passenger_name_iata Optional passenger_name_iata
first_name Optional Mandatory if passenger_name_iata is not supplied
middle_name Optional
surname Optional Mandatory if passenger_name_iata is not supplied
fare_code Mandatory
booking_reference Optional
external_passenger_id Optional
group_code Optional
seat_number Optional
aci Optional ADULT|CHILD
gender Optional M|F|MALE|FEMALE
date_of_birth Optional date
residence_country Optional country_code
citizen_country Optional country_code
id_issuing_country Optional country_code
id_document_type Optional
id_number Optional
id_expiry_date Optional
phone_number Optional
email Optional
ticket_number Optional
ticket_type Optional
infants Optional array of passenger data
ssrs Optional
short_code Mandatory
note Mandatory
onward Optional
flight_number Mandatory
flight_date Mandatory
origin_station_iata Mandatory

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
destination_station_iata Mandatory
scheduled_departure_time Mandatory
fare_code Optional
booking_reference Optional
inbound Optional
flight_number Mandatory
flight_date Mandatory
origin_station_iata Mandatory
destination_station_iata Mandatory
scheduled_departure_time Mandatory
fare_code Optional
booking_reference Optional
inbound Optional
onward Optional
sequence Optional forces the check-in of the passenger

Example Request

/passenger/add

{
"flight_number": "IN6655",
"scheduled_departure_date": "2017-11-27",
"origin_station_iata": "INK",
"itinerary": "INK-ALC-CPH",
"passengers": [
{
"ALC": [
{
"passenger_name_iata": "SMITH/JOHN",
"first_name": "JOHN",
"middle_name": "",
"surname": "SMITH",
"booking_reference": "ABC123",
"group_code": "A1",
"seat_number": "2A",
"aci": "ADULT",
"gender": "MALE",
"date_of_birth": "1985-12-11",
"residence_country": "SWE",
"citizen_country": "SWE",
"id_issuing_country": "SWE",
"id_document_type": "P",
"id_number": "1234567",
"id_expiry_date": "2020-02-10",
"fare_code": "Y",
"phone_number": "1234567890",
"email": "john.smith@smith.com",
"ticket_number": "123456789012",
"ticket_type": "ETICKET",
"infants":[

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{ "passenger_name_iata": "SMITH/JJ",

"first_name": "JJ",
"middle_name": "",
"surname": "SMITH",
"booking_reference": "ABC123",
"gender": "MALE",
"date_of_birth": "2015-10-01",
"residence_country": "SWE",
"citizen_country": "SWE",
"id_issuing_country": "SWE",
"id_document_type": "P",
"id_number": "76543432",
"id_expiry_date": "2030-02-10",
"fare_code": "Y"
}
],
"ssrs": [
{
"short_code": "TKNE",
"note": "HK1 2439704684092/1"
}
]
},
{
"passenger_name_iata": "SMITH/JAMES",
"first_name": "JAMES",
"middle_name": "",
"surname": "SMITH",
"booking_reference": "ABC124",
"group_code": "A2",
"seat_number": "4A",
"gender": "MALE",
"date_of_birth": "1987-02-11",
"residence_country": "SWE",
"citizen_country": "SWE",
"id_issuing_country": "SWE",
"id_document_type": "P",
"id_number": "67890123",
"id_expiry_date": "2020-06-20",
"fare_code": "Y",
"phone_number": "23456",
"email": "james.smith@smith.com",
"ticket_number": "123456786153",
"ticket_type": "ETICKET",
"ssrs": [
{
"short_code": "TKNE",
"note": "HK1 2145702234092/1"
}
],

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"onward": [
{
"flight_number": "IN7700",
"flight_date": "2017-11-28",
"origin_station_iata": "ALC",
"destination_station_iata": "MAD",
"fare_code": "Y",
"scheduled_departure_time": "17:55"
}
],
"sequence": "100"
}
]
},
{
"CPH":[
{
"passenger_name_iata": "JONES/AL",
"first_name": "AL",
"middle_name": "",
"surname": "JONES",
"booking_reference": "QWE123",
"gender": "FEMALE",
"date_of_birth": "1990-03-21",
"residence_country": "GBR",
"citizen_country": "GBR",
"id_issuing_country": "GBR",
"id_document_type": "P",
"id_number": "36728948",
"id_expiry_date": "2022-04-13",
"fare_code": "Y",
"phone_number": "34567",
"email": "alk.jones@jones.com",
"ticket_type": "PAPER"
}
]
}
]
}

Example Response

Status: 200 OK

{
"passenger_results" : [
{
"passenger_name_iata": "SMITH/JOHN",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"external_passenger_id": "123456789ASDF",
"result": "ADDED",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"data": {...}
},
{
"passenger_name_iata": "SMITH/JJ",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673U32",
"result": "ADDED",
"data": {...}
},
{
"passenger_name_iata": "SMITH/JAMES",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B",
"external_passenger_id": "123456689ASDF",
"result": "ADDED",
"sequence": "100",
"data": {
"passenger_name_iata": "SMITH/JAMES",
"first_name": "JAMES",
"middle_name": "",
"surname": "SMITH",
"booking_reference": "ABC124",
...
}
},
{
"passenger_name_iata": "JONES/AL",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55654B5D",
"external_passenger_id": "123456689ASDF",
"result": "ADDED",
"data": {...}
}
]
}

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
METHOD : EDIT PASSENGERS
HTTP Method: POST

{protocol}://{domain}/api/{version}/passenger/edit

passengers Mandatory
ink_passenger_identifier​ Mandatory
passenger_name_iata Optional
first_name Optional
middle_name Optional
surname Optional
booking_reference Optional
group_code Optional
aci Optional
gender Optional
date_of_birth Optional
residence_country Optional
citizen_country Optional
id_issuing_country Optional
id_document_type Optional
id_number Optional
id_expiry_date Optional
fare_code Optional
seat_number Optional
phone_number Optional
email Optional
ticket_number Optional
ticket_type Optional
ssrs Optional
short_code Mandatory
note Mandatory
inbound Optional
onward Optional
sequence Optional forces the check-in of the passenger

Example Request

/passenger/edit

{
"passengers": [
{
"ink_passenger_identifier":"5174614E-68512F52-737A7038-47484844-4A2F4678-42413D3D",
"inbound":[
{
"fare_code":"Y",
"flight_number":"IN2002",
"flight_date":"2018-04-08",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"origin_station_iata":"EBJ",
"destination_station_iata":"INK",
"scheduled_departure_time": "10:00"
}
],
"onward":[
{
"fare_code":"Y",
"flight_number":"IN3002",
"flight_date":"2018-04-09",
"origin_station_iata":"BRE",
"destination_station_iata":"EWR",
"scheduled_departure_time": "12:00"
},
{
"fare_code":"Y",
"flight_number":"IN3003",
"flight_date":"2018-04-09",
"origin_station_iata":"EWR",
"destination_station_iata":"CDG",
"scheduled_departure_time": "13:00"
},
{
"fare_code":"Y",
"flight_number":"IN3004",
"flight_date":"2018-04-09",
"origin_station_iata":"CDG",
"destination_station_iata":"ABZ",
"scheduled_departure_time": "14:00"
}
]
},
{
"ink_passenger_identifier":"33756F66-75443974-504C4A7A-4E6B6233-3247346D-6A673D3D",
"ssrs": [
{
"short_code": "TKNE",
"note": "HK1 2439704684092/1"
}
],
"inbound":[],
"onward":[],
"sequence":"100"
},
{
"ink_passenger_identifier":"4C444445-34727261-4D6B514C-7139326B-56517472-36673D3D",
"inbound":[
{
"fare_code":"Y",
"flight_number":"IN2012",
"flight_date":"2018-04-08",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"origin_station_iata":"CPH",
"destination_station_iata":"INK",
"scheduled_departure_time": "10:00"
}
],
"onward":[
{
"fare_code":"Y",
"flight_number":"IN3012",
"flight_date":"2018-04-09",
"origin_station_iata":"BRE",
"destination_station_iata":"ABZ",
"scheduled_departure_time": "12:00"
}
]
}
]
}

Example Response

Status: 200 OK

{
"passenger_results":[
{
"operation_result":"SUCCESS",
"data":{
"ink_passenger_identifier":"5174614E-68512F52-737A7038-47484844-4A2F4678-42413D3D",
"onward":[
{
"fare_code":"Y",
"flight_number":"IN3002",
"flight_date":"2018-04-09",
"origin_station_iata":"BRE",
"destination_station_iata":"EWR"
},
{
"fare_code":"Y",
"flight_number":"IN3003",
"flight_date":"2018-04-09",
"origin_station_iata":"EWR",
"destination_station_iata":"CDG"
},
{
"fare_code":"Y",
"flight_number":"IN3004",
"flight_date":"2018-04-09",
"origin_station_iata":"CDG",
"destination_station_iata":"ABZ"
}

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
],
"inbound":{
"fare_code":"Y",
"flight_number":"IN2002",
"flight_date":"2018-04-08",
"origin_station_iata":"EBJ",
"destination_station_iata":"INK"
}
}
},
{
"operation_result":"SUCCESS",
"data":{
"ink_passenger_identifier":"33756F66-75443974-504C4A7A-4E6B6233-3247346D-6A673D3D",
"ssrs": [
{
"short_code": "TKNE",
"note": "HK1 2439704684888/1"
}
],
"onward":[

],
"inbound":[

]
},
"checkin_error": {
"error_code": "050",
"error_message": "Passenger already checked-in"
}
},
{
"operation_result":"SUCCESS",
"data":{
"ink_passenger_identifier":"4C444445-34727261-4D6B514C-7139326B-56517472-36673D3D",
"onward":[
{
"fare_code":"Y",
"flight_number":"IN3012",
"flight_date":"2018-04-09",
"origin_station_iata":"BRE",
"destination_station_iata":"ABZ"
}
],
"inbound":{
"fare_code":"Y",
"flight_number":"IN2012",
"flight_date":"2018-04-08",
"origin_station_iata":"CPH",
"destination_station_iata":"INK"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
}
}
}
]
}

METHOD : DELETE PASSENGERS


HTTP Method: POST

{protocol}://{domain}/api/{version}/passenger/delete

station_iata Mandatory
passengers Mandatory
ink_passenger_identifier​ Mandatory

Example Request

/passenger/delete

{
"passengers": [
{
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"
}
]
}

Example Response

Status: 200 OK

{
"passenger_results": [
{
"operation_result": "SUCCESS",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"
}
]
}

METHOD : GET SALES REPORT


HTTP Method: GET

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{protocol}://{domain}/api/{version}/station/get_sales_report?station_iata={station_iata}&date_fro
m_filter={date_from_filter}&date_to_filter={date_to_filter}&carrier_iata_code={carrier_iata_code}

station_iata Mandatory
date_from_filter Mandatory
date_to_filter Mandatory
carrier_iata_code Mandatory
offset Optional Default 0
limit Optional Default 100
hide_partial_payments Optional Default 0
Show_taxes Optional

Example Request

/station/get_sales_report?station_iata=INK&date_from_filter=2020-12-20&date_to_filter=2020-12-21&
carrier_iata_code=IN

Example Response

Status: 200 OK

{
"station_iata":"INK",
"date_from_filter":"2018-12-18",
"date_to_filter":"2018-12-21",
"carrier_iata_code":"IN",
"offset": 0,
"limit": "100",
"found": 2,
"fetch": 2,
"ancillary_report":[
{
"flight":"IN123",
"date":"2018-12-18",
"booking":"ABC123",
"passenger_name":"SMITH/JHON",
"calculated_amount":25000,
"collected_amount":22000,
"not_collected_amounT":3000,
"currency" : "USD",
"ancillary_items":[
{
"SSR": "XBAG1",
"description":"1Bag -XBAG1 - (1)",
"calculated_amount":"10000",
"Collected":true,
},
{
"description":"Excess Baggage",
"calculated_amount":"15000",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"collected":true
}],
"payments":[
{
"payment_date_time":"2018-12-21 09:47 GMT+0",
"payer_name":"SMITH/JHON",
"payer_id":"SMITH/JHON",
"collected":"10000",
"method":"cash",
"agent":"Smith Carl"
},
{
"payment_date_time":"2018-12-21 09:57 GMT+0",
"payer_name":"SMITH/JHON",
"payer_id":"SMITH/JHON",
"collected":"12000",
"Method":"card",
"agent":"Smith Carl"
}]
},
{
"flight":"IN456",
"date":"2018-12-18",
"booking":"ABC456",
"passenger_name":"CHARTS/JHON",
"calculated_amount":35000,
"collected_amount":32000,
"not_collected_amount":3000,
"currency" : "EUR",
"ancillary_items":[
{
"SSR": "XBAG1",
"description":"1Bag -XBAG1 - (1)",
"calculated_amount":"30000",
"collected":true
},
{
"SSR": "CRRY",
"description":"Carry ON - CRRY - (1)",
"calculated_amount":"35000",
"collected":true
}],
"payments":[
{
"payment_date_time":"2018-12-21 10:47 GMT+0",
"payer_name":"ARNOLD/JHON",
"payer_id":"18523202",
"collected":"30000",
"method":"cash",
"agent":"Smith Carl"
},
{

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"payment_date_time":"2018-12-21 10:57 GMT+0",
"payer_name":"SMITH/JHON",
"payer_id":"18523202",
"collected":"32000",
"method":"card",
"agent":"Smith Carl"
}]
}]
}

METHOD : UNBOARD PASSENGER


HTTP Method: GET

{protocol}://{domain}/api/{version}/passenger/unboard?station_iata={station_iata}&flight_number={
flight_number}&flight_date={flight_date}&ink_passenger_identifier={ink_passenger_identifier}

station_iata Mandatory
flight_number Mandatory
flight_date Mandatory
ink_passenger_identifier Mandatory

Example Request

/passenger/board?staion_iata=KRP&flight_number=AB123&flight_date=2020-05-13&ink_passenger_identif
ier=6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B

Example Response

Status: 200 OK

{
"passenger_results": [
{
"operation_result": "SUCCESS",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"
}
]
}

METHOD : GET TERMINALS


HTTP Method: GET

{protocol}://{domain}/api/{version}/station/get_terminals?station_iata={station_iata}

station_iata Mandatory

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
Example Request

/station/get_terminals?station_iata=INK

Example Response

Status: 200 OK

{
"station_iata":"INK",
"terminals":[
{
"name" : "Domestic",
"terminal_identifier":"6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"
},
{
"name" : "International",
"terminal_identifier":"6D754D4B-4F56724B-3121784D-61375936-55383744-55674G4B"
}]
}

METHOD : GET BOARDING GATES


HTTP Method: GET

{protocol}://{domain}/api/{version}/station/get_boarding_gates?station_iata={station_iata}

station_iata Mandatory

Example Request

/station/get_boarding_gates?station_iata=INK

Example Response

Status: 200 OK

{
"station_iata":"INK",
"terminals":[
{
"name" : "Domestic",
"terminal_identifier":"6D754D4B-4F56724B-3931784D-61375936-55383744-55674A1B",
"boarding_gates":[
{
"name": "A1",
"gate_identifier":"6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
},
{
"name": "A2",
"gate_identifier":"6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"
}
]
},
{
"name" : "International",
"terminal_identifier":"6D754D4B-4F56724B-3931784D-61375936-55383744-55674A2B",
"boarding_gates":[
{
"name": "D1",
"gate_identifier":"6D754D4B-4F56724B-3121784D-61375936-55383744-55674G4B"
}]
}]
}

METHOD : OPEN BOARDING


HTTP Method: GET

{protocol}://{domain}/api/{version}/station/open_boarding?station_iata={station_iata}&flight_numb
er={flight_number}&flight_date={flight_date}&gate_identifier={gate_identifier}

station_iata Mandatory
flight_number Mandatory
flight_date Mandatory
gate_identifier Mandatory

Example Request

/station/open_boarding?station_iata=KRP&flight_number=AB123&flight_date=2020-05-13&gate_identifie
r=6D754D4B-4F56724B-3121784D-61375936-55383744-55674G4B

Example Response

Status: 200 OK

{
"operation_result": "SUCCESS",
"​boarding_status​": "OPEN"
}

METHOD : CLOSE BOARDING


HTTP Method: GET

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
{protocol}://{domain}/api/{version}/station/close_boarding?station_iata={station_iata}&flight_num
ber={flight_number}&flight_date={flight_date}

station_iata Mandatory
flight_number Mandatory
flight_date Mandatory

Example Request

/station/close_boarding?station_iata=KRP&flight_number=AB123&flight_date=2020-05-13

Example Response

Status: 200 OK

{
"operation_result": "SUCCESS",
"​boarding_status​": "CLOSED"
}

METHOD : GET SSRS


HTTP Method: GET

{protocol}://{domain}/api/{version}/carrier/get_ssrs

Example Request

/carrier/get_ssrs

Example Response

Status: 200 OK
{
"Ink Aviation":[
"AVIH - Animal in hold",
"AVML - Asian vegetarian meal",
"BBML - Infant\/baby food",
"BIKE - Bicycle",
"BLML - Bland\/soft meal",
"BLND - Blind passenger",
"BSCT - Bassinet\/carrycot\/baby basket",
"BULK - Bulky baggage",
"CBBG - Cabin baggage with paid extra seat",
"CHKD - Checked-in Information",
"CHLD - Child",
"CHML - Child's meal",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"CKIN - Custom notes",
"COUR - Commercial Courier",
"CREW - Crew",
"CTCE - Email Contact Information",
"CTCM - Mobile Number Contact Information",
"DBML - Diabetic meal",
"DEAF - Deaf passenger",
"DEPA - Deportee with escort",
"DEPU - Deportee with no escort",
"DIPL - Diplomatic courier",
"DIVE - Diving gear",
"DOCA - Address information",
"DOCO - Other travel related information",
…………
"-INF - (Number of) infants",
"-VIP - Number of Very Important Passengers"
]
}

METHOD: MODIFY PASSENGER


HTTP Method: POST

This method only works for PSS integration services

{protocol}://{domain}/api/{version}/passenger/modify_passenger

Example Request

/passenger/modify_passenger

{
"Param": {
"Flight": {
"FlightCheckInStatus": "OPEN",
"MarketingAirlineCode": "FN ",
"MarketingFlightNumber": "1214",
"BoardingTime": "2019-10-05T10:00:00",
"BoardingGate": "",
"ArrivalGate": "",
"FlightDate": "2019-10-05T00:00:00",
"BoardDate": "2019-10-05T00:00:00",
"Origin": "VFA",
"Destination": "JNB",
"OperatingFlightNumber": "1214",
"Carrier": "FN",
"SeatConfigId": 2,
"FlightStatus": "OPEN",
"ScheduledDepartTime": "2019-10-05T10:00:00",
"EstimatedDepartTime": "2019-10-05T10:00:00",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"ScheduledArrivalTime": "2019-10-05T11:35:00",
"EstimatedArrivalTime": "2019-10-05T11:35:00",
"ThruLegs": []
},
"Passengers": [{
"PaxID": 1698159,
"Seat": "B ",
"Row": "5 ",
"Itinerary": [{
"EstDepartureTime": "2019-10-08T10:00:00",
"EstArrivalTime": "2019-10-08T11:35:00",
"FareClass": "T ",
"BoardingGate": "",
"ArrivalGate": "",
"DepartureDate": "2019-10-08T10:00:00",
"FlightOriginDateLt": "2019-10-08T00:00:00",
"ArrivalDate": "2019-10-08T11:35:00",
"Origin": "VFA ",
"Destination": "JNB ",
"FlightNumber": "1214",
"Carrier": "FN",
"FlightStatus": "OPEN",
"SchArrival": "2019-10-08T11:35:00",
"SchDeparture": "2019-10-08T10:00:00"
}],
"FrequentFlyerNum": "",
"RecordLocator": "",
"RecordNum": 2,
"Status": 1,
"FoidInfo": null,
"InfantPaxId": 0,
"PassengerTypeCode": null,
"Services": [{
"PersonOrgId": 1698159,
"SsrCode": "RQSS ",
"FreeText": ""
}],
"UnpaidCharges": [],
"PtcId": 1,
"TicketNumber": null,
"CheckInLocator": "8HQMH6",
"Currency": "USD",
"KnownTravelerNumber": "",
"RedressId": "",
"BoardingPassNum": null,
"Documents": [],
"Destinations": [],
"IsRoundTripBooking": false,
"FirstName": "BRIANNA",
"MiddleName": "A",
"LastName": "TESTER",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"Title": "MISS",
"Suffix": "",
"Gender": "F",
"DateOfBirth": "2001-10-10T00:00:00",
"Contacts": [],
"Weight": "",
"Nationality": "",
"BirthCountry": "",
"ResidenceCountry": "840 ",
"Address": "123 TEST ST",
"Address2": "",
"Country": "US",
"State": "FL",
"City": "ORLANDO",
"ZipCode": "32822"
}]
}
}

Example Response

Status: 200 OK

{
"result": "SUCCESS"
}

METHOD : ADD TRAIN PASSENGERS


HTTP Method: POST

{protocol}://{domain}/api/{version}/train/add_passengers

train_name Mandatory train_name


scheduled_departure_date Mandatory date
origin_station_code Mandatory station_iata
passengers Mandatory
passenger_name Mandatory
booking Optional
gender Optional M|F
aci Optional A|C
itinerary Mandatory
destination_station_code Mandatory
class_code Mandatory
rail_car Optional
seat Optional
accommodation Optional
hotel_code Optional

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
Example Request

/train/add_passengers

{
"train_name": "VIA0002",
"scheduled_departure_date": "2020-01-17",
"origin_station_code": "0BA",
"passengers": [
{
"passenger_name": "AASHIMA/TRAVELLER",
"booking": "GTB1000250",
"gender": "M",
"aci": "A",
"itinerary": [
{
"destination_station_code": "0CA",
"class_code": "Y",
"rail_car": "Car1",
"seat": "1C",
"accommodation": {
"hotel_code": "H01"
}
},
{
"destination_station_code": "0VA",
"class_code": "Y",
"rail_car": "Car1",
"seat": "3A",
"accommodation": null
}
]
}
]
}

Example Response

Status: 200 OK

{
"result": "SUCCESS"
}

METHOD : SEARCH TRAIN PASSENGERS


HTTP Method: GET

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
Although they are all optional, either the booking_reference or name_filter must be given. There must be at least one
criteria with which to find the passenger(s).

{protocol}://{domain}/api/{version}/train/search_passenger

station_code Mandatory
train_name Optional
booking Optional
Name Optional (must have train_name as well)
license_plate Optional
sequence Optional (must have train_name as well)
terminal_identifier Optional

Example Request

/train/search_passenger?booking=EJH7UK&train_name=AA123
/train/search_passenger?name=SMITH&train_name=AA123
/train/search_passenger?name=SMITH&terminal_identifier=6D754D4B-4F56724B-3931784D-61375936-553837
44-55674G4B

Example Response

Status: 200 OK

{
"passengers" : [
{
"passenger_name": "SMITH/JOHN",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"train_name": "VIA111",
"scheduled_departure_date": "2020-05-13",
"booking": "ERY77JK",
"status": "CHECKED_IN",
"sequence": "234",
"itinerary_summary": "KRP-CPH"
},
{
"passenger_name": "SMITHSON/JOHNSON",
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55673D3D",
"train_name": "VIA2222",
"scheduled_departure_date": "2020-05-13",
"booking": "JHS7EF",
"status": "NOT_YET_CHECKED_IN",
"itinerary_summary": "KRP-OSL"
}
]
}

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
METHOD : EDIT TRAIN PASSENGERS
HTTP Method: POST

{protocol}://{domain}/api/{version}/train/edit_passengers

train_name Mandatory train_name


scheduled_departure_date Mandatory date
origin_station_code Mandatory station_iata
passengers Mandatory
ink_passenger_identifier Mandatory
passenger_name Optional
booking Optional
gender Optional M|F
aci Optional A|C
itinerary Mandatory
destination_station_code Mandatory
class_code Mandatory
rail_car Optional
seat Optional
accommodation Optional
hotel_code Optional

Example Request

/train/edit_passengers

{
"train_name": "VIA0002",
"scheduled_departure_date": "2020-01-17",
"origin_station_code": "0BA",
"passengers": [
{
"ink_passenger_identifier":"4C444445-34727261-4D6B514C-7139326B-56517472-36673D3D",
"passenger_name": "AASHIMA/TRAVELLER",
"booking": "GTB1000250",
"gender": "M",
"aci": "A",
"itinerary": [
{
"destination_station_code": "0CA",
"class_code": "Y",
"rail_car": "Car1",
"seat": "1C",
"accommodation": {
"hotel_code": "H01"
}
},
{
"destination_station_code": "0VA",

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
"class_code": "Y",
"rail_car": "Car1",
"seat": "3A",
"accommodation": null
}
]
}
]
}

Example Response

Status: 200 OK

{
"result": "SUCCESS"
}

METHOD : DELETE TRAIN PASSENGERS


HTTP Method: POST

{protocol}://{domain}/api/{version}/train/delete_passengers

passengers Mandatory
ink_passenger_identifier​ Mandatory

Example Request

/train/delete_passengers

{
"passengers": [
{
"ink_passenger_identifier": "6D754D4B-4F56724B-3931784D-61375936-55383744-55674G4B"
}
]
}

Example Response

Status: 200 OK

{
"result": "SUCCESS"

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink
}

METHOD : ADD TRAIN PASSENGERS XML


HTTP Method: POST

{protocol}://{domain}/api/{version}/train/add_passengers_xml

Send the XML in the same format as it is shown on the attachment.

Example Response

Status: 200 OK

{
"result": "SUCCESS"
}

Copyright © Ink Aviation


aviation.ink​ • ​info@aviation.ink​ • ​linkedin.aviation.ink

You might also like