Fiken integration

Modified on Thu, 5 Nov at 12:03 PM

How the integration works

The integration connects Project Flow to your company in Fiken through Fiken's API (version 2). You connect it by logging in to Fiken from Project Flow and approving access (OAuth2). You don't need to create or copy any token.

One direction only. Data goes from Project Flow to Fiken: customers, projects, and invoices and credit notes.


Nothing comes back from Fiken. Project Flow doesn't get payments, invoice status or expenses from Fiken. An invoice is marked as paid in Project Flow only when a payment is registered in Project Flow, for example:

  • by hand, in the invoice's Payments and write off tab, or
  • through the Nets OCR import (Automatic import of payments (OCR/Cremul)), if you use KID.


If you only follow up payments in Fiken, you can turn off Register invoice payments in Project Flow in the invoicing settings. This hides the payment reminders page in Project Flow.


Project Flow is the master. Customer numbers, project numbers and invoice numbers come from Project Flow. Don't change them in Fiken.




What is synchronized

From Project Flow to Fiken

DataWhenHow it is matched in Fiken
CustomersWhen a customer is created or changed, and every time one of its projects or invoices is transferredCreated as a contact. Matched on the contact's member number (medlemsnummer), which holds the Project Flow customer number.
ProjectsWhen a project is created or changed, and every time one of its invoices is transferredBy project number
Invoices and credit notesWhen the invoice is finalized in Project FlowRegistered as a sale with the Project Flow invoice number


Customers

  • What is sent: name, customer number (as member number), organization number, email, phone, bank account, currency and address (street, postal code, country).
  • Not transferred: inactive customers, and contacts that aren't marked as customers.


Projects

  • What is sent: project number, name, customer, start date, end date, description, and whether the project is finished.
  • Rules while the Fiken integration is active:
    • Projects need a start date when Export projects is on. Otherwise Project Flow shows "Startup date is required because … integration is enabled."
    • Project names must be unique. Otherwise Project Flow shows "Project name must be unique when the Fiken integration is enabled. Please change the name of the project before saving."
  • Template projects aren't transferred.


Invoices and credit notes

  • Fiken doesn't send the invoice. The invoice is registered in Fiken as a sale invoiced outside Fiken: Fiken records it in the accounts but doesn't send it to the customer. Send the invoice from Project Flow.
  • The invoice number comes from Project Flow. It is stored as the sale number in Fiken. Fiken doesn't give the invoice a number of its own.
  • What is sent: invoice number, invoice date, due date, KID, currency, customer, project and the total amount.
  • What each line contains: description, account, net amount and VAT.
  • Lines with amount 0, including text lines, aren't transferred.
  • The invoice PDF is always attached to the sale in Fiken. Tick Include PDF attachments in invoice PDF export to also include the invoice's attachments in the PDF.
  • No double transfer. An invoice that already exists in Fiken isn't transferred again. The log shows "Invoice have already been exported."

Important: every invoice is transferred together with its customer and project. If Export customers or Export projects is turned off, or the customer is inactive, the invoice transfer fails with "Cannot find customer #…" or "Cannot find project #…". Keep all three export options on.

From Fiken to Project Flow

Nothing is transferred from Fiken to Project Flow.



Set up the integration

Step 1: In Fiken (one-time)

  • API module. Order the integration (API) module in Fiken. Without it, Project Flow can't connect.
  • Project module. Order the project module in Fiken. Invoices are always transferred with their project, so this module is needed.
  • Company code. Find your company code: it is the part of the Fiken URL after /foretak/ when you are logged in.
  • Chart of accounts. The account numbers used on invoice lines in Project Flow must exist in Fiken's chart of accounts.


Step 2: VAT codes on accounts in Project Flow

Fiken needs to know the VAT type of every invoice line. For each account in Project Flow that is used on invoice lines, fill in Accounting VAT code (Regnskap MVA kode) with the Norwegian VAT code. Project Flow translates it to Fiken's VAT type:

VAT codeFiken VAT typeVAT codeFiken VAT type
0, 7No VAT (NONE)5Exempt (EXEMPT)
1, 3High rate (HIGH)6Outside the VAT Act (OUTSIDE)
11, 31Medium rate (MEDIUM)51Exempt, reverse charge (EXEMPT_REVERSE)
12, 32Raw fish (RAW_FISH)52Exempt, import/export (EXEMPT_IMPORT_EXPORT)
13, 33Low rate (LOW)14, 15, 21, 22, 23, 86–89, 91, 92Special codes for direct postings, basis, import, foreign services and emission trading/gold

If the field is empty, or contains a code that isn't in this list, the invoice isn't transferred. The log shows "Invalid VAT Code …".


