api interface specification - admin.ch · pdf file0.6 28.04.2011 proof-reading of german to...

24
Federal Department of Justice and Police FDJP State Secretariat for Migration SEM Entry Division API Interface Specification V1.4 of 25.05.2016 1/24 API Interface Specification Version * 1.4 Date * 25.05.2016 Status approved for use Final title Interface Specification Author M. Germann, ISC-EJPD; B. Erni, SEM Owner SEM Distribution list Reporting airlines, SEM Homepage (without contact details) * These details, if changed, should also be adapted in all footers. Document change control, review, validation Version Date Description, Comment Name, Role, OU 0.1 01.02.2011 First version of document Matthias Germann 0.2 08.02.2011 Sequence of country of issue / expiry date of the travel document corrected in the CSV format Matthias Germann 0.3 09.02.2011 Amendments by the SEM Barbara Erni 0.4 17.02.2011 Amendments following review Matthias Germann 0.5 28.03.2011 Adaptation of document types and country codes Matthias Germann 0.6 28.04.2011 Proof-reading of German to English translation. Michelle Desmond 0.7 09.05.2011 Flight number modified Barbara Erni 0.8 06.07.2011 Chapter 4, footnote concerning UN/EDIFACT format. Barbara Erni 1.0 Aug. 2011 Publication Barbara Erni 1.1 25.01.2012/ 08.03.2012 Formal rework, amendment of document no. length, footnote 1, 3 and 5 added or amended. Barbara Erni 1.2 02.04.2015 Addition to UNA Header and various minor corrections. Expansion for communicating the port of disembarkation. Matthias Germann 1.3 30.11.2015 Update of section 3.5 Contact details and various minor corrections. Ariane Studer 1.4 25.05.2016 Deletion of the format 05B in the sections 4.2 UN/EDIFACT PAXLST and 4.2.5 UNH Message Header and minor corrections. Ariane Studer

Upload: vobao

Post on 16-Mar-2018

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Federal Department of Justice and Police FDJP

State Secretariat for Migration SEM

Entry Division

API Interface Specification V1.4 of 25.05.2016 1/24

API Interface Specification

Version * 1.4

Date * 25.05.2016

Status approved for use

Final title Interface Specification

Author M. Germann, ISC-EJPD; B. Erni, SEM

Owner SEM

Distribution list Reporting airlines, SEM Homepage (without contact details)

* These details, if changed, should also be adapted in all footers.

Document change control, review, validation

Version Date Description, Comment Name, Role, OU

0.1 01.02.2011 First version of document Matthias Germann

0.2 08.02.2011 Sequence of country of issue / expiry date of the travel document corrected in the CSV format

Matthias Germann

0.3 09.02.2011 Amendments by the SEM Barbara Erni

0.4 17.02.2011 Amendments following review Matthias Germann

0.5 28.03.2011 Adaptation of document types and country codes

Matthias Germann

0.6 28.04.2011 Proof-reading of German to English translation.

Michelle Desmond

0.7 09.05.2011 Flight number modified Barbara Erni

0.8 06.07.2011 Chapter 4, footnote concerning UN/EDIFACT format.

Barbara Erni

1.0 Aug. 2011 Publication Barbara Erni

1.1 25.01.2012/08.03.2012

Formal rework, amendment of document no. length, footnote 1, 3 and 5 added or amended.

Barbara Erni

1.2

02.04.2015 Addition to UNA Header and various minor corrections.

Expansion for communicating the port of disembarkation.

Matthias Germann

1.3 30.11.2015 Update of section 3.5 Contact details and various minor corrections.

Ariane Studer

1.4 25.05.2016 Deletion of the format 05B in the sections 4.2 UN/EDIFACT PAXLST and 4.2.5 UNH Message Header and minor corrections.

Ariane Studer

Page 2: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 2/24

Definitions, acronyms and abbreviations

Term / abbreviation Explanation

API Advance Passenger Information

API message Flight passenger list (PAXLST)

FOITT Federal Office of Information Technology, Systems and Telecommunication

SEM State Secretariat for Migration

SITA Société Internationale de Télécommunications Aéronautiques

References

Ref. Title, source

ISO 9735 United Nations Directories for Electronic Data Interchange for Administration, Commerce and Transport. UN/EDIFACT Syntax Rules (ISO 9735 latest version)

ICAO 9303 International Civil Aviation Organisation. Doc 9309: Machine Readable Travel Documents, ICAO, 2006

PAXLST United Nations Directories for Electronic Data Interchange for Administration, Commerce and Transport. UN/EDIFACT Message Type PAXLST, Version D, Release 02B, United Nations, Geneva 13.02.2003.

Page 3: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 3/24

Contents

1 Introduction ..................................................................................................................... 5

2 Transmission types and formats ..................................................................................... 5

2.1 SITA Type B ........................................................................................................ 5 2.2 API WebUpload ................................................................................................... 6 2.2.1 Web browsers ...................................................................................................... 6 2.2.2 Account ............................................................................................................... 7

3 Organisation ................................................................................................................... 8

3.1 Acceptance of first API message only .................................................................. 8 3.2 Confirmation of receipt ......................................................................................... 8 3.3 Testing data transmission .................................................................................... 8 3.4 Data transmission in exceptional cases ............................................................... 8 3.5 Contact details ..................................................................................................... 9

4 Format specifications ...................................................................................................... 9

