Welcome to the 'Getting Started' section of the website.
The following sections are defined below:
The API Reference page contains a list of all the available endpoints (resources) of the API. Clicking on one of the resource actions will take you to a reference page for that particular resource action. This page will provide the following:
The root for all API calls is webapi.sel-expenses.com/. This means that for Budget Holders, the resource would be GET: webapi.sel-expenses.com/BudgetHolders/ Aside from the test client included in the Api Reference pages, there are a number of useful external apps and plugins that enable you to test the API.
The Assure Expenses solution is highly flexible; there are many areas of the product that the majority of users are not able to access. These areas are called "Spend Management Elements". This access is controlled by an elaborate access roles system:
SpendManagementElement.API
is one of these permissions...
So, as an example, you could create roles within the product such as 'Business Support' and 'Accountant':
You would assign the permission of SpendManagementElement.IPAddressFiltering (view, add, edit, delete), to the 'Business Support' role, thus enabling any member to define which IP addresses are allowed to access Assure Expenses.
You don't want an accountant (however tech savvy) to be able to accidentally ban everyone's computers from accessing Assure Expenses - so ensure the IPAddressFiltering is disabled for the 'Accountant' role.
When the accountant accesses Assure Expenses, the menu option for IP Filtering will not be there, and they will not be able to access that section.
Similarly, an accountant needs to be able to create and edit currencies, but you might not want business support to do this.
So you set the 'Business Support' role's SpendManagementElement.Currencies permission to "View" only.
This way, anyone in that role can still see the currenciesl; just not modify the currencies in any way.
One of the SpendManagementElements (mentioned above) is SpendManagementElement.API
This is the permission that enables API access. Only the 'View' rule has any effect.
You would need to create this in the Assure Expenses web site, so if it hasn't been created already, then create an AccessRole called ApiUser.
Then you can simply assign that role to your user if you are allowed, or ask an administrator if you are not.
After that, provided you have the SpendManagementElement.AccessRoles
permission in an AccessRole assigned to you, then you can even edit the access roles from within the API!
Be careful! This feature is powerful! You could quite easily remove your own access to the API, or the AccessRoles section of the API.
Be careful too that you do not give everyone else access to parts of the API that they are not allowed to use.
With great power comes great responsibility!
Being a Web API, HTTP codes are returned depending on the result of the operation. If something goes wrong, then appropriate error codes are returned where possible. These often just contain a straightforward message and an HTTP error code. Examples of this include: