The InvoiceLine model

Invoices contain invoice lines, which make reference to any service added to the invoice, together with any quantities, unit price and taxes that pertain to them.

The invoice line object

AttributeTypeExtra information
idRequiredstringUnique Identifier
expense_dateRequiredstringThe day when the sale/refund related to this line was incurred.
descriptionRequiredstringThe description of the sale item represented in this line.
quantityRequiredintegerHow many units were sold as per number of travellers.
unit_priceRequiredstringAmount due per unit sold, taxable. This can be helpful when there are multiple travellers on the service.
non_taxable_unit_priceRequiredstringAmount due per unit sold, non-taxable.
tax_percentageRequiredstringTax rate applicable to this item.
tax_amountRequiredstringAmount of taxes resulting of applying the tax_percentage to the total taxable base (quantity * unit_price).
tax_regimeRequiredstringThe code representing the tax regime. Such as but not limited to:
  • STAR: Special Travel Agency Regime (TOMS)
  • G-VAT-R: General Regime
  • GROSS: Belonging to a gross mode document
total_amountRequiredstringTotal amount of the line after taxes, as per
quantity (unit_price + non_taxable_unit_price) + tax_amount.
metadataRequiredobjectAn object with contextual metadata related to the user, trip, service and more.

The metadata object

AttributeTypeDescription
trip_id OptionalstringPerk unique ID for the trip.
trip_name OptionalstringName given to the trip.
service OptionalstringCode of the service booked in this item (flight, hotel, train, car, seat, meeting_roometc.). If you want the direct vertical for which this booked item is related use the related_vertical field.
related_vertical OptionalstringVertical of the service booked in this item (flight, hotel, train, car, insurance, other).
For example, an item with service: "extra" can have related_vertical: "flight", which allows for further grouping of invoice line items.
travelers Optionalarray[object]Traveler information associated to the expense. Can contain multiple travellers. Includes the following information:
  • name
  • email
  • external_id
start_date OptionalstringStart date for the trip.
end_date OptionalstringEnd date for the trip.
cost_center OptionalstringCost center the trip is mapped to.
credit_card_last_4_digits OptionalstringLast 4 digits of the credit card used for payment (if paid by credit card)
labels Optionalarray[string]List of all labels included in the trip.
custom_fields Optionalarray[object]List of all Custom Fields associated with the trip. Includes the following information:
  • nameThe name of the Custom Field
  • valuesArray of objects containing the selected values for the trip.
vendor OptionalobjectVendor object. Refers to the end supplier of the service (ie marketing airline if flight, hotel details if hotel, etc.):
  • code: code of vendor
  • name: name of vendor
out_of_policy OptionalbooleanRefers to whether the trip (not the expense) was initially booked out of policy (true) or within policy (false).
approvers Optionalarray[object]List of users who approved the trip. Includes the following information:
  • name
  • email
  • external_id
booker OptionalobjectUser who booked the trip. Includes the following information:
  • name
  • email
  • external_id
    Empty if expense was booked manually by a customer care agent.
service_location OptionalobjectAn object describing the location of the service. Included only for invoice lines of related_vertical type flight, hotel, train, car. Null otherwise. Check below for the object description.
include_breakfast OptionalbooleanIndicates whether breakfast is included in the booking for the service (flight,hotel,train, car). If applicable, this will be set to true, otherwise false or null if it doesn't apply. This attribute is optional.

Extended InvoiceLine Details:

These details of the InvoiceLines parent Invoice are provided in the list InvoiceLines response for connivance.

AttributeTypeDescription
invoice_serial_numberstringThe unique identifier for the invoice where this line is related.
profile_idstringThe globally unique identifier for the payment/invoice profile.
profile_namestringThe name of the payment/invoice profile.
invoice_modestringA description of the type of legal document that this object represents. See the mode attribute in the Invoice model for more details.
invoice_statusstringThe current status of the invoice. See the status attribute in the Invoice model for more details.
issuing_datestringThe day the invoice was issued.
due_datestringThe day by which the invoice must be fully paid.
currencystringThe 3-characters ISO 4217 code of the currency used in the invoice.

Example Response