4.1 General ................................................................................................................ 9 4.1.1 Permitted character sets ...................................................................................... 9 4.1.2 Travel document types ...................................................................................... 10 4.2 UN/EDIFACT PAXLST ...................................................................................... 10 4.2.1 Multi-part API messages .................................................................................... 10 4.2.2 Overview of the PAXLST message .................................................................... 11 4.2.3 UNA (Service String Advice) .............................................................................. 12 4.2.4 UNB Interchange Header .................................................................................. 12 4.2.5 UNH Message Header ....................................................................................... 13 4.2.6 BGM Begin of Message ..................................................................................... 14 4.2.7 NAD Name and address (Reporting party) ........................................................ 14 4.2.8 COM Communication contact (Reporting party) ................................................. 14 4.2.9 TDT Transport information ................................................................................. 14 4.2.10 LOC Place/location identification (Flight itinerary) ......................................... 15 4.2.11 DTM Date/time/period (Flight itinerary) .......................................................... 15 4.2.12 NAD Name and address (Traveler) ............................................................... 15 4.2.13 ATT Attribute (Traveler Gender) .................................................................... 16 4.2.14 DTM Date/time/period (Traveler Date of Birth) .............................................. 16 4.2.15 LOC Place/location identification (Traveler itinerary) ..................................... 16 4.2.16 NAT Nationality ............................................................................................. 17 4.2.17 DOC Document/message details (Travel Document) .................................... 17 4.2.18 DTM Date/time/period (Travel Document) ..................................................... 17 4.2.19 LOC Place/location identification (Travel Document) ..................................... 18 4.2.20 CNT Control total .......................................................................................... 18 4.2.21 UNT Message Trailer .................................................................................... 18 4.2.22 UNZ Interchange Trailer ................................................................................ 18 4.3 CSV ................................................................................................................... 19

5 Annex ........................................................................................................................... 21

5.1 Example of a single-block UN/EDIFACT message ............................................ 21 5.2 Example of a multi-part UN/EDIFACT message ................................................ 22 5.2.1 Part 1 of 3 .......................................................................................................... 22 5.2.2 Part 2 of 3 .......................................................................................................... 22 5.2.3 Part 3 of 3 .......................................................................................................... 23 5.3 Example of a CSV message .............................................................................. 23

Page 4: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 4/24

Figures

Fig. 1: Transmission via the SITA network ............................................................................. 6 Fig. 2: Transmission via API WebUpload ............................................................................... 6

Tables

Table 1: Transmission types and formats ............................................................................... 5 Table 2: Permitted characters ................................................................................................ 9 Table 3: Document types ..................................................................................................... 10 Table 4: UNA Service String Advice ..................................................................................... 12 Table 5: UNB Interchange Header ....................................................................................... 13 Table 6: UNH Message Header ........................................................................................... 13 Table 7: BGM Begin of Message ......................................................................................... 14 Table 8: NAD Name and address (Reporting party) ............................................................. 14 Table 9: COM Communication contact (Reporting party) ..................................................... 14 Table 10: TDT Transport information ................................................................................... 15 Table 11: LOC Place/location identification (Flight itinerary) ................................................ 15 Table 12: DTM Date/time/period (Flight itinerary) ................................................................. 15 Table 13: NAD Name and address (Traveler) ...................................................................... 16 Table 14: ATT Attribute (Traveler Gender) ........................................................................... 16 Table 15: DTM Date/time/period (Traveler Date of Birth) ..................................................... 16 Table 16: LOC Place/location identification (Traveler itinerary) ............................................ 17 Table 17: NAT Nationality .................................................................................................... 17 Table 18: DOC Document/message details (Travel Document) ........................................... 17 Table 19: DTM Date/time/period (Travel Document) ............................................................ 18 Table 20: LOC Place/location identification (Travel Document) ............................................ 18 Table 21: Control total .......................................................................................................... 18 Table 22: UNT Message trailer ............................................................................................ 18 Table 23: UNZ Message trailer ............................................................................................ 19 Table 24 CSV Frist row ........................................................................................................ 19 Table 25 CSV Second and subsequent rows (passenger data) ........................................... 20

Page 5: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 5/24

1 Introduction

In accordance with Art. 104 of the Federal Act on Foreign Nationals (FNA; SR 142.20), the State Secretariat for Migration (SEM) shall determine, having consulted with airline carriers, the flights for which passengers’ personal details (hereafter referred to as API messages) are to be submitted electronically immediately after departure. This document describes the interface to the Swiss API system, by which means the airline carriers can transmit API messages to the SEM. It shall serve as a basis for both parties in determining the required infrastructure. Further to the requirements and pre-requisites specified herein, the provisions laid-out in the API Ruling of the duty to provide passenger data, are also applicable. The contents of this document have been divided into three main parts. Chapter 2 provides a description of the data transmission options and applicable message formats. Chapter 3 contains some important organisational information, whilst Chapter 4 specifies the exact format in which the SEM expects to receive API messages. To facilitate implementation on the carrier side, a number of sample messages are provided in the appendix of this document.

Any use of the Swiss API System interface is at the carrier’s own risk. The SEM and the IT

Service Center ISC-FDJP assumes no liability for any loss or damage arising directly or

indirectly from the use of the Swiss API system.

2 Transmission types and formats

API messages can be sent to the SEM via the SITA network (Type B messaging) or, in the

case of carriers that do not use SITA, by way of the API WebUpload (the file is uploaded via

the Internet). The message formats that can be used are UN/EDIFACT PAXLST and CSV

respectively. The following table shows the transmission types and message formats

supported:

Transmission type Message formats supported

SITA Type B UN/EDIFACT PAXLST

API WebUpload CSV1

Table 1: Transmission types and formats

2.1 SITA Type B

When using the SITA network, the carrier sends the API message to SITA’s messaging

system (Type B messaging), which then forwards the message to the SEM by way of a SITA

data line.

1 Any airline wishing to use the XML message format, must provide the FOM with due notice thereof.

