Magidoc

FareProductUse
Object

A container for both a fare product (a ticket) and its relationship to the itinerary.

Fields

#

id

Non-null

Represents the use of a single instance of a fare product throughout the itinerary. It can be used to cross-reference and de-duplicate fare products that are applicable for more than one leg.

If you want to uniquely identify the fare product itself (not its use) use the product's id .

Example: Day pass

#

The day pass is valid for both legs in the itinerary. It is listed as the applicable product for each leg, and the same FareProductUse id is shown, indicating that only one pass was used/bought.

Illustration

    
  

It is the responsibility of the API consumers to display the day pass as a product for the entire itinerary rather than two day passes!

Example: Several single tickets

#

If you have two legs and need to buy two single tickets they will appear in each leg with the same FareProduct.id but different FareProductUse.id .

Illustration

    
  

product

The purchasable fare product

Usages

#

References

#

  • Field fareProducts from Leg