Tripletex integration

Modified on Thu, 5 Nov at 12:03 PM

How the integration works

The integration connects Project Flow to your Tripletex account through the Tripletex API. It works in both directions:

  • Project Flow → Tripletex: customers, projects, invoices and credit notes, and travel and expense claims are transferred to Tripletex.
  • Tripletex → Project Flow: project expenses and, with the separate Tripletex Payments integration, payments are transferred to Project Flow.

Project Flow is the master. Customers, projects and invoices are created in Project Flow and copied to Tripletex. Don't change their numbers in Tripletex afterwards:

  • The customer number in Project Flow becomes the customer number in Tripletex.
  • The project number in Project Flow becomes the project number in Tripletex.
  • The order number in Tripletex is built from the year and the Project Flow invoice number, for example 2026-1014.


When data moves:

  • Data from Project Flow is sent automatically when something changes in Project Flow (see the table below).
  • Data from Tripletex is fetched regularly, or right away if you use webhooks for expenses.



What is synchronized


From Project Flow to Tripletex

DataWhenHow it is matched in Tripletex
CustomersWhen a customer is created or changed in Project Flow, and when one of its invoices is transferredBy customer number. Project Flow updates the customer if it exists, otherwise creates it.
ProjectsWhen a project is created or changed in Project FlowBy project number
Invoices and credit notesWhen the invoice is finalized in Project FlowCreated as an order and an invoice with the same invoice number
Travel and expense claimsWhen the claim gets the status Paid outCreated as travel expenses in Tripletex, one per project on the claim


Customers

  • What is sent: name, customer number, email, phone, website, bank account, invoice email for reminders, and the postal, visiting and delivery addresses. The organization number is only sent for Norwegian customers.
  • Customer number: it must be numeric.
  • Not transferred: inactive customers, and contacts that aren't marked as customers.
  • Sending method: customers are created in Tripletex with email as invoice sending method.


Projects

  • What is sent: project number, name, customer, start and end date, project manager and department.
  • The customer must already exist in Tripletex.
  • Internal projects: projects are created as internal projects in Tripletex.
  • Not transferred: template projects.
  • Finished projects: when a project is finished in Project Flow, it is closed in Tripletex.
  • Project manager: Project Flow uses the first active project member marked as project manager, identified by their External employee number.
    • If that person has no External employee number, the Default project manager is used instead.
    • The same happens if Tripletex doesn't allow that person to be project manager.


Invoices

  • Only for accounting. The invoice is created in Tripletex for accounting and isn't sent to the customer by Tripletex. Send the invoice to the customer from Project Flow.
  • What is sent: invoice number, invoice date, due date, delivery date, customer, project, invoice text, KID, currency and department.
  • Products: each invoice line becomes an order line on a product called Project Flow-<account number>, for example Project Flow-3000. Project Flow creates the product the first time an account is used.
  • VAT comes from Tripletex. It is taken from the VAT code on the account in Tripletex with the same number as the line's account in Project Flow, not from the VAT percentage in Project Flow.
  • Lines with amount 0, including text lines, aren't transferred.
  • Attachments and the invoice PDF aren't transferred. If your accountant needs them, give them access to Project Flow.
  • Currency: invoices in another currency are sent in that currency, and Tripletex calculates the amount in NOK with its own exchange rate. The NOK amounts in Project Flow and Tripletex can therefore differ slightly.


Travel and expense claims

  • What is created: one travel expense in Tripletex for each project on the claim, with the employee, dates, travel details and one cost per entry.
  • Traceable to Project Flow: the title starts with the claim title and number from Project Flow.
  • The claim PDF is attached: it contains the amounts, accounts and all the receipts.


Not transferred: hours and timesheets.


From Tripletex to Project Flow

DataWhenRequirement
Project expensesRegularly, or right away with webhooksImport expenses must be turned on. The voucher must be posted in Tripletex with a project that exists in Project Flow.
PaymentsRegularlyRequires the separate Tripletex Payments integration. See the article Tripletex Payments.


What is imported for each expense

  • the amount of the posting line
  • the posting date
  • the voucher description as title
  • the posting description
  • the voucher number
  • the supplier
  • the voucher PDF as attachment


Not synchronized back:

  • Invoice status. An invoice is marked as paid in Project Flow only when a payment is registered in Project Flow, for example through Tripletex Payments.
  • Changes made in Tripletex. Project Flow doesn't update a customer, project or invoice in Project Flow when it changes in Tripletex.
  • Changes to imported expenses. An expense that has already been imported isn't updated or deleted if the voucher is changed in Tripletex afterwards.



Set up the integration