{
  "id": "6dc6d45e-55f5-48cc-9e23-cad798b364ef",
  "expense_date": "2020-03-14",
  "description": "FLIGHT for Trip 9876543",
  "quantity": 2,
  "unit_price": "399.00",
  "non_taxable_unit_price": "25.75",
  "tax_percentage": "19.00",
  "tax_amount": "151.62",
  "tax_regime": "G-VAT-R",
  "total_amount": "1001.12",
  "metadata": {
    "trip_id": 9876543,
    "trip_name": "Meeting with German company GmbH",
    "service": "flight",
    "related_vertical": "flight",
    "travelers": [
      {
        "name": "John Doe",
        "email": "[email protected]",
        "external_id": "ASD123"
      }
    ],
    "start_date": "2020-03-27",
    "end_date": "2020-04-05",
    "cost_center": "DACH Accounts",
    "credit_card_last_4_digits": "1223",
    "include_breakfast": false,
    "labels": [
      "Sales trips",
      "Special"
    ],
    "vendor": {
      "code": "LH",
      "name": "Lufthansa"
    },
    "out_of_policy": false,
    "approvers": [
      {
        "name": "Jake Bolt",
        "email": "[email protected]",
        "external_id": "ASD124"
      }
    ],
    "service_location": {
      "origin": {
        "name": "Berlin Metropolitan Area",
        "code": "BER",
        "city": "Berlin",
        "country": "Germany",
        "country_code": "DE",
        "latitude": "52.52",
        "longitude": "13.405"
      },
      "destination": {
        "name": "Franz Josef Strauss",
        "code": "MUC",
        "city": "Munich",
        "country": "Germany",
        "country_code": "DE",
        "latitude": "48.3538",
        "longitude": "11.7861"
      }
    },
    "booker": {
      "name": "Marien Lint",
      "email": "[email protected]",
      "external_id": "ASD124"
    }
  },
  "profile_id": "edb6322b-8e11-48e9-8d6f-6402e445e50d",
  "profile_name": "My German Company GmbH",
  "invoice_serial_number": "INV-01-987654",
  "invoice_mode": "reseller",
  "invoice_status": "paid",
  "issuing_date": "2020-04-15",
  "due_date": "2020-04-30",
  "currency": "GBP"
}

The service_location object

Service (invoice_line.metadata.related_vertical)Description
flightIncludes origin and destination objects with the following information:
-name, airport name
-code, airport IATA code
-city, city name
-country, country name
-country_code, country ISO code
-latitude, latitude for airport location
-longitude, longitude for airport location
hotelIncludes hotel_location object with the following information:
-city, city name
-country, country name
-country_code, country ISO code
-latitude, latitude for hotel location
-longitude, longitude for hotel location
trainIncludes origin and destination objects with the following information:
-name, train station name
-city, city name
-country, country name
-country_code, country ISO code
-latitude, latitude for train station location
-longitude, longitude for train station location
carIncludes pick_up_location object with the following information:
-city, city name for pick up
-country, country name for pick up
-country_code, country ISO code for pick up
-latitude, latitude for car pick up location
-longitude, longitude for car pick up location
"origin": {
  "name": "Berlin Metropolitan Area",
  "code": "BER",
  "city": "Berlin",
  "country": "Germany",
  "country_code": "DE",
  "latitude": "52.52",
  "longitude": "13.405"
},
"destination": {
  "name": "San Francisco Intl",
  "code": "SFO",
  "city": "San Francisco",
  "country": "United States",
  "country_code": "US",
  "latitude": "-122.4192",
  "longitude": "37.7793"
}
"hotel_location": {
  "name": "Hampton by Hilton Berlin City East Side Gallery",
  "city": "Berlin",
  "country": "Germany",
  "country_code": "DE",
  "latitude": "13.2956",
  "longitude": "52.5606"
}
"origin": {
  "name": "Berlin Hbf (s-Bahn)",
  "city": "Berlin",
  "country": "Germany",
  "country_code": "DE",
  "latitude": "13.2956",
  "longitude": "52.5606"
},
"destination": {
  "name": "München Hbf",
  "city": "Munich",
  "country": "Germany",
  "country_code": "DE",
  "latitude": "48.1405",
  "longitude": "11.5578"
}
"pick_up_location": {
  "city": "Berlin",
  "country": "Germany",
  "country_code": "DE",
  "latitude": "13.2956",
  "longitude": "52.5606"
}