# 【商户-API支付】如何设置API白名单和回调地址？

设置API白名单，只有白名单IP可请求平台接口，可以有效地增强安全性，降低风险，同时也能够精确控制访问权限，提高系统的性能和稳定性。设置回调地址，可以实现系统之间的异步通信和实时通知，提高系统的响应性和用户体验，同时减少轮询成本和简化系统集成过程。

* **API应用列表中，选择需要设置的API应用，点击“操作”，再点击“编辑”**

<figure><img src="/files/ES7Xtl0ajXzcCJIyRVFY" alt=""><figcaption></figcaption></figure>

* 根据您的应用场景编辑应用信息

<figure><img src="/files/H0fgGluVVcDSTilctOze" alt=""><figcaption></figcaption></figure>

* &#x20;**回调地址格式必须http或https开头，一个应用仅支持填写一个回调地址**

URL路径和参数格式限制要求：

1. 不为空字符串
2. 不包含emoji表情的特殊字符串
3. URL为包含域名的绝对路径

* **IP白名单，每行仅支持填写一个IP地址，如需填写多个IP地址，请换行填写，每行一个**


---

# 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://doc.tokenpay.me/chinese/shi-yong-jiao-cheng/shang-hu-api-zhi-fu-ru-he-she-zhi-api-bai-ming-dan-he-hui-tiao-di-zhi.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.