Step 3: Connect Project Flow to Fiken

  1. Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner).
  2. Add a new integration and choose Fiken accounting (NO) (Fiken).
  3. Fill in Company code (Selskapskode) with your company code from step 1.
  4. Click Save. Project Flow sends you to Fiken.
  5. Log in to Fiken, with two-factor authentication if you use it, and approve that Project Flow gets access to your Fiken account.
  6. You come back to Project Flow and see "Authorization is completed successfully."

Authorizing doesn't turn the integration on. Continue with step 4.

You can't tick Enabled before the integration is authorized: "The integration must be authorized before it can be enabled".
You must come back to Project Flow as the same user who started the authorization.


Step 4: Choose what to transfer and turn it on

Field (EN / NB)Description
Enabled / AktivertTurns the integration on. Only possible after authorization.
Company code / SelskapskodeYour company code in Fiken. Required.
Export customers / Eksporter kunderTransfer customers.
Export projects / Eksporter prosjekterTransfer projects.
Export invoices / Eksporter fakturaerTransfer invoices and credit notes.
Include PDF attachments in invoice PDF export / Inkluder PDF vedlegg i faktura PDF eksportInclude the invoice's attachments in the PDF that is attached in Fiken. Only shown when Export invoices is on.
Coworkers to notify / Emails to notifyWho gets an e-mail if the connection to Fiken stops working.


Tick Enabled and the three export options, then click Save.


On the integration page:

  • Authorized (Autorisert) means the connection to Fiken is OK.
  • Reauthorize (Autoriser på nytt) connects it again, for example to another Fiken user.

Project Flow plan: the Fiken integration isn't available on the Start plan.

The old Fiken integration (Fiken.no Accounting (deprecated)), which used a username and password, can no longer be chosen. Use Fiken accounting (NO).



Transfer existing data

Customers, projects and invoices that existed before you turned on the integration aren't transferred automatically. An administrator can transfer them under Setup → Tools → Export. This requires the setting Show tools.

ToolWhat it does
Export customersTransfer specific customers, by number, or all customers.
Export projectsTransfer specific projects, by number, or all projects.
Export invoicesTransfer invoices from one invoice number to another, up to 300 at a time.



Verify the integration

  1. Customer: create or change a test customer in Project Flow. Check that it appears as a contact in Fiken, with the Project Flow customer number as member number.
  2. Project: create a project on that customer, with a start date and a unique name. Check that it appears in Fiken.
  3. Invoice: finalize a test invoice in Project Flow. Check that it is registered as a sale in Fiken, with the invoice PDF attached.

If one of the steps fails, check the log.



Check the log

Go to Company → Logs. Choose the category Fiken, or search by customer, project or invoice number.

MessageMeaning
"Exported customer #N" / "Exported project #N" / "Exported invoice #N"The data was transferred.
"Failed to export invoice #N. …"The invoice wasn't transferred. The reason follows.
"Invalid VAT Code …"The account has no Accounting VAT code, or the code isn't supported. See step 2.
"Cannot find customer #N" / "Cannot find project #N"The customer or project wasn't transferred with the invoice. Check that Export customers and Export projects are on, and that the customer is active.
"Invoice have already been exported."The invoice already exists in Fiken.
"Customer #N was not exported because it is inactive"The customer is inactive in Project Flow.


Where to look:

  • Messages about authorization and inactive customers are only found when you search across all categories.
  • Failed transfers don't send e-mail. Check the log regularly.

When the connection to Fiken stops working, for example if the access has expired or been withdrawn in Fiken:

  • Project Flow turns the integration off automatically.
  • Project Flow sends an e-mail titled "Integration to … requires reauthorization" to Coworkers to notify and Emails to notify.
  • To fix it, open the integration, click Authorize, log in to Fiken again, then tick Enabled and save.



Q&A

Q: Can Project Flow get payments from Fiken?

A: No. The integration only sends data to Fiken. Register payments in Project Flow, by hand or with the Nets OCR import if you use KID. Or turn off Register invoice payments in Project Flow if you only follow up payments in Fiken.


Q: Every invoice fails with "Cannot find customer" or "Cannot find project".

A: Turn on both Export customers and Export projects. Invoices are always transferred together with their customer and project. Also check that the customer is active.


Q: The invoice fails with "Invalid VAT Code null".

A: The account on one of the invoice lines has no Accounting VAT code. Fill it in on the account in Project Flow, then transfer the invoice again under Setup → Tools → Export → Export invoices.


Q: Does Fiken send the invoice to my customer?

A: No. The invoice is registered in Fiken as invoiced outside Fiken. Send it to the customer from Project Flow.


Q: I get "Project name must be unique when the Fiken integration is enabled".

A: Fiken doesn't allow two projects with the same name. Give the project a different name in Project Flow.

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