> For the complete documentation index, see [llms.txt](https://intella2.gitbook.io/scan2pay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intella2.gitbook.io/scan2pay/api-general-rules.md).

# API Introduction

## **Single API entrance**&#x20;

Scan2Pay adopts single API entrance, Request and Response contents are sent using http POST method.

## **Data encryption**

The original request body, which is in JSON format, will be encrypted using AES algorithm. The AES Key is then encrypted using RSA algorithm and packed into the request . When server receives the request, the AES key will be decrypted and then used to restore the original request body. For further information please refer to:

{% content-ref url="/pages/-L\_Nr6B7VUFzdghzve0B" %}
[API Security](/scan2pay/api-general-rules/api-jia-jie-mi-ming.md)
{% endcontent-ref %}

## **Request/Response body in JSON data format**

For API Request/Response data format, please refer to:

{% content-ref url="/pages/-L\_Nr6B8gHPxl5MxO6QL" %}
[API Request Format](/scan2pay/api-general-rules/api-request-format.md)
{% endcontent-ref %}

{% content-ref url="/pages/-L\_Nr6B93DdchLvpci6O" %}
[API Response Format](/scan2pay/api-general-rules/api-response-format.md)
{% endcontent-ref %}
