e-inkasso's API v2 is a JSON-based REST API, which is easy to work with.
Please note, that the API is an early stage and therefore might change over the course of the next months. We furthermore look forward to extend the documentation with more information about resources and error messages.
The API is located at https://secure.e-inkasso.dk/api/v2.
SSL is required for all requests.
The API requires the following Content-Type header to be present on all POST requests:
Content-Type: application/x-www-form-urlencoded
Please note, that the content has be encoded accordingly as well.
Profile
Profiles are what we refer to as "Konto".
They can either be of type business, private or pro.
Client
A client is a profile that is directly related to another profile. Only PRO profiles can have clients.
Follow these steps on how to create an App- and AuthKey.
The API currently only supports Basic access authentication.
Simply base64-encode your App- and AuthKey and include the resulting string in an authorization header like this:
Authorization: Basic [encoded_keys]
The API uses standard HTTP status codes for its responses. You can find a list of them here.
Every successful request contains the following parameters.
Parameter | Description |
---|---|
status | The Status Code of the response. |
resource | The requested resource. Either an array of Resources or a single Resource. |
total_execution_time | The time it took the server to process your request. |
Every failed request contains the following parameters.
Parameter | Description |
---|---|
status | The Status Code of the response. |
description | A generic description of the error. |
errors | An array of more detailed error messages (e.g. validation errors). |
total_execution_time | The time it took the server to process your request. |
Here you can find definitions of the currently available resources and their respective properties and data types.
This endpoint is only available for PRO profiles. If you don't have a PRO profile, you will receive a 403 Forbidden response.