> 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環境

{% 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 %}


---

# 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://intella.gitbook.io/scan2pay/api-general-rules/api-environment.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.
