# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
