Build: 3.0.2

Status tiers

A list of abstract status tiers used in the API across all frequent flyer programs. The actual names of status tiers tend to be branded and vary between programs.

Tier code Name for internal usage
0 Unknown
1 Basic
8 Tier1 Silver
16 Tier2 Gold
24 Tier3 Platinum
32 Tier4 Diamond
33 Tier5
34 Tier6
35 Tier7
×

Types of miles

Types of miles collected in frequent flyer programs. You can retrieve program-specific list with branded names using Get program method.

Type code General name
1 Award miles also known as RDM, are the most common ones. The only ones used to redeem for free flights, cabin upgrades or other passenger benefits.
2 Status miles also known as EQM, are collected to reach certain threshold needed for particular status tier in a program e.g. after collecting 50,000 status miles you become Silver member (you reached Silver status tier).
3 Status segments also known as EQS, have the same purpose as status miles, but are collected based on flown flight segments instead of distance.
4 Status points also know nas EQP, have the same purpose as status miles, but have earning different rules.
5 Status dollars also know as EQD have the same purpose as status miles, but they are related to purchased fare price, not neccessarily the flown distance.
×

Airline alliances

A list of airline alliances with their respective codes.

Alliance code Name
0 Unknown
1 Independent (does not belong to any alliance)
2 OneWorld
3 SkyTeam
4 StarAlliance
×

Cabin classes

A list of cabin classes used to describe cabin upgrades in Calculate attributes & benefits method.

Cabin class code Name
0 Unknown
8 Discount Economy
16 Economy
24 Full Economy
32 Premium Economy
40 Discount Business
48 Business
52 Premium Business
56 First
64 Premium First
×

Status benefit types

The list of all supported status benefit types:

Code Name
CMPCHG Complimentary flight change
LNGACS Lounge access
PFDSTG Preferred seating
PRMBRG Premium beverage
PTYBDG Priority boarding
PTYBDO Priority baggage handling
PTYCHK Priority check-in
PTYDSK Priority at transfer desks
PTYIMM Fast track immigration
PTYSTY Fast track security
SPCBGG Special baggage allowance
WVDBGF Waived baggage fees
XTRBGG Checked baggage allowance
XTRCBN Cabin baggage allowance
XTRLRM Extra legroom
×

Fare attribute types

The list of all supported fare attribute types:

Code Name
APTSBY Airport standby
ARRLNG Arrival lounge access
CBNBGG Cabin baggage
CHNGBL Changeability
CHKBGG Checked baggage
CMPDML Complimentary drinks and meal
FSTIMM Fast track immigration
LNGACC Lounge access
PFDSTG Preferred seating
PTYTRS Priority at transfer desks
PTYBGG Priority baggage
PTYBDG Priority boarding
PTYCHK Priority check-in
PTYSTY Priority security
REFUND Refundability
SMEFLT Same day flight change
SMESBY Same day standby
SEATSL Seat selection
SPCBGG Special baggage
×

Fields parameter

The fields parameter is used to optimize time of response processing and limit its size by filtering out properties, that aren't used by client.

Full response:
{
  "name": "List of items",
  "items": [{
    "name": "First item name",
    "desc": "First item description.",
    "active": true,
    "engine": {
      "capacity": 200,
      "fuel": "diesel",
      "authors": ["John", "Bob"],
    },
    ...
  },{
    "name": "Second item name",
    "desc": "Second imte description.",
    "active": false,
    "engine": {
      "capacity": 1500,
      "fuel": "uranium",
      "authors": ["Jenny"],
    },
    ...
  },
  ...
  ]
}
Partial response

Fields parameter set to: fields=name,items(name,engine/fuel) produces response:

{
  "name": "List of items",
  "items": [{
    "name": "First item name",
    "engine": {
      "fuel": "diesel"
    },
    ...
  },{
    "name": "Second item name",
    "engine": {
      "fuel": "uranium"
    },
    ...
  },
  ...
  ]
}
Fields parameter syntax
  • Select multiple fields separating their names with comma e.g. name,desc.
  • Use slash to select single nested property e.g. electronics/computers/laptop selects only laptop field nested within computers object, that is nested inside electronics object.
  • Use brackets to select more than one property from object or array of objects e.g. items(name,desc) returns all items with just two properties: name and desc.
  • Use wildcard to select all properties items/engine/*.

Brackets can be nested, so syntax like this is valid: items(name,engine(fuel,authors)). Remember to encode the value when passed as HTTP query parameter e.g. items(name%2Cengine(fuel%2Cauthors)).

×

Error codes

All possible error codes used in Milefy API responses

Code Description
BKGAE List of bookings is empty
BKGIN Booking reference is invalid or not specified
CCINV Invalid IATA country code
CLRSP Calculate response ID is invalid or not specified
FLDIV Invalid format of fields parameter
FLIDE Missing or invalid flight ID
FLINV Invalid flight information
FLSGMKE Marketing airline code is not specified or invalid
MBIMT Type of mile used is not specified or invalid
MBINV Invalid membership authentication credentials
MBINVKY Encryption key used for membership credentials is either invalid or encryption hasn't been performed correctly
MBIST Invalid status tier code
MBLKD Membership account has been locked and can't be accessed without traveler's intervention
MBNATH Membership is authenticated and cannot be edited manually
MBNSP Frequent flyer program used is not supported
MBPNF Traveler's membership not found
MBPRG Frequent flyer program code is not specified or invalid
MBRIN Invalid membership frequent flyer code or specified membership does not exist in traveler's profile
TRVLR Specified traveler doesn't exist or his ID is not specified
TRVNF Traveler not found
×