Navigation:  API > Operations > User data download >

Response

Previous pageReturn to chapter overviewNext page

Data format

Data encoding is Unicode
Fields are separated by TAB character (ASCII code 09).
Each line is terminated with CR + LF (ASCII codes decimal 13 and 10)

 

File structure

First line

The first line contains an status code, containing:
[status code] + TAB + [status message]

 

Second line

The second line of the file contains the field names as specified.

 

Subsequent lines

The subsequent lines contain the reservation data as specified.

 

 

Status codes

Status code

Means

100

Ok

200 or higher

Error

 

Field structure

 

Position

Field name

Data type

Manda
tory

Remark

1

Username

15AN

ü

The user name is the primary key and therefore has to be unique. If a user name cannot be found in Flightnet, it is assumed that it is a new user so the record is added.
A user name must not appear more than once in the file, otherwise the import will fail.

2

LastName

50AN

ü


3

FirstName

15AN

ü


4

Street

100AN

 


5

AdditionalField

50AN

 


6

ZipCode

12AN

 


7

City

20AN

 


8

Country

50AN

 


9

PhonePrivate

18AN

 


10

PhoneBusiness

18AN

 


11

PhoneMobile

18AN

 

Use the international format:

“+” + country code + regional code + number, e.g.
+41791234567
This is to needed to ensure proper SMS transmission

12

Birthdate

Date

 


13

CurrentEmailAddress

255AN

 

see email addresses

14

NewEmailAddress

255AN

 


15

NewPassword

15AN

(ü)

New users: if you do not specify a password, then a random password is generated.
Existing users: leave blank if you don’t want to change the password
After data import, you can send an email with the login data to the user by using the user administration

16

Usergroup

50AN

ü

One expression out of the user group keys defined in Flightnet

17

UserResourcegroup

50AN

 

One expression out of the user resourcegroup keys defined in Flightnet

18

UserCategory

50AN

 

One expression out of the user category keys defined in Flightnet

19

Language

de, fr, it, gb, us

ü

Language code (gb=English 24h, us=English AM/PM)

20

ReservationLimit

Integer

ü

-1 if the global reservation limit shall be applied
0 if there is no limit for this individual
>0any number > 0 indicates an individual reservation limit (hours)

Default: -1

21

ShowUserNotification

Bool

ü

 

22

HideName

Bool

ü

 

23

HideAddress

Bool

ü

 

24

WaiveReservationRequest

Bool

ü

 

25

LicenceNumber

50AN

 

 

26

MembershipExpirationDate

Date

 

 

27

LastAddressChange*

Date

 

READ ONLY Date of the last online change of address data

28

LastContactChange*

Date

 

READ ONLY Date of the last online change of contact data (phone, email etc.)

29

IsDeleted*

Bool

 

READ ONLY
This column allows to determine deleted users

 

Remarks

-Currently, you can only download user data with the API. However, the structure can be used for manual upload. Therefore, the specification also contains fields used for upload only.
-NewPassword: mandatory for new users.
-Fields marked with * are export fields only. The content will be disregarded in the import process.
-LastAdressChange and LastContactChange indicate the last change through the web interface. Upload of new user data through this interface will not change these dates.
-If the “Include deleted users” option for file export is enabled, the deleted users of the last 365 are included in the file
-The expression “[User _is_deleted!] is added to all deleted users to prevent reimport
-Mandatory fields must have a value.
-Non-mandatory fields can be blank. In such case, the previous value will be deleted in the database.

 

 

Please note that read only columns will always be the last columns. If any new read/write columns will be inserted in future versions, they will be located BEFORE existing read-only fields (because read-only columns are not required for upload).