Alexander Banks

ODATA REST API – Testing with Postman

January 29th, 2020 | API, Developers Unipedia, OData

A common tool for testing REST services is the tool Postman. This article will cover how to access and use the Uniconta ODATA API using Postman. Because it is an ODATA API, no API key is required. Uniconta login credentials are the only thing you need to call the API. Endpoints You can find endpoints […]

How to find C# Property from Uniconta Label

April 2nd, 2019 | Developers Unipedia

Uniconta have a number of labels which can be found under Tools -> Labels -> Labels. However, even the English labels do not always correspond directly to the C# property names, sometimes resulting in a guessing game for what is called what. Luckily there is solution to this. In the Uniconta client, you can go […]

Server-Login User

March 20th, 2019 | API, Developers Unipedia

 Any solution using the Uniconta API to integrate to Uniconta and which requires a separate Server-login user, this Server-login user must be the one the integration/solution uses to logon to Uniconta.

Attach physical voucher to entities

February 12th, 2019 | API, Developers Unipedia

You can attach physical vouchers to entiteis such as the GLDailyJournalLineClient entities. The entity must have a DocumentRef property of type int. In the code snippet beneath is an example of how to attatch a physical voucher to a GLDailyJournalLine. // Some File var bytes = File.ReadAllBytes(@”[Path To File]”); var vc = new VouchersClient() { _Data = […]


January 30th, 2019 | API, Developers Unipedia

Uniconta uses Labels for Localization. The labels can be found in the Uniconta client under Tools -> Report Generator -> Labels. Programmatically, when we wish to Localize or translate plugins or applications, we can use these labels using the Localization class from the Uniconta.ClientTools namespace. // An initialized CrudAPI is required to use the Localization.lookup […]

Open tab in Uniconta programmatically

January 29th, 2019 | API, Developers Unipedia, Plugins

You can use the following code snippet to open a new tab in Uniconta. object[] param = new object[2]; param[0] = crudApi; param[1] = null; UnicontaTabs.OpenTab(UnicontaTabs.DebtorAccountPage2, param); This can be used to open up some Uniconta tab from a plugin for example. In the example above, we open up the DebtorAccountPage2 tab.

Post Invoice and get PDF

January 16th, 2019 | API, Developers Unipedia

Similarly to the InvoiceAPI.PostInvoice method, you can also call InvoiceAPI.PostInvoicePDF in order to get the invoice PDF if you wish to save it or process it in any other manner. Below is a code snippet showing how to use the method. In this example we are invoicing an order with order number 559. Just like the […]

Posting an Invoice

December 17th, 2018 | API, Developers Unipedia

To post an invoice you must use the InvoiceAPI’s PostInvoice method. Below is an example of invoicing an order with order number 55. // Goal: Invoice an order with order number: 55 // Smart way to get a specific order var order = new DebtorOrderClient { OrderNumber = 55 }; await crud.Read(order); // Get all […]

Open new content in a IContentPluginBase plugin

December 17th, 2018 | Developers Unipedia, Plugins

In an IContentPluginBase plugin, implement the SetContent method to change the content of the plugin’s tab. You may create a user control inline as seen below, but you can also create a separate User Control (WPF) control and pass that to the control.Content property instead. //summary // The SetContent method to set the content //summary public […]

Saving a Session

November 27th, 2018 | API, Developers Unipedia, Plugins

You can save a Session in Uniconta. You might want to do this, if you wish to keep a user’s Session, so they do not have to log in again. In the code beneath, two methods are showed, SaveSession and GetSession. SaveSession simply saves a Session at a given path as a byte[]. GetSession returns […]

Refreshing UI with plugins

October 2nd, 2018 | API, Developers Unipedia, Plugins

There are two different ways to refresh the UI from plugins, depending on the plugin type you are developing. The way to refresh in IContentPluginBase is the same as IPluginBase. Refreshing with IPluginBase IPluginBase plugins have the following EventHandler: public event EventHandler OnExecute; The following code snippet can be called from the method Execute(…) to refresh the […]

Debug Uniconta Plugins

October 2nd, 2018 | API, Developers Unipedia, Plugins

To debug Uniconta Plugins on the WPF client, you must download the ClickOnce Installer here. After downloading the ClickOnce installer, open up your Visual Studio project. From Visual Studio, right click your project and select the Properties menu from the dropdown. Go to the debug menu on the left hand site. Click the Start external […]