The API 2.0 module in tripletex must first be activated before you may produce an employee token (user key). You can accomplish this by going to our customers -> company. Go to “my profile” and the “API access” tab to create a user key for your user in the system. After that, choose “new key” and “custom layout” and open the DataDesign webmercs application. Give it access and the user key, please.
A Norwegian accounting system called Tripletex enables accounting operations, invoicing management, CRM logic, and more. In our Next.js Boilerplate, you can use this simple guide to set up a stock sync between your Tripletex Inventory and Crystallize Catalogue.
“Connecting” your Crystallize items to the current ones in Tripletex is one of the crucial tasks in this procedure. Using the field “externalReference” in an update Product mutation (Crystallize Core API) or defining a product shape with that information included as part of a product type are two options for accomplishing so. Use of the externalReference field is advised.
The code that manages stock synchronising may be found in pages/api/webhooks/tripletex-stoc-sync.js. The default inventory and default 25% VAT type are being used by the code for all actions right now. This can be changed to perfectly match your reasoning.