> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codapay/tui-kuan-api/zhi-chi-de-zhi-fu-qu-dao.md).

# 支持的支付渠道

Codapay 退款 API 全面支持 Codapay 平台上的所有可用支付渠道。商户可以针对任何符合条件的交易提交标准的 API 请求

根据原支付渠道的具体功能，Codapay 会通过以下两种方式之一来处理退款：

* 渠道直接退款：如果该支付渠道原生支持退款功能，系统将自动处理该交易，并将资金直接退还至客户原有的支付方式中。
* 银行转账：如果该支付渠道原生不支持直接退款，Codapay 会自动启动人工后备流程。在这种情况下，Codapay 将直接联系客户，安全地收集其银行账户信息并完成转账。

上述底层执行逻辑对商户而言是完全透明的。无论使用哪种支付渠道，API 的集成方式、请求参数 (Payload) 以及预期的响应结果均保持完全一致。

### 支付渠道 ID 映射

{% hint style="info" %}
请注意在下列参考页面中，`payType` 参数直接对应于退款 API 中所使用的支付渠道 ID (Payment Channel ID)。
{% endhint %}

如需查看 Codapay 支付渠道的完整列表及其在 API 请求中所需的对应数字 ID，请参考此页面：

{% content-ref url="/pages/8bVyaK6v8yNIvctJBsuQ" %}
[支付页面 API](/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codapay/ji-cheng-zhi-nan/zhi-fu-qu-dao-xin-xi/zhi-fu-ye-mian-api.md)
{% endcontent-ref %}


---

# 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://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codapay/tui-kuan-api/zhi-chi-de-zhi-fu-qu-dao.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.