The FOM will accordingly furnish the requesting airline with a detailed XML message description.

Page 6: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 6/24

Fig. 1: Transmission via the SITA network

The message format supported for transmission via SITA Type B messaging is UN/EDIFACT

PAXLST.

2.2 API WebUpload

Carriers unable to use the SITA network can avail of the API WebUpload application as an

alternative means of data submission. The API WebUpload is an online web-application. It

can be launched from a standard web browser.

The carrier’s designated representative at the place of departure can log into the API

WebUpload application using a username and password2. Subsequently, the file containing

the API message can be uploaded. The link between the carrier’s computer and the SEM’s

web server is SSL-encrypted (HTTPS).

Fig. 2: Transmission via API WebUpload

The message format supported for transmission via the API WebUpload is CSV.

2.2.1 Web browsers

The API WebUpload has been tested for the following web browsers:

Microsoft Internet Explorer 7 (IE7)

Microsoft Internet Explorer 8 (IE8)

Mozilla Firefox 3 (FF3)

2 The FOM shall assign the carrier a username and password for each place of departure as part of its

API air carrier registration process.

Page 7: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 7/24

There is no guarantee that the API WebUpload will function properly with any web browser,

other than those specified above.

The API WebUpload uses an HTTPS server certificate issued by the AdminPKI of the FOITT

(Federal Office of Information Technology, Systems and Telecommunication). The root

certificates of the AdminPKI have been integrated in Microsoft Internet Explorer, since May

22nd, 2008. Should a different web browser be used, then the AdminPKI root certificate must

be installed manually. Otherwise, the web browser will display a security warning when

executing the API WebUpload. Please refer to the following link for further information on

installing the AdminPKI root certificates:

http://www.bit.admin.ch/adminpki/00247/index.html?lang=de

2.2.2 Account

The password for the API WebUpload account must be changed upon first login, after which

it should be changed again, at least every 60 days. The password can be changed within the

API WebUpload application itself (menu item “Change Password”). The following rules apply

for the creation of passwords:

Password length: 8 to 50 characters

Passwords that are easily guessed, such as username, last or first names, date of

birth, etc. should not be used.

Passwords should be composed from the following:

- Uppercase letters: A-Z

- Lowercase letters: a-z

- Digits: 0-9

- Special characters: ( ) [ ] { } ? ! $ % & / = * + ~ . ; : < > - _

At least three of these character categories must be used in the password.

A password already used in the past should never be used again.

The carrier is responsible for appropriate storage and safe-guarding of the password.

An API WebUpload account shall automatically be blocked, for the duration of 30 minutes,

after five unsuccessful login attempts. Contact the help desk of the IT Service Center ISC-

FDJP to have an account manually unblocked within the 30-minute lock-out period or to reset

the password.

Page 8: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 8/24

3 Organisation

3.1 Acceptance of first API message only3

Only one API message is accepted by the Swiss API System for each designated flight4. Any

further API messages submitted for a flight for which an API message has already been received, shall be given the status “multiple transmission” and will not be processed by the API system. The first API message is thus the only one used by the SEM, and must therefore contain all the required data in the correct format. The API System does not allow for subsequent correction. Furthermore, the SEM shall not issue a ‘reminder-to-transmit’ message to the carrier, should the data transfer not take place as specified. N.B. If an API message is not transmitted as prescribed or is deemed ‘late’, the carrier is in breach of its duty to deliver passenger personal data, and may be issued with a fine under Art. 122b FNA.

3.2 Confirmation of receipt

The API system confirms receipt of the (first) API message if this is explicitly requested by the carrier upon registration. This confirmation merely states that data has been received, but not whether they are error-free. In the case of the WebUpload, this confirmation is displayed after the data have been successfully transmitted. Receipt of data transmitted via SITA is confirmed in an automatically generated e-mail (no reply). If the carrier requires confirmation of receipt, it should provide the SEM with a correspondence e-mail address (one per place of departure). If the carrier wishes to change its correspondence address, the new address must be sent to the SEM in advance, i.e. at least 14 days before it comes into effect.

3.3 Testing data transmission

The SEM offers air carriers the possibility to test the validity of their API message format implementation prior to their ‘go-live’ date. The SEM must however, receive due notification of the wish to avail of this option, in order to complete any necessary preparations on the receiving end.

3.4 Data transmission in exceptional cases

The API message should be transmitted via SITA or, if a carrier does not work with SITA, via the API WebUpload application. In exceptional circumstances (e.g. system failure), the API message may be sent by fax. The relevant fax number shall be provided during the air carrier registration process.

3 Provision has been made for the exceptional case of ‘sector’ or ‘triangle’ flights. In such cases, the

airline may deliver one message per leg of the journey. 4 A flight is identified by its flight no., date of arrival and route.

Page 9: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 9/24

3.5 Contact details5

Non-technical queries can be addressed to the SEM (Section “Border Policy”) using the following e-mail address:

[email protected]

4 Format specifications

4.1 General

4.1.1 Permitted character sets

The messages may use the following character sets only:

US-ASCII

ISO-8859-1

UTF-8

Furthermore, only the following characters are permitted:

Characters Example

Uppercase letters A-Z

Lowercase letters a-z

Digits 0-9

Space

Full stop .

Comma ,

Parentheses ( )

Forward slash /

Apostrophe '

Plus sign +

Minus sign -

Colon :

Asterisk *

Semi colon ;

Equals sign =

Less-than / Greater-than signs < >

Question mark ?

Exclamation mark !

Percentage sign %

Ampersand &

Table 2: Permitted characters

Other characters may be used only with the SEM’s permission. Names containing other

characters must be converted to one of the above characters, in accordance with ICAO 9303

