Introduction
Tripletex is a cloud-based accounting and enterprise resource planning (ERP) platform designed for small to medium-sized businesses in Norway and other Scandinavian countries. It provides comprehensive financial management, invoicing, project accounting, and inventory management capabilities through a robust REST API.
Integrating Tripletex with SQL Server Integration Services (SSIS) enables seamless data synchronization between your accounting system and other business applications. ZappySys SSIS PowerPack simplifies this integration by providing pre-built connectors and components that handle Tripletex authentication, API communication, and data transformation without requiring custom code.
This tutorial walks you through the complete process of setting up a Tripletex connection and building your first data integration package.
Prerequisites
- SQL Server Integration Services (SSIS) is installed.
- Visual Studio with SSIS extension or SQL Server Data Tools (SSDT).
- Tripletex account with API access enabled.
- Finally, do not forget to install ZappySys SSIS PowerPack.
Steps
Generate your Tripletex API credentials
- Create or log in to your Tripletex account using your administrator credentials.
- Navigate to the Settings section by clicking on your user profile icon in the top-right corner of the screen.
- Select API Access from the dropdown menu.
- Click the Generate New Token button to generate a new API token.
- Provide a descriptive name for your token.
- Set the appropriate permissions scope. For this tutorial, select Read and Write access to ensure the integration can both retrieve and push data.
- Click Generate Token, then immediately copy the Consumer Token and Employee Token values. Store them securely in a password manager or Azure Key Vault, as Tripletex will not display them again.
Generate the Session Token
Tripletex requires a session token for API authentication. This session token is generated from the Consumer Token and Employee Token obtained in Step 1. Follow these steps:
- In your SSIS package, navigate to the Variables section and create the following variables:
- ConsumerToken (String) — Enter the Consumer Token from Step 1.
- EmployeeToken (String) — Enter the Employee Token from Step 1.
- SessionToken (String) — Stores the generated session token.
- CompanyID (String) — Enter your Tripletex company ID (or use 0 if unknown).
- Drag and drop the REST API Task component onto your SSIS package canvas and double-click to open it.
- Navigate to the Response Settings tab and set Response Content Type to JSON.
- In the JSONPath field, enter:
$.value.Tokento extract the session token from the API response. - Enable Save Response Content, select the Variable option, and choose your SessionToken variable.
- Go back to the Request tab and enter the following URL. For testing, use:
1https://api-test.tripletex.tech/v2/token/session/:create?consumerToken={{User::ConsumerToken}}&employeeToken={{User::EmployeeToken}}&expirationDate=2026-04-24 - For production environments, use:
1https://tripletex.no/v2/token/session/:create?consumerToken={{User::ConsumerToken}}&employeeToken={{User::EmployeeToken}}&expirationDate=2026-04-24 - Set the HTTP Request Method to PUT.
- Test the connection. If successful, you will see the generated session token in the response.
Create and Configure the JSON Source
- Add a new Data Flow Task to your SSIS package. Connect it downstream from the REST API task you created before.
- Double-click the Data Flow Task to enter the Data Flow design surface.
- Drag a ZappySys JSON Source component from the toolbox onto the canvas.
- Double-click the ZappySys JSON Source to open its editor.
- For testing purposes, enter the following URL:
1https://api-test.tripletex.tech/v2/token/session/>whoAmI - Set the HTTP Request Method to GET.
- Click the Headers tab and add the required Tripletex authentication headers. The Authorization header must contain the Company ID and Session Token in Base64-encoded format:
12Accept: application/jsonAuthorization: Basic <<{{User::CompanyID}}:{{User::SessionToken}},FUN_BASE64ENC}}>> - In the Array Filter field, specify the JSON path to extract the data array from the Tripletex response:
$.value - Click Preview Data to test the connection and verify that data is being retrieved correctly from Tripletex.
- Click OK to save the configuration.
Configure the Data Destination
- Drag and drop a destination component (such as OLE DB Destination, Flat File Destination, or Trash Destination) into the Data Flow.
- Connect the output arrow from the JSON Source component to the destination component.
- Double-click the destination component to open its configuration dialog.
- Configure the destination to point to your target table or file where Tripletex data will be stored.
- In the Mappings section, map the columns from the JSON response to the corresponding destination columns.
- Click OK to save the destination configuration.
- Execute the package and verify that the data extraction is working correctly.
Conclusion
You have successfully set up a complete integration between Tripletex and SSIS using ZappySys components. This tutorial covered creating API credentials, configuring session token authentication, retrieving data from Tripletex APIs, and loading it into your SQL Server or other destinations.
This integration enables you to automate critical business processes such as invoice tracking, customer synchronization, project management, and financial reporting. By leveraging ZappySys SSIS PowerPack, you have avoided complex custom coding and achieved a scalable, maintainable solution for your data integration needs.
Explore the full capabilities of the ZappySys SSIS PowerPack to optimize your data integration tasks. By applying this pattern, you can extend your solution to include additional transformations, data validation, error handling, and scheduling through SQL Server Agent.
Need Help?
If you encounter any issues, our support team is here to help:
- Live Chat — Use the chat widget (bottom-right corner of this page)
- Email — support@zappysys.com
- Support Center — Visit the ZappySys Support Portal








