The Invoice model

An invoice represents the legal document issued by Perk (merchant of record) to the selected invoice profile, indicating the services, quantities, and prices for fees and services booked within the platform.

The invoice object

AttributeTypeDescription
serial_numberRequiredstringA globally unique identifier for this invoice.
profile_idOptionalstringThe globally unique identifier for the invoice profile.
profile_nameOptionalstringThe name of the invoice profile.
billing_informationRequiredobjectThe legal information of the customer which the invoice is issued to. See Billing Information
modeOptionalstringA description of the type of legal document that this object represents.
  • reseller
  • intermediary
  • gross
  • credit-reseller
  • credit-intermediary
  • credit-gross
  • passthrough
    See Billing mode for more information
statusRequiredstring

Indicates the current status of the invoice in its lifecycle.

-paid
-unpaid

Check table below for more information.

issuing_dateOptionalstringDate indicating when the invoice is closed.
ISO date format.
billing_periodOptionalstringIndicates the billing cycle configured.
  • instant
  • weekly
  • biweekly
  • monthly
from_dateOptionalstringThe first day of the billing period.
ISO date format.
Equal to issuing_date when the invoice is instant.
to_dateOptionalstringThe last day of the billing period.
ISO date format.
Equal to issuing_date when the invoice is instant.
due_dateOptionalstringThe date by which the invoice must be fully paid.
ISO date format.
currencyOptionalstringBilling currency used.
ISO 4217 code.
totalOptionalstringTotal amount due for this invoice, including tax. decimal
credit_used_for_customer_paymentOptionalstringThe total amount of TK credit used in this invoice.
TK credit refers to any way in which a customer can accumulate funds within Perk. The sole purpose of those funds is to use them later for booking trips through the TravelPerk platform.
decimal
linesOptionalobjectThe line items included in this invoice.
See Invoice line list for more information.
taxes_summaryOptionalarray[object]A list of items describing the total base and tax amounts for each tax regime. Check table below for more information.
referenceOptionalstringAdditional (text) reference about the invoice.
In case of instant invoices, it includes a reference to the invoiced trip (format example: Trip: #12345).
In case of periodic invoices, the field is empty.
travelperk_bank_accountOptionalobjectApplies only to invoices paid by wire transfer. This attribute contains details of the bank account of Perk.
Null, otherwise. Check table below for more information.
pdfOptionalstringAn URL to this invoice rendered as a .pdf file

Invoice line list

The invoice line list only appears when retrieving an individual invoice, not when listing all invoices.

AttributeTypeDescription
totalintThe total number of lines on this invoice.
dataarray[InvoiceLine](Up to) The first 10 lines on this invoice, ordered by most recent expense date.
nextstringThe relative path where you can retrieve the next page of lines for this invoice.

Billing information object

AttributeTypeDescription
legal_namestringThe name of the legal entity where the invoice is issued to.
vat_numberstringThe tax id or VAT number of the legal entity.
address_line_1stringThe first line of the address of the legal entity.
address_line_2stringThe second line of the address of the legal entity.
citystringThe city of the legal entity.
postal_codestringThe postal code of the legal entity.
country_namestringThe country name of the legal entity.

Billing statuses

StatusDescription
paidThe invoice is issued and fully paid.
unpaidThe invoice is issued but not yet fully paid.

Billing mode types

ModeDescription
resellerAn invoice issued by Perk for regular retail operations.
intermediaryAn invoice issued by Perk on behalf of the underlying service suppliers (ie airline).
gross
  • Not an invoice*. Represents a request for payment.
Applies to the cases in which Perk is only doing the prepayment of the service, but not the merchant of records. It applies mainly to some hotels per request of the customer, where the real invoice is collected on checkout.
credit-resellerA credit note applied to regular retail operations.
credit-intermediaryA credit note applied to an invoice under the intermediation model.
credit-intermediaryA credit note applied to a request for payment (gross) document.
MixedThe invoice has invoice lines that have different billing modes.
passthroughNot an invoice. A Transaction Summary document. Created when the customer directly pays the supplier of a service instead of Perk

Taxes summary array object

The tax summary provides a summary of the tax information for the invoice items. The tax summary groups invoice items by either tax regime or by tax percent. A single summary is provided for each group, and includes the total tax and base amounts for all items in that group

If Perk is acting as a reseller for all items in the invoice, then the invoice mode will be reseller and the tax summary will group by tax_regime. The tax_regime is a code that describes how VAT is applied to each invoice item

For all other invoice modes, the tax summary will instead be grouped by tax_percentage. The tax_regime will be null

AttributeTypeDescription
tax_regimestring or nullThe code representing the tax regime. The tax regime will only be provided if the invoice mode is reseller. Examples include:
  • STAR: Special Travel Agency Regime (TOMS)
  • G-VAT-R: General Regime
  • GROSS: All lines belonging to a gross mode document
subtotalstringThe total base amount (without taxes).
tax_percentagestringThe percentage of tax applied by the regime.
tax_amountstringThe tax amount.
totalstringThe total amount after taxes.

Perk bank account object

AttributeTypeDescription
bank_namestringThe name of the bank.
account_numberstringUnique identifier of the bank account.
bicstringBIC or SWIFT code of the bank.
referencestringThe reference code requested by Perk in the wire transfer.
{
   "serial_number": "INV-01-987654",
   "profile_id": "edb6322b-8e11-48e9-8d6f-6402e445e50d",
   "profile_name": "My Company Ltd",
   "billing_information": {
      "legal_name": "My Company Ltd",
      "vat_number": "GB123456789",
      "address_line_1": "199 Bishopsgate",
      "address_line_2": "Spitalfields",
      "city": "London",
      "postal_code": "EC2M 3TY",
      "country_name": "United Kingdom"
   },
   "mode": "reseller",
   "status": "paid",
   "issuing_date": "2020-03-31",
   "billing_period": "monthly",
   "from_date":  "2020-03-01",
   "to_date": "2020-03-31",
   "due_date": "2020-04-15",
   "currency": "EUR",
   "total": "13579.24",
   "taxes_summary": [
      {
         "tax_regime": "STAR",
         "subtotal": "6543.21",
         "tax_percentage": "0.00",
         "tax_amount": "0.00",
         "total": "6543.21",
      },
      {
         "tax_regime": "G-VAT-R",
         "subtotal": "5912.63",
         "tax_percentage": "19.00",
         "tax_amount": "1123.40",
         "total": "7036.03",
      }
   ],
   "reference": "",
   "travelperk_bank_account": {
      "bank_name": "La Caixa",
      "account_number": "ES01 2345 6789 1098 7654 3210",
      "bic": "CAIX ES BB XXX",
      "reference": "INV-01-987654"
   },
   "pdf": "https://api.travelperk.com/invoices/INV-01-987654/pdf"
}