> For the complete documentation index, see [llms.txt](https://intella.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://intella.gitbook.io/scan2pay/api-general-rules/api-environment.md).

# API環境

Scan2Pay API

{% hint style="danger" %}
Client端連線到Scan2Pay API時, 需要使用**TLS1.2**以上(含)傳輸安全性協議來連接
{% endhint %}

## Scan2Pay API

<mark style="color:green;">`POST`</mark> `https://intella-server-domain/allpaypass/api/general`

&#x20;**Scan2Pay API接入口**

#### Request Body

| Name      | Type   | Description       |
| --------- | ------ | ----------------- |
| "ApiKey"  | string | RSA加密的AES Key     |
| "Request" | string | AES加密的原始Request內容 |

{% tabs %}
{% tab title="200 " %}

```
{
    "Response":"aes-encrypted-string"
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
請洽詢intella以取得intella server的domain name
{% endhint %}

{% hint style="warning" %}
開發階段使用測試帳號在測試server上進行, 測試環境下, 部分支付的測試需要搭配測試版App或是測試帳號/卡號才能進行支付測試.
{% endhint %}
