Tripletex API: what you can automate, and what you can't

Najważniejsze wnioski:

  1. The Tripletex API (REST, https://tripletex.no/v2) covers customers, products, orders, invoices, projects, hours, vouchers and more.

  2. Your own company uses an internal integration with a refresh token and no approval. A product for many Tripletex customers needs a consumer token, and Tripletex says to expect a reply in 2–3 weeks.

  3. Plan for 100 requests per 10 seconds, at most 10,000 results per call, changedSince on only a few endpoints, and webhooks that are still in beta.

  4. Tripletex has a free MCP server in beta that lets Claude, ChatGPT and other AI clients work in Tripletex with the user's own permissions.

The Tripletex API is a REST API at https://tripletex.no/v2 that lets you read and write most of what you see in Tripletex: customers, contacts, suppliers, products, orders, invoices, projects, hours and vouchers. You can automate invoicing, customer and product sync, time registration and reporting, as long as you design for its limits: 100 requests per 10 seconds, at most 10,000 results per call, change filters on only a few endpoints, and webhooks that are still in beta. This guide is for business owners, CFOs and developers who want to know what is realistic before they start building.

Before we start: three questions

  1. Which system should talk to Tripletex? A CRM, a webshop, a project tool, or an app you built yourself.
  2. Which direction does the data go? Into Tripletex, out of Tripletex, or both ways.
  3. Is it for your own company, or a product for many Tripletex customers? This decides which kind of API access you need, and how long it takes to get it.

What can you automate with the Tripletex API?

The official OpenAPI specification (version 2.75.23, 564 paths) is the source of truth. These are the objects most integrations use, all relative to /v2:

  • Customers and contacts: /customer, /contact. Create, read, update, and bulk endpoints such as /customer/list.
  • Suppliers: /supplier.
  • Products: /product, plus product groups, units and inventory locations.
  • Orders and order lines: /order, /order/orderline, and PUT /order/{id}/:invoice to turn an order into an invoice.
  • Outgoing invoices: /invoice, with actions to send, register payment, create a credit note or a reminder, and download the PDF.
  • Projects: /project, with order lines, participants and hourly rates.
  • Hours: /timesheet/entry.
  • Vouchers and ledger: /ledger/voucher, attachments, document import, and /ledger/posting.
  • Incoming supplier invoices: /supplierInvoice, to read, approve, reject and add payments.

In practice that covers the automations companies ask for most:

  • Create orders and invoices from a webshop, CRM or booking system.
  • Keep customers and products in sync between Tripletex and other systems.
  • Send hours from a project tool into Tripletex.
  • Read invoices and payment status for reporting, dashboards or dunning.
  • Register payments on invoices.
  • Attach documents to vouchers.

One design detail matters early: in request bodies, related objects are referenced by Tripletex's internal id, for example "customer": {"id": 123}. Anything else gives "Object not found". So every integration needs a mapping between your own ids and Tripletex ids.

How do you get access: internal or commercial integration?

Tripletex has two paths, described in the authentication docs.

Internal integration (your own company)

For one company or a company group. A user admin generates a refresh token under Company > API Tokens. The account needs the Integrations module. There is no application and no approval, and the secret is shown only once. You exchange the refresh token for a session token that lives between 5 minutes and 8 hours:

curl -s -X POST "https://tripletex.no/v2/token/session/:createFromRefreshToken" \
  -H "Content-Type: application/json" \
  -d '{"refreshToken":"tlxr_YOUR_REFRESH_TOKEN","ttlSeconds":3600}'

Commercial integration (a product for many Tripletex customers)

For software sold to several Tripletex customers, or for accounting offices. You apply for a consumer token through Tripletex's form, and Tripletex says to expect a reply within 2–3 weeks (getting started). Each customer then creates an employee token for your integration under the "API access" tab. Consumer token plus employee token gives a session token:

curl -s -X POST "https://tripletex.no/v2/token/session/:create" \
  -H "Content-Type: application/json" \
  -d '{"consumerToken":"YOUR_CONSUMER_TOKEN","employeeToken":"YOUR_EMPLOYEE_TOKEN","expirationDate":"2026-12-01"}'

Calling the API

Authentication is HTTP Basic. The username selects the company (0 means the token owner's own company) and the password is the session token. Reuse one session token until it expires or you get a 401.

curl -s -u "0:YOUR_SESSION_TOKEN" \
  "https://tripletex.no/v2/customer?from=0&count=100&fields=id,name,organizationNumber,email"

Build and test against the free test environment first. You sign up at api-test.tripletex.tech. Test accounts expire after 6 months (they can be extended), contain no production data, do not send emails, and test credentials do not work in production.

What limits do you need to design for?

From Tripletex's rate limiting page and the general FAQ:

  • 100 requests per 10 seconds, per employee and integration. Several API keys for the same employee and integration share one count. Read the X-Rate-Limit-Remaining, X-Rate-Limit-Reset and Retry-After headers instead of hard-coding the numbers.
  • 30 failed requests in a row (status 400 or above, except 429) to the same endpoint block it with 429 for 15 seconds, rising to at most 120 seconds. A buggy loop can lock itself out.
  • Session token creation is limited to 180 per minute, and Tripletex plans to lower it toward about 10 per minute. Create a token once and reuse it.
  • At most 10,000 results per call. Paging with from and count does not get around it, so narrow with date or account filters.
  • Required date ranges. Listing orders, invoices, vouchers, supplier invoices and hours requires a from/to date.
  • changedSince exists on only a few endpoints: customers, products, suppliers, and non-posted vouchers. It may include changes from up to 10 minutes before your timestamp.

Can Tripletex tell you when something changes? (webhooks)

Yes, through event subscriptions, which are tagged [BETA] in the spec (webhook docs). You subscribe with POST /event/subscription, giving an event and a target URL. Events include invoice.charged and create, update and delete events for customers, contacts, suppliers, products, orders, projects, employees, accounts and vouchers. Each event type needs its own subscription.

Tripletex retries failed deliveries over 30 hours. After a week of constant failure the subscription is disabled (DISABLED_TOO_MANY_ERRORS) until you re-enable it. Tripletex itself recommends a full sync after you subscribe, comparing version numbers, and a nightly sync as a safety net. Treat webhooks as a fast signal, not as your only source of truth.

What is hard, or not possible, with the Tripletex API?

  • No simple change feed for orders, invoices or hours. They have no changedSince. You either poll by date range or subscribe to webhooks, and still run a periodic full check.
  • Deleted products do not show up in changedSince. Use the delete webhook events, or compare full lists.
  • No PATCH. Partial updates use PUT with optional fields. Send the version you read, or you may overwrite someone else's change.
  • No endpoint to create an incoming supplier invoice directly. The spec has no POST /supplierInvoice. You can read, approve, reject and pay existing ones, and import documents with /ledger/voucher/importDocument.
  • Package-dependent endpoints. Some endpoints are only available in certain Tripletex packages. Check what your customer has before you promise a feature.
  • Invoices are sent by default. sendToCustomer is true unless you set it to false. The test environment sends no emails, production does.
  • A moving target. New versions ship several times a month (changelog), beta endpoints can change, and no formal deprecation notice period is published. Someone has to watch the changelog.

What is the Tripletex MCP server?

Tripletex has an MCP server in beta. It lets Claude, ChatGPT, VS Code and other MCP clients work in Tripletex with the user's own permissions. It is free during the beta in all packages, and sending invoices or posting vouchers requires the user's approval. It is a good fit for asking questions and doing one-off tasks by hand with an AI assistant. It does not replace an integration that has to run on its own, every day, with error handling.

When to bring in a developer

You can often do a one-way sync of a few objects yourself, for example customers from Tripletex into a project tool with Make. Bring in a developer when:

  • data must go both ways and you need rules for which system wins a conflict,
  • you are building a product for many Tripletex customers (consumer token, employee tokens per customer, multi-tenant setup),
  • money moves: invoices are sent, payments registered or vouchers posted automatically,
  • you built the app with Lovable, Claude Code or Cursor and now need it to talk to Tripletex safely, with tokens kept server-side and errors handled,
  • you need monitoring so someone notices when a sync stops.

We build and maintain Tripletex integrations: see Tripletex integration. If you built your app with AI and need it connected to real systems, start at integrations for AI-built apps. If you want a second pair of eyes on existing code first, see our code audit. Rocksoft is a software company with teams in Poland and Norwegian-speaking staff, building integrations and custom software for companies in Norway and across Europe.

Related guides:

FAQ

Does Tripletex have an open API?

Yes. The Tripletex API is a documented REST API with a public OpenAPI specification at tripletex.no/v2-docs and developer docs at developer.tripletex.no. You need a token to call it: a refresh token for your own company, or a consumer token plus employee tokens for a commercial integration.

How long does it take to get API access to Tripletex?

For an internal integration in your own company, a user admin can create a refresh token right away, as long as the account has the Integrations module. For a commercial integration, Tripletex says to expect a reply to a consumer token application within 2–3 weeks. A test account is free and granted almost instantly.

What is the Tripletex API rate limit?

100 requests per 10 seconds per employee and integration, with a 429 response and a Retry-After header when you exceed it. Separate limits apply to session token creation (180 per minute, planned to go lower) and to repeated failed requests.

Does the Tripletex API support webhooks?

Yes, as event subscriptions marked beta. You can subscribe to events such as invoice.charged and create, update and delete events for customers, products, orders, projects, vouchers and more. Tripletex recommends combining them with a full sync and a nightly check.

Can I create supplier invoices through the API?

Not directly: the current spec has no endpoint to create an incoming supplier invoice. You can read, approve, reject and register payments on existing supplier invoices, and import documents to vouchers.

Is there a test environment?

Yes, at api-test.tripletex.tech. Accounts are free, expire after 6 months unless extended, contain no production data and send no emails. Test credentials do not work in production.

Can I use ChatGPT or Claude with Tripletex?

Yes, through Tripletex's MCP server, which is in beta and free during the beta in all packages. It works with the user's own permissions and asks for approval before sending invoices or posting vouchers.