[ICAO 9303].

5 The interface document, which is available on the SEM homepage, does not contain specific contact

details. This information is furnished only upon direct contact with the SEM.

Page 10: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 10/24

4.1.2 Travel document types

The code for the travel document type must be taken from the document’s MRZ (see also

[ICAO 9303]). The code can comprise of two characters, with any one of the following letters

being used in the first position:

Document type Code of document (1st position)

Passport P

Visa V

ID card I, A or C (the use of ID is recommended)

Schengen residence permit A, C or I (the use of AR is recommended)

Table 3: Document types

4.2 UN/EDIFACT PAXLST

API messages in the EDIFACT standard are expected in the following message format:

Message type: PAXLST

Version: D

Release: 02B

Control agency UN

As a general rule, the [PAXLST] Specification is applicable. However, in order to meet the

legal provisions for the API system, some additional requirements beyond those specified in

[PAXLST] are presented herein. In particular, these refer to whether certain attributes are

conditional (optional) or mandatory. The requirements specified in this API system interface

document take precedence over the [PAXLST] Specification. Attributes mentioned in

[PAXLST] but which are not of relevance to the SEM, are not described in this document.

4.2.1 Multi-part API messages

API messages transmitted via SITA Type B messaging are subject to a size limitation.6 If this

maximum is exceeded, the API message will be split into several parts (multi-part API

message). The following rules apply for multi-part API messages:

1. Each message-part must contain a complete set of the following header and trailer

segments:

UNH Message Header

UNB Interchange Header

BGM Begin of Message

UNT Message Trailer

UNZ Interchange Trailer

2. Each message-part must contain the complete header data for the flight (segment

groups 1 to 3).

3. The following elements must be the same for all parts of a multi-part API message:

Date and Time elements in the UNB Interchange Header segment

Interchange Control Reference in the UNB Interchange Header segment

Common Access Reference in the UNH Message Header segment

Means of Transport Journey Identifier in the TDT Transport information segment

4. The individual parts of a multi-part API message must be numbered sequentially (01,

02, 03, etc.) in the Sequence of Transfers element of the UNH Message Header

segment.

6 Further details about the current maximum size for a Type B message are available from SITA.

Page 11: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 11/24

5. The first part of a multi-part API message should be marked with a “C” in the First and

last Transfer element of the UNH Message Header segment. The final part should be

marked with an “F”. For all intermediate parts, the First and last Transfer element is

not used.

6. In the CNT Control total segment, the total number of passengers on the flight must

be specified in all parts (and not just the number of passengers in that part of the

message).

7. The data concerning an individual passenger may not be split over several message-

parts.

8. All parts of a multi-part API message must be received within 15 minutes of receiving

the first part. Individual message-parts must not be sent more than once.

9. An API message is deemed to have been submitted only after all the individual parts

have been received.

4.2.2 Overview of the PAXLST message

The following table gives an overview of the structure of a PAXLST message:

Name S7 R8 Comments

├─ UNA (Service String Advice)

C 1

├─ UNB Interchange Header M 1

├─ UNH Message Header M 1

├─ BGM Begin of Message M 1

├─ Segment group 1

M

1

│ ├─ NAD Name and address (Reporting party) M 1

│ └─ COM Communication contact (Reporting party)

│ C 9 One occurrence per communication

number

├─ Segment group 2

M

1

│ ├─ TDT Transport information M 1

│ │

│ └─ Segment group 3

M

2

One occurrence for departure and

one for arrival

│ ├─ LOC Place/location identification (Flight itinerary) M 1

│ └─ DTM Date/time/period (Flight itinerary) M 1

├─ Segment group 4

C

999 One occurrence per passenger

│ ├─ NAD Name and address (Traveler) M 1

│ ├─ ATT Attribute (Traveler Gender) M 1

│ ├─ DTM Date/time/period (Traveler Date of Birth) M 1

│ ├─ LOC Place/location identification (Traveler itinerary) M 2 One occurrence for port of

embarkation and one for port of

disembarkation

│ ├─ NAT Nationality M 8 One occurrence per nationality

│ └─ Segment group 5

M

2

One occurrence per travel document

(1. Passport / 2. Visa).

│ ├─ DOC Document/message details (Travel Document) M 1

│ ├─ DTM Date/time/period (Travel Document) C 1

7 M = Mandatory; C = Conditional (optional) 8 Maximum number of repetitions for the segment

Page 12: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 12/24

Name S7 R8 Comments

│ └─ LOC Place/location identification (Travel Document) M 1

├─ CNT Control total M 1

├─ UNT Message Trailer

└─ UNZ Interchange Trailer M 1

4.2.3 UNA (Service String Advice)

The UNA service segment defines the separators used in a message. It is the first segment

of the message (before the UNB segment). A space may be used only for the Repetition

separator (position 050). Each separator may be used only once in the UNA segment. If no

UNA segment is sent, the default values in this table will be used.

Example: UNA:+.? '

Pos Name Default

010 Subelement separator : (colon)

020 Element separator + (plus sign)

030 Decimal notation . (full stop)

040 Release indicator ? (question mark)

050 Repetition separator (space)

060 Segment terminator ' (single quote)

Table 4: UNA Service String Advice

It is strongly recommended that the UNA Service String Advice should be specified and,

where possible, the default separators from the table above should be used. If the default

values cannot be used, the characters defined in the table as defaults should not be used

anywhere else in the UNA Header than the location for which they are defined as defaults.

4.2.4 UNB Interchange Header

Example:

UNB+UNOA:4+LUFTHANSA:ZZ+HDQCH2X:ZZ+110126:1409+ICR123456789++APIS'

Pos Tag Name S R Form. Comments

