> For the complete documentation index, see [llms.txt](https://api.qvalia.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.qvalia.io/qvalia-developer-tools/api.md). Agents can also search and read this documentation through its [MCP server](https://api.qvalia.io/~gitbook/mcp).

# API

Qvalia follows a standard API REST interface for our endpoints and adhere to the standard return codes and behaviors of a standard API.

Qvalia is using the UBL standard messaging formats for our integrations through the API, but you should note that only a subset of UBL as specified by Peppol (peppol.eu)!

{% hint style="success" %}
As many of Qvalia's services are compatible with Peppol the data validation is also done using the Peppol standards. For example the Invoice endpoint strictly follows BIS Billing 3.0, <https://docs.peppol.eu/poacc/billing/3.0/>

This means that, although the JSON format is based upon UBL JSON, Qvalia only allow the subset stated from <https://docs.peppol.eu/poacc/billing/3.0/> for the Invoice and CreditNote message types, see the “Syntax” section!

For Order and OrderResponse you'll find the documentation at: <https://docs.peppol.eu/poacc/upgrade-3/>
{% endhint %}

### Authentication <a href="#authentication" id="authentication"></a>

Qvalia use standard REST API authentication of requests, API key or OAuth/JWT. You can get your API key and credentials from our Helpdesk team and you’ll get separate keys and URLs for Production and Test environments. All requests use HTTPS with a minimum of TLS 1.2

Each request made to the API will contain your `registration number` which is your account identifier for your Qvalia account. Your account identifier will be provided to you from the Helpdesk team during the onboarding process.

Your requests must use the registration number for your account, as e.g.:

```
POST /transaction/{accountRegNo}/invoices/outgoing
```

### URIs and letter case <a href="#uri-case" id="uri-case"></a>

The path of a request and the names of its query parameters are matched without regard to letter case: `/Transaction/{accountRegNo}/Invoices/Outgoing?Limit=10` is the same request as `/transaction/{accountRegNo}/invoices/outgoing?limit=10`.

Registration numbers (`accountRegNo`, `partnerRegNo`) and Peppol IDs in the URI are always read in upper case, so `se5567321707` is `SE5567321707`. Every other value keeps the case it was sent in and is compared exactly: integration IDs, webhook IDs, e-mail addresses, document numbers and bank account numbers.

### Request size <a href="#request-size" id="request-size"></a>

A request body can be at most 100 MB. A larger one is answered `413` with the error type `E_PAYLOAD_TOO_LARGE`, on every endpoint, and the connection is closed. Attachments count: they are base64-encoded inside the document, see [Attachments to messages](https://api.qvalia.io/qvalia-developer-tools/attachments-to-messages.md).

### Peppol Country-Specific and International Profiles <a href="#ubl-json-representation-standard" id="ubl-json-representation-standard"></a>

Qvalia support various country specific or International profiles through the Transaction API for [Invoice](https://api.qvalia.io/api-documentation/apis/transaction-api/invoice-apis.md) and [CreditNote](https://api.qvalia.io/api-documentation/apis/transaction-api/credit-note-apis.md).

Just follow the standard /invoices/... or /creditnotes/... endpoints as our API is utilized per "root" element of the document, e.g. "`<Invoice>`".

Currently supported document types:

<table><thead><tr><th width="456">Customization ID</th><th>Short description</th></tr></thead><tbody><tr><td><code>urn:peppol:pint:billing-1</code></td><td>PINT BIS Billing</td></tr><tr><td><code>urn:peppol:pint:billing-1@jp-1</code></td><td>PINT Japan</td></tr><tr><td><code>urn:peppol:pint:billing-1@sg-1</code></td><td>PINT Singapore</td></tr><tr><td><code>urn:peppol:pint:billing-1@aunz-1</code></td><td>PINT Australia/New Zeeland</td></tr><tr><td><code>urn:peppol:pint:billing-1@my-1</code></td><td>PINT Malaysia</td></tr><tr><td><code>urn:peppol:pint:billing-1@en16931-2017@eu-3</code></td><td>PINT EU</td></tr><tr><td><code>urn:peppol:pint:billing-1@ae-1</code></td><td>PINT UAE</td></tr></tbody></table>

### UBL JSON representation standard <a href="#ubl-json-representation-standard" id="ubl-json-representation-standard"></a>

For the JSON representation of the format please refer to <http://docs.oasis-open.org/ubl/UBL-2.1-JSON/v2.0/UBL-2.1-JSON-v2.0.html>

UBL JSON samples and schemas can be found here: <http://docs.oasis-open.org/ubl/UBL-2.1-JSON/v2.0/cnd01/>

### UBL XML representation standard <a href="#ubl-xml-representation-standard" id="ubl-xml-representation-standard"></a>

For the XML representation, <https://docs.oasis-open.org/ubl/UBL-2.1.html>

The UBL version 2.1 has been selected due to the many compliant standars with UBL 2.1, mainly the Peppol standard (peppol.eu).

XML samples and XML schemas can be found here: <http://docs.oasis-open.org/ubl/os-UBL-2.1/>

### Required data/attributes <a href="#required" id="required"></a>

As the UBL JSON schema is fairly big, Qvalia only lists the `required` attributes in the sample request and response data; the full schema is available from the OASIS UBL links above. You can browse the complete `JSON schema` viewing the `UBL-Invoice-2.1`.

### Rate limit

The API enforces a per-account, per-minute budget across **all** endpoints and returns `429` when it is exceeded.

> `429` — Too Many Requests. You have exceeded your request budget, which is counted per\
> account across all endpoints.

Requests are counted per account, per minute, across all Qvalia APIs — every endpoint shares one budget per account.

{% hint style="success" %}
Every response carries the currently used number of requests, so you can pace the requests rather than hitting the ceiling and being refused.
{% endhint %}

Exceeding the budget returns `429 Too Many Requests` with a `Retry-After` header. Wait at least that long before retrying.

{% hint style="info" %}
**Contact Qvalia Helpdesk if your integration needs a higher limit.**
{% endhint %}

| Header                | Meaning                                |
| --------------------- | -------------------------------------- |
| `RateLimit-Limit`     | Requests allowed in the current window |
| `RateLimit-Remaining` | Requests left in the current window    |
| `RateLimit-Reset`     | Seconds until the window resets        |
| `RateLimit-Policy`    | The policy in force, e.g. `200;w=60`   |

### Attachments <a href="#attachments" id="attachments"></a>

Often our customers wants to add, or request, attached documents to their messages, e.g. their invoices.

Qvalia supports all the same attachments as Peppol does: Peppol media types

See more under [Attachments to messages](https://api.qvalia.io/qvalia-developer-tools/attachments-to-messages.md)

### SFTP Integration <a href="#sftp-integration" id="sftp-integration"></a>

Qvalia is also offering integration through SFTP. If you have opted for the SFTP integration please read more here: [SFTP Integration](#sftp-integration)

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api.qvalia.io/qvalia-developer-tools/api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