Step 1: Settings in Tripletex (one-time)

  • API 2.0 must be turned on in the company settings in Tripletex.
  • Under the invoice settings, "Send invoice to company via" must be Email. If it is set to EHF, Tripletex only accepts customers who can receive EHF, and customers from Project Flow fail with "Kunden kan ikke motta EHF-dokumenter".
  • Don't activate the "SMS notification for reminders" subscription. It stops customers from being transferred, and with them projects and invoices.
  • Rounding: if you use rounding on invoices, turn on rounding (øreavrunding) in Tripletex under the invoice settings, in the invoices/orders/offers section.
  • VAT: every account used on invoice lines in Project Flow must exist in Tripletex, be active, and have the correct VAT code. Otherwise invoices fail with "Ugyldig mva-kode".
    • To use VAT code 5, tick "Har avgiftsfri omsetning innenfor mva-loven (innland)" under Accounting → Settings → VAT settings.
  • Attachments on imported expenses: turn on "Elektroniske bilag" in Tripletex.
  • Package: transferring projects and importing expenses requires the Komplett package, which includes the project module. With the Smart package, turn off Export projects in Project Flow, or the integration will fail.

Step 2: Create a token in Tripletex

  1. Log in to Tripletex with the user that Project Flow should act as.
  2. Create an employee token (brukernøkkel) for the application Project Flow.
  3. Make sure that user has access to customers, projects, invoicing and accounting in Tripletex.
    • If the user has no access to invoices, invoices fail with "You do not have permission to access this feature."
    • If you transfer claims, the user also needs access to travel expenses.

The token must be created for the Project Flow application. A token created for another application is rejected by Tripletex. Contact Tripletex support if you have questions about creating the token.

Step 3: Configure the integration in Project Flow

Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner), choose Tripletex, and fill in the fields below.


Token

Field (EN / NB)Description
Employee token / BrukernøkkelThe token from step 2. Required.



Export to Tripletex

Field (EN / NB)Description
Export customers / Eksporter kunderTransfer customers.
Export projects / Eksporter prosjekterTransfer projects. Requires the project module in Tripletex. When this is on, you also fill in the next three fields.
Default project manager / Standard prosjektlederUsed when the project manager in Project Flow has no External employee number, or can't be project manager in Tripletex. The list only shows users who have an External employee number. Required.
Always use default project manager / Bruk alltid standard prosjektlederAlways send the default project manager, whoever is project manager in Project Flow.
Department (projects)Do not include department (default), Use department from project, or Use project tag group. If you choose a tag group, also choose which tag group contains the departments.
Export invoices / Eksporter fakturaerTransfer invoices and credit notes.
Department (invoices)Do not include department (default), Use accounting department, Use department from invoice, Use department from project, Use project tag group, or Use invoice tag group.
Export expenses / Eksport utleggTransfer paid-out claims as travel expenses. Requires the project module in Tripletex. When this is on, you also fill in the next three fields.
Default payment type / Standard betalingstypeThe payment type used for claims. The name must be exactly the same as a payment type in Tripletex (Travel and expenses settings → Payment types).
Cost category names using: / Kostnadskategorinavn benytter:Whether cost categories are sent with English or Norwegian names. The default is Norwegian. See Cost category names for the full list.
Default cost category / Standard kostnadskategoriUsed if the claim's cost category isn't found in Tripletex. The name must be exactly the same as in Tripletex (Travel and expenses settings → Cost categories).

Payment types on claims: company credit cards registered in Project Flow are sent as payment types. Their names must be exactly the same in Project Flow and Tripletex. Otherwise the default payment type is used.



Import from Tripletex

Field (EN / NB)Description
Import expenses / Importere utleggImport project expenses from Tripletex. Requires the project module in Tripletex. When this is on, you also fill in the fields below.
Lowest account number to import / Laveste kontonummer å importerePostings on this account number or higher are imported. The default is 4000.
Account codes / KontokoderA comma-separated list of accounts, for example 4300, 4301, 4309. If you fill this in, only these accounts are imported, and Lowest account number to import is no longer used.
Expense activity / UtleggsaktivitetThe activity that imported expenses are registered on. The default is Imported expenses. It is created on the project if it doesn't exist.
Make imported expenses billable / Importerte utlegg markeres som fakturerbareMarks imported expenses as billable. If the project's price model decides whether expenses are billable, the price model wins.
Import expenses with voucher date later than / Import utlegg som har faktura dato senere ennOnly vouchers dated after this date are imported. This is useful when you start the integration and have already entered recent expenses in Project Flow by hand.
Use webhooks to import expenses / Bruk webhooks til å importere utleggTripletex tells Project Flow right away when a voucher changes, and Project Flow imports it immediately.



Notifications

Field (EN / NB)Description
Coworkers to notify / Emails to notifyWho gets an e-mail if something goes wrong.


Click Save. Project Flow then connects to Tripletex to check the token.


Before you transfer anything

  • External employee number (Eksternt ansattnummer) must be filled in on the users in Project Flow, with the same employee number as in Tripletex. This is needed for project managers. If you transfer claims, it is also needed for whoever creates, approves and pays out the claim.
  • Projects need a start date while the Tripletex integration is active.
  • Claims need a departure place and a destination when Export expenses is turned on.



