Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Qvalia Developer Tools

Our APIs and onboarding team ensure a swift integration into your systems and processes. Qvalia integrates with major ERPs and accounting software.

All Qvalia APIs are REST based and we use both JSON and XML request and response payloads. All message formats are based upon UBL and our JSON format is a representation of the XML called UBL JSON by OASIS Open group. We strive to use the REST standards for response codes and “verbs” (e.g. GET and POST).

The Qvalia API has two separate endpoints for our Production and a Test environment.

https://api.qvalia.com/ [Production]

https://api-test.qvalia.com/ [Staging / Sandbox]


Want to jump right in?

Quick StartAPIs

Authentication

Every request is authenticated either with a long-lived API key or with a short-lived JWT access token:

  • API key — sent as Authorization: <api_key>. You will find yours in the Qvalia portal under API & SFTP settings, and you get a separate key for Production and Test.

  • JWT access token — exchange your API key for a token at POST /token/{accountRegNo} and send it as Authorization: Bearer <token>. Tokens expire after one hour. Partners can also request a token scoped to a child account.

See Ways to authenticate for all three flows, including the OAuth2-style client-credentials exchange.

All requests use HTTPS with a minimum of TLS 1.2.

Parameters

Some of our APIs have the possibility to provide parameters for e.g. filtering. These parameters are sent as a query string and the options are listed per endpoint under the technical API documentation.

Error handling

Codes in the 2xx range indicate success. Codes in the 4xx range indicate a problem with the request - the data sent, a missing parameter, or the credentials used. Codes in the 5xx range indicate a problem on our side; contact Qvalia Helpdesk if you receive any 500 errors!

Every error carries the same JSON body:

Branch on type, which is stable, rather than on data, whose wording may change.

type

Status

E_BAD_REQUEST

400

E_UNAUTHORIZED_CLIENT, E_CLIENT_UNSUCCESSFUL_AUTHENTICATION

401

E_MISSING_PERMISSION

403

E_MISSING

404

E_CONFLICT

409

E_VALIDATION, E_PEPPOL_PARTICIPANT_SMP_LOOKUP

422

E_RATE_LIMITED

429

E_INTERNAL_PROXY_ERROR

500

metadata varies by error type and is omitted entirely on a 500. The SCIM endpoints are the one exception: they return the SCIM Error schema from RFC 7644 as application/scim+json, because provisioning connectors expect it.

Support

You can always contact Qvalia Helpdesk through your Qvalia Sales representative or by using our Helpdesk e-mail (see your Qvalia Account for details).

Coding

We use Node.js in-house, and JSON is our format of choice, however, as many ERP and Financial systems are using XML we have opted to add support for both formats in our API. You can freely swap between XML and JSON, just by using different headers:

Omitting accept or content-type headers, we'll default to JSON!

Format
GET
POST

XML

accept: application/xml

content-type: application/xml

JSON (default)

accept: application/json

content-type: application/json

Node.js sample code for calling the API for sending a JSON request could look like:

Last updated

Was this helpful?