010 S001 SYNTAX IDENTIFIER M 1

0001 Syntax identifier M 1 a4 =UNOA (UN/ECE level A)

0002 Syntax version number M 1 an1 =4 (Version 4 ISO 9735:1998)

020 S002 INTERCHANGE SENDER M 1

0004 Interchange sender identification M 1 an..35 Name of transmitting carrier

0007 Identification code qualifier C 1 an..4 =ZZ (if exists)

030 S003 INTERCHANGE RECIPIENT M 1

0010 Interchange recipient identification M 1 an..35 =HDQCH2X (name of recipient)

0007 Identification code qualifier C 1 an..4 =ZZ (if exists)

040 S004 DATE AND TIME OF PREPARATION

M 1

0017 Date M 1 n6 YYMMDD (date of preparation)

Page 13: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 13/24

Pos Tag Name S R Form. Comments If an API message consists of several parts (multi-part API message), the same value must be used for all parts.

0019 Time M 1 n4 HHMM (time of preparation)

If an API message consists of several parts (multi-part API message), the same value must be used for all parts.

050 0020 Interchange control reference M 1 an..14 Originator's unique reference no. for the API message. If an API message consists of several parts (multi-part API message), the same value must be used for all parts.

060 S005 RECIPIENT REFERENCE / PASSWORD DETAILS

C 1 Not used

070 0026 Application Reference M an..14 =APIS

Table 5: UNB Interchange Header

4.2.5 UNH Message Header

Example for a single-block API message: UNH+MRN123456789+PAXLST:D:02B:UN:IATA'

Example for a multi-part API message:

Block 1 of 3: UNH+00102052460024+PAXLST:D:02B:UN:IATA+123456789+01:C'

Block 2 of 3: UNH+00102052460025+PAXLST:D:02B:UN:IATA+123456789+02'

Block 3 of 3: UNH+00102052460026+PAXLST:D:02B:UN:IATA+123456789+03:F'

Pos Tag Name S R Form. Comments

010 0062 Message reference number M 1 an..14 Originator’s unique reference no. for the message.

020 S009 MESSAGE IDENTIFIER M 1

0065 Message type M 1 an..6 =PAXLST

0052 Message version number M 1 an..3 =D

0054 Message release number M 1 an..3 =02B

0051 Controlling agency, coded M 1 an..3 =UN

0057 Association assigned code C 1 an..6 =IATA

030 0068 Common access reference C 1 an..35 Used if an API message consists of several parts (multi-part API message).

Must contain the same value for all parts of a multi-part API message.

040 S010 STATUS OF THE TRANSFER C 1

0070 Sequence of transfers C 1 n..2 Used if an API message consists of several parts (multi-part API message).

The individual parts are numbered in ascending order (01,02,03)

0073 First and last transfer C 1 a1 Used if an API message consists of several parts (multi-part API message).

The initial block must be given the value “C”, the final block the value “F”. No value is given to the intermediate parts.

Table 6: UNH Message Header

Page 14: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 14/24

4.2.6 BGM Begin of Message

Example: BGM+745'

Pos Tag Name S R Form. Comments

010 C002 DOCUMENT/MESSAGE NAME M 1

1001 Document Name Code M 1 an..3 =745 (Passenger list)

Table 7: BGM Begin of Message

4.2.7 NAD Name and address (Reporting party)

The originator of the API message is specified in the NAD segment (Reporting Party).

Example: NAD+MS+++LUFTHANSA HELPDESK DME'

Pos Tag Name S R Form. Comments

010 3035 PARTY FUNCTION CODE QUALIFIER

M 1 an..3 =MS (Document/message issuer/sender)

020 C082 PARTY IDENTIFICATION DETAILS C 1 Not used

030 C058 NAME AND ADDRESS C 1 Not used

040 C080 PARTY NAME M 1

3036 Party name M 1 an..35 Name of the originator of the API message

Table 8: NAD Name and address (Reporting party)

4.2.8 COM Communication contact (Reporting party)

The COM Communication contact (Reporting party) segment is used for the contact numbers

(telephone, fax) of the originator of the API message. This segment may appear several

times if several communication numbers are to be entered.

Example: COM+022 222 222222:TE'

Pos Tag Name S R Form. Comments

010 C076 COMMUNICATION CONTACT M 1

3148 Communication address identifier M 1 an..512

Telephone or fax number

3155 Communication address code qualifier

M 1 an..3 TE=Telephone FX=Fax

Table 9: COM Communication contact (Reporting party)

4.2.9 TDT Transport information

Example: TDT+20+LH123+++LH'

Pos Tag Name S R Form. Comments

010 8051 TRANSPORT STAGE CODE QUALIFIER

M 1 an..3 =20 (Main-carriage transport)

020 8028 MEANS OF TRANSPORT JOURNEY IDENTIFIER

M 1 an..17

[0-9A-Z]{2,3}[0-9]{1,4}

Flight no. (e.g. LH123). If the carrier does not have an IATA code, the ICAO code is used.

030 C220 MODE OF TRANSPORT C 1 Not used

040 C001 TRANSPORT MEANS C 1 Not used

050 C040 CARRIER M 1

Page 15: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 15/24

Pos Tag Name S R Form. Comments

3127 Carrier identifier M 1 an..17 [0-9A-Z]{2,3}

Carrier code (IATA). If the carrier does not have an IATA code, the ICAO code is used.

Table 10: TDT Transport information

4.2.10 LOC Place/location identification (Flight itinerary)

The LOC Place/location identification (Flight itinerary) segment is used for the airport of

departure and/or arrival.

Example for departure: LOC+125+DME'

Example for arrival: LOC+87+ZRH'

