> For the complete documentation index, see [llms.txt](https://docs.maibmerchants.md/mia-qr-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maibmerchants.md/mia-qr-api/en/overview/general-technical-specifications.md).

# General Technical Specifications

#### **Request Structure**

All interactions with the API are performed via HTTPS requests, with data in JSON format. Responses are also returned in JSON format.

#### Available Base URLs

| Environment    | Base URL                           |
| -------------- | ---------------------------------- |
| PROD           | `https://api.maibmerchants.md`     |
| TEST (Sandbox) | `https://sandbox.maibmerchants.md` |

It is recommended to perform initial testing in the sandbox environment before requesting access to the production environment.

### Authentication

Authentication is done via a Bearer token, obtained in advance.\
The token must be included in the header of each request:

<pre><code><strong>Authorization: Bearer {access_token}
</strong></code></pre>

For details on how to obtain the token, refer to the [**Authentication** ](#authentication)section.

**Data Format**

* Accepted format: `application/json`
* Datetime fields must follow the ISO 8601 format (example: `2029-10-22T10:32:28`)
* The currency used is **MDL (Moldovan Leu)**

**HTTP Response Codes**\
For the full list of HTTP response codes, see the [**HTTP Status Codes** ](broken://pages/Y24sIVDWho1lkFa6cZRD)section.

| Code | Meaning                                   |
| ---- | ----------------------------------------- |
| 200  | Valid request, response returned          |
| 400  | Invalid request (structure or data error) |
| 401  | Unauthorized (missing or invalid token)   |
| 403  | Forbidden (insufficient permissions)      |
| 500  | Internal server error                     |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.maibmerchants.md/mia-qr-api/en/overview/general-technical-specifications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