Verify the integration

  1. Customer: create or change a test customer in Project Flow, and check that it appears in Tripletex with the same customer number.
  2. Project: create a project on that customer, and check that it appears in Tripletex with the same project number.
  3. Invoice: finalize a test invoice in Project Flow, and check that it appears in Tripletex with the same invoice number.

If one of the steps fails, check the log (see below).




Check the log

Go to Company → Logs (Firma → Logger). You need administrator access. You can filter by:

  • From and To date
  • Importance
  • Category group integrations: Tripletex, or Category Tripletex
  • free text, for example a customer, project or invoice number

You can also download the log to Excel.

Messages you may see

MessageMeaning
"Exported customer N.", "Exported project N.", "Exported invoice N.", "Exported claim N."The data was transferred.
"Failed to export invoice N: …"The invoice wasn't transferred. The reason follows.
"Customer #N was not exported because it is inactive"The customer is inactive in Project Flow.
"Customer was not found in Tripletex by customer id: X"The project's customer hasn't been transferred. Transfer the customer first.
"Account was not found in Tripletex by financial account number: X"The account used in Project Flow doesn't exist in Tripletex. Create it in Tripletex with the correct VAT code.
"Ugyldig mva-kode"The account in Tripletex has a different or invalid VAT code. Check the account and the VAT settings in Tripletex.
"Kunden kan ikke motta EHF-dokumenter"Set "Send invoice to company via" to Email in Tripletex.
"Cannot find project manager with employee number X"The project manager's External employee number doesn't match an employee in Tripletex.
"Department with departmentNumber X not found."The department doesn't exist in Tripletex with that number.
"Cannot export claim #N because … does not have external user account number"The person who created, approved or paid out the claim has no External employee number.
"Cannot find payment type for …" / "Can not find cost category for …"The default payment type or cost category doesn't exist in Tripletex with exactly that name.
"Couldn't find project by project number …"An imported expense belongs to a project number that doesn't exist in Project Flow.
"Authentication error…"The token isn't valid. Create a new one in Tripletex.



Q&A

Q: An expense I posted in Tripletex is missing in Project Flow.

A: Check that:

  • The voucher is posted (bokført) in Tripletex and has a project on the posting line.
  • The project number exists in Project Flow.
  • The account is at or above Lowest account number to import. If you use Account codes, the account must be in that list.
  • The voucher date is after Import expenses with voucher date later than, if that field is set.
  • The voucher date was within the last 30 days when the import ran (see the next question).


Q: I am missing an expense in Project Flow that I added in Tripletex with a transaction date 100 days ago.

A: The regular import only fetches postings dated within the last 30 days. A voucher that is posted more than 30 days after its own date is never picked up automatically.

An administrator can fetch older expenses with a manual import:

  1. First, delete any expenses you entered by hand in Project Flow for the same vouchers. Otherwise they will be duplicated. Expenses already imported from Tripletex aren't duplicated.
  2. Go to Setup → Tools → Import → Import expenses. This requires the setting Show tools (Vis verktøy).
  3. Enter how many days back to fetch.


Q: My expenses are always older than 30 days. Is there another option?

A: Yes. Turn on Use webhooks to import expenses. Tripletex then notifies Project Flow every time a voucher is updated, and Project Flow imports it right away, whatever its date.

When webhooks are on, Project Flow relies on these notifications. If Tripletex doesn't send one, or it fails, the voucher isn't fetched later. Use the manual import if something is missing.


Q: Why does one voucher appear as several expenses in Project Flow?

A: Project Flow imports one expense per posting line, not per voucher. A voucher with three cost lines on the same project gives three expenses, with the same title and attachment but different amounts.


Q: A paid-out claim came back to Project Flow as an imported expense.

A: When a claim is transferred to Tripletex and posted there with a project, its postings can be imported again as project expenses if they are on an account that is imported. To avoid this, use Account codes to import only your purchase and subcontractor accounts, not the accounts used for travel and expenses (71xx).


Q: Retrying an invoice gives "order number already exists".

A: The first attempt left an order in Tripletex. Delete that order in Tripletex, then transfer the invoice again.


Q: Does Tripletex send the invoice to my customer?

A: No. Project Flow creates the invoice in Tripletex without sending it. Send the invoice to the customer from Project Flow, by email or e-invoice.


Q: The VAT on the invoice in Tripletex is different from Project Flow.

A: Tripletex uses the VAT code on its own account. Check that each account used on the invoice lines in Project Flow has the correct VAT code in Tripletex.


Q: The NOK amount of an invoice in another currency is different in Tripletex.

A: Project Flow sends the amount in the invoice currency, and Tripletex converts it to NOK with its own exchange rate. This is how Tripletex works, and Project Flow can't send the NOK amount.


Q: Can I get payments into Project Flow if I send invoices with AutoInvoice from Tripletex?

A: Yes. Turn on the separate Tripletex Payments integration (see the article Tripletex Payments). Project Flow then fetches the payments posted in Tripletex. You can also use the Nets OCR import (Automatic import of payments (OCR/Cremul)) if you use KID.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article