Pos Tag Name S R Form. Comments

010 3227 LOCATION FUNCTION CODE QUALIFIER

M 1 an..3 125=Departure 87 =Arrival

020 C517 LOCATION IDENTIFICATION M 1

3225 Location name code M 1 an..3 [A-Z]{3}

IATA airport code

Table 11: LOC Place/location identification (Flight itinerary)

4.2.11 DTM Date/time/period (Flight itinerary)

The DTM Date/time/period (Flight itinerary) segment is used for the flight’s time of departure

or arrival (date and time).

Example for departure (STD): DTM+189:1101261430:201'

Example for arrival (STA): DTM+232:1101261730:201'

Pos Tag Name S R Form. Comments

010 C507 DATE/TIME/PERIOD M 1

2005 Date or time or period function code qualifier

M 1 an..3 189=Departure (STD) 232=Arrival (STA)

2380 Date or time or period text M 1 an..35 YYMMDDHHmm

Date and time of departure or arrival

2379 Date or time or period format code M 1 an..3 =201 (YYMMDDHHmm)

Table 12: DTM Date/time/period (Flight itinerary)

4.2.12 NAD Name and address (Traveler)

The DTM Date/time/period (Flight itinerary) segment is used for the passenger’s name.

Example: NAD+FL+++MUELLER:MARIA URSULA'

Pos Tag Name S R Form. Comments

010 3035 PARTY FUNCTION CODE QUALIFIER

M 1 an..3 =FL (Passenger), DDU (in transit passenger)

020 C082 PARTY IDENTIFICATION DETAILS C 1 Not used

030 C058 NAME AND ADDRESS C 1 Not used

Page 16: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 16/24

Pos Tag Name S R Form. Comments

040 C080 PARTY NAME M 1

3036 Name and address description M 1 an..35 [A-Z\- ]{1,35}

Surname. If more than one surname, separated by a space

3036 Name and address description M 1 an..35 [A-Z\- ]{1,35}

Given name. If more than one given name, separated by a space

Table 13: NAD Name and address (Traveler)

4.2.13 ATT Attribute (Traveler Gender)

The ATT Attribute (Traveler Gender) segment is used to indicate the gender of the

passenger.

Example: ATT+2++F'

Pos Tag Name S R Form. Comments

010 9017 ATTRIBUTE FUNCTION CODE QUALIFIER

M 1 an..3 =2 (Person)

020 C955 ATTRIBUTE TYPE C 1 Not used

030 C956 ATTRIBUTE DETAIL M 1

9019 Attribute description code M 1 an..1 M=Male F=Female U=Unidentified

Table 14: ATT Attribute (Traveler Gender)

4.2.14 DTM Date/time/period (Traveler Date of Birth)

The DTM Date/time/period (Traveler Date of Birth) segment is used for the passenger’s date

of birth.

Example: DTM+329:830326'

Pos Tag Name S R Form. Comments

010 C507 DATE/TIME/PERIOD M 1

2005 Date or time or period function code qualifier

M 1 an..3 =329 (Birth date/time)

2380 Date or time or period text M 1 n6 YYMMDD

Passenger’s date of birth. If the date or month is unknown, enter 00 (e.g. 830000 if only the year of birth is known).

Table 15: DTM Date/time/period (Traveler Date of Birth)

4.2.15 LOC Place/location identification (Traveler itinerary)

The LOC Place/location identification (Traveler itinerary) segment is used to indicate the

passenger’s itinerary. The initial place of departure (port of embarkation) and the final

destination (port of disembarkation) must be specified.

Example: LOC+178+LED'

LOC+179+FRA'

Page 17: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 17/24

Pos Tag Name S R Form. Comments

010 3227 LOCATION FUNCTION CODE QUALIFIER

M 1 an..3 178 = Port of embarkation

179 = Port of disembarkation

020 C517 LOCATION IDENTIFICATION M 1

3225 Location name code M 1 an..3 [A-Z]{3}

IATA airport code

Table 16: LOC Place/location identification (Traveler itinerary)

4.2.16 NAT Nationality

The NAT Nationality segment is used for the passenger’s nationality. Up to eight nationalities

can be entered.

Example: NAT+2+CHE'

Pos Tag Name S R Form. Comments

010 3493 NATIONALITY CODE QUALIFIER M 1 an..3 =2 (Current nationality)

020 C042 NATIONALITY DETAILS M 1

3293 Nationality name code M 1 an..3 [A-Z]{1,3}

ISO 3166-1-alpha-3 country code with modifications as per [ICAO 9303]

Table 17: NAT Nationality

4.2.17 DOC Document/message details (Travel Document)

The DOC Document/message details (Travel Document) segment shows information on the

passenger’s travel document.

Example: DOC+P+XX123456789'

Pos Tag Name S R Form. Comments

010 C002 DOCUMENT/MESSAGE NAME M 1

1001 Document name code M 1 an..3 Document type as per 4.1.2 Travel document types

020 C503 DOCUMENT/MESSAGE DETAILS M 1

1004 Document identifier M 1 an..20 [0-9A-Z]{1,20}

Document ID (e.g. passport no.)

Table 18: DOC Document/message details (Travel Document)

4.2.18 DTM Date/time/period (Travel Document)

The DTM Date/time/period (Travel Document) segment is used for the date of expiry of the

travel document.

Example: DTM+36:150430'

Pos Tag Name S R Form. Comments

010 C507 DATE/TIME/PERIOD M 1

2005 Date or time or period function code qualifier

M 1 an..3 =36 (Expiry date)

Page 18: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 18/24

Pos Tag Name S R Form. Comments

2380 Date or time or period text M 1 n6 YYMMDD; Date of expiry of the travel document.

Table 19: DTM Date/time/period (Travel Document)

4.2.19 LOC Place/location identification (Travel Document)

The LOC Place/location identification (Travel Document) segment is used to indicate the

country of issue of the travel document.

Example: LOC+91+CHE'

Pos Tag Name S R Form. Comments

010 3227 LOCATION FUNCTION CODE QUALIFIER

M 1 an..3 =91 (Place of document issue)

020 C517 LOCATION IDENTIFICATION M 1

3225 Location name code M 1 an..3 [A-Z]{1,3}

ISO 3166-1-alpha-3 country code with modifications as per [ICAO 9303]

Table 20: LOC Place/location identification (Travel Document)

4.2.20 CNT Control total

The CNT Control total segment is used for the number of passengers on the flight.

Example: CNT+42:1'

Pos Tag Name S R Form. Comments

010 C270 CONTROL M 1

6069 Control total type code qualifier M 1 an..3 =42 (Total number of passengers)

6066 Control total quantity M 1 n..18 Number of passengers on the flight. If an API message consists of several parts (multi-part API message), the total must be given on all parts.

Table 21: Control total

4.2.21 UNT Message Trailer

Example: UNT+19+MRN123456789'

Pos Tag Name S R Form. Comments

010 0074 Number of segments in a Message M 1 n..10 Number of segments in the message body, including the UNH Header and UNT Trailer segments. The UNA, UNB, UNG, UNE and UNZ segments are not counted.

020 0062 Message reference number M 1 an..14 Originator’s unique reference no. for the message. Same value as in the UNH Message Header (Tag 0062)

Table 22: UNT Message trailer

4.2.22 UNZ Interchange Trailer

Example: UNZ+1+ICR123456789'

Page 19: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 19/24

Pos Tag Name S R Form. Comments

010 0036 Interchange Control Count M 1 n..6 =1

020 0020 Message reference number M 1 an..14 Originator’s unique reference no. for the API message. Same value as in the UNB Interchange Header (Tag 0020)

Table 23: UNZ Message trailer

4.3 CSV

The flight and passenger details are combined in a single CSV file. The data records are

arranged by row. The fields are separated by a column separator.

Row separator: <CR><LF>

Column separator: ; (semicolon)

The specified field sequence must be adhered to. The first row contains all information

pertaining to the flight, whilst the second and subsequent rows contain the passenger data.

The file may not contain any other rows (i.e. no other header data).

First row (flight data):

No. Field Format Opt. Example Note

1 Carrier [0-9A-Z]{2,3} N LH IATA code. If the carrier does not

have an IATA code, the ICAO code is

used.

2 Flight number [0-9A-Z]{2,3}

[0-9]{1,4}

N LH123 Flight number. If the carrier does not

have an IATA code, the ICAO code is

used.

3 Departure airport [A-Z]{3} N DME IATA airport code

4 Departure date YYMMDD N 101026 Scheduled Date of Departure (STD)

5 Departure time HHmm N 1018 Scheduled Time of Departure (STD)

6 Arrival airport [A-Z]{3} N ZRH IATA airport code

7 Arrival date YYMMDD N 101026 Scheduled Date of Arrival (STA)

8 Arrival time HHmm N 1220 Scheduled Time of Arrival (STA)

9 Number of

passengers

[0-9]{1,3} N 12 Number of passengers on board the

flight.

Table 24 CSV Frist row

Page 20: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 20/24

Second and subsequent rows (passenger data):

No. Field Format Opt. Example Note

1 Surname [A-Z\- ]{1,35} N MEIER If more than one surname,

separated by a space

2 Given name(s) [A-Z\- ]{1,35} N JAN ULF If more than one given name,

separated by a space

3 Gender M|F|U N M M=Male

F=Female

U=Unidentified

4 Date of birth YYMMDD N 830520 If the date or month is unknown,

enter 00 (e.g. 830000 if only the

year of birth is known).

5 Nationalities [A-Z]{3}

([A-

Z]{3}){0,7}

N CHE ISO 3166-1-alpha-3 country code

with modifications as per [ICAO

9303]. If more than one

nationality, separated by a space.

Maximum 8 nationalities.

6 Port of embarkation [A-Z]{3} Y LED IATA airport code

7 Port of

disembarkation

[A-Z]{3} N FRA IATA airport code

Travel document 1

8 Document type

Travel document 1

[A-Z]{1,2} N P Document type as per Travel

document types

9 Document ID

Travel document 1

[0-9A-

Z]{1,20}

N AB1234 Document ID (e.g. passport no.)

10 Country of issue

Travel document 1

[A-Z]{3} N CHE ISO 3166-1-alpha-3 country code

with modifications as per [ICAO

9303].

11 Expiry date

Travel document 1

YYMMDD Y 150720

Travel document 29

12 Document type

Travel document 2

[A-Z]{1,2} Y V Document type as per Travel

document types

13 Document ID

Travel document 2

[0-9A-

Z]{1,20}

Y AB321 Document ID (e.g. passport no.)

14 Country of issue

Travel document 2

[A-Z]{3} Y CHE ISO 3166-1-alpha-3 country code

with modifications as per [ICAO

9303].

15 Expiry date

Travel document 2

YYMMDD Y 150720

Table 25 CSV Second and subsequent rows (passenger data)

9 The columns for the second travel document are only used if the passenger has two travel

documents (e.g. passport and visa respective residence permit). In this case, the passport is the first

travel document and the visa respective the residence permit is the second.

Page 21: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 21/24

5 Annex

5.1 Example of a single-block UN/EDIFACT message

UNA:+.? '

UNB+UNOA:4+LUFTHANSA:ZZ+HDQCH2X:ZZ+110126:1409+123456789++APIS'

UNH+00102052460024+PAXLST:D:02B:UN:IATA'

BGM+745'

NAD+MS+++LUFTHANSA HELPDESK DME'

COM+044 222 222222:TE'

TDT+20+LH123+++LH'

LOC+125+DME'

DTM+189:1101261430:201'

LOC+87+ZRH'

DTM+232:1101261730:201'

NAD+FL+++MUELLER:MARIA URSULA'

ATT+2++F'

DTM+329:830326'

LOC+178+DME'

LOC+179+ZRH'

NAT+2+CHE'

DOC+P+XX123456789'

DTM+36:150430'

LOC+91+CHE'

NAD+FL+++MEIER:JAN'

ATT+2++M'

DTM+329:720521'

LOC+178+DME'

NAT+2+CHE'

DOC+P+AA445566'

DTM+36:130101'

LOC+91+CHE'

NAD+FL+++PORIZKOVA:SERGEI'

ATT+2++M'

DTM+329:720412'

LOC+178+LED'

LOC+179+FRA'

NAT+2+RUS'

DOC+P+789456'

DTM+36:120901'

LOC+91+RUS'

DOC+V+88994422'

DTM+36:110501'

LOC+91+CHE'

CNT+42:3'

UNT+40+00102052460024'

UNZ+1+123456789'

Page 22: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 22/24

5.2 Example of a multi-part UN/EDIFACT message

5.2.1 Part 1 of 3

UNA:+.? '

UNB+UNOA:4+LUFTHANSA:ZZ+HDQCH2X:ZZ+110126:1409+987654321++APIS'

UNH+00102052460024+PAXLST:D:02B:UN:IATA+123456789+01:C'

BGM+745'

NAD+MS+++LUFTHANSA HELPDESK DME'

COM+044 222 222222:TE'

TDT+20+LH123+++LH'

LOC+125+DME'

DTM+189:1101261430:201'

LOC+87+ZRH'

DTM+232:1101261730:201'

NAD+FL+++MUELLER:MARIA URSULA'

ATT+2++F'

DTM+329:830326'

LOC+178+DME'

LOC+179+ZRH'

NAT+2+D'

DOC+P+XX123456789'

DTM+36:150430'

LOC+91+D'

NAD+FL+++MEIER:JAN'

ATT+2++M'

DTM+329:720521'

LOC+178+DME'

LOC+179+ZRH'

NAT+2+CHE'

DOC+P+AA445566'

DTM+36:130101'

LOC+91+CHE'

CNT+42:5'

UNT+29+00102052460024'

UNZ+1+987654321'

5.2.2 Part 2 of 3

UNA:+.? '

UNB+UNOA:4+LUFTHANSA:ZZ+HDQCH2X:ZZ+110126:1409+987654321++APIS'

UNH+00102052460025+PAXLST:D:02B:UN:IATA+123456789+02'

BGM+745'

NAD+MS+++LUFTHANSA HELPDESK DME'

COM+044 222 222222:TE'

TDT+20+LH123+++LH'

LOC+125+DME'

DTM+189:1101261430:201'

LOC+87+ZRH'

DTM+232:1101261730:201'

NAD+FL+++MEIER:HANS MARTIN'

ATT+2++M'

DTM+329:720821'

LOC+178+DME'

Page 23: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 23/24

LOC+179+DME'

NAT+2+CHE'

DOC+P+BB334455'

DTM+36:151001'

LOC+91+CHE'

NAD+FL+++PORIZKOVA:IVANA

ATT+2++F'

DTM+329:700412'

LOC+178+LED'

LOC+179+FRA'

NAT+2+RUS'

DOC+P+78945678'

DTM+36:121001'

LOC+91+RUS'

DOC+V+88994420'

DTM+36:110501'

LOC+91+CHE'

CNT+42:5'

UNT+32+00102052460025'

UNZ+1+987654321'

5.2.3 Part 3 of 3

UNA:+.? '

UNB+UNOA:4+LUFTHANSA:ZZ+HDQCH2X:ZZ+110126:1409+987654321++APIS'

UNH+00102052460026+PAXLST:D:02B:UN:IATA+123456789+03:F'

BGM+745'

NAD+MS+++LUFTHANSA HELPDESK DME'

COM+044 222 222222:TE'

TDT+20+LH123+++LH'

LOC+125+DME'

DTM+189:1101261430:201'

LOC+87+ZRH'

DTM+232:1101261730:201'

NAD+FL+++PORIZKOVA:SERGEI'

ATT+2++M'

DTM+329:720412'

LOC+178+LED'

LOC+179+FRA'

NAT+2+RUS'

DOC+P+789456'

DTM+36:120901'

LOC+91+RUS'

DOC+V+88994422'

DTM+36:110501'

LOC+91+CHE'

CNT+42:5'

UNT+23+00102052460025'

UNZ+1+987654321'

5.3 Example of a CSV message

LH;LH123;DME;101026;1018;ZRH;101026;1220;3

MEIER;JAN ULF;M;720429;D;DME;ZRH;P;12345678;D;130101

Page 24: API Interface Specification - admin.ch · PDF file0.6 28.04.2011 Proof-reading of German to English ... Table 5: UNB Interchange ... API Interface Specification State Secretariat for

Advance Passenger Information, API Federal Department of Justice and Police FDJP

State Secretariat for Migration API Interface Specification

API Interface Specification V1.4 of 25.05.2016 24/24

MUELLER;ERIKA;F;730325;CHE;DME;ZRH;P;XX55432;CHE;120501

PORIZKOVA;SERGEI;M;720412;RUS;LED;FRA;P;789456;RUS;120901;V;88994422;CHE;110501