> ## Documentation Index
> Fetch the complete documentation index at: https://doc2.payloco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 👋 欢迎使用 Payloco API

Payloco 提供了一套完整的 API，帮助您处理和管理支付业务。我们的 API 采用 HTTP Body 中的 JSON 格式进行收发，并返回标准 HTTP 响应码。您可以使用任意 HTTP/REST 库直接调用这些 API。

<CardGroup horizontal cols={2} row={3}>
  <Card horizontal title="发起支付" href="/zh/api-reference/acquiring/payment" icon="money-bill">
    通过多种场景探索灵活的支付接口
  </Card>

  <Card horizontal title="退款" href="/zh/api-reference/acquiring/refund" icon="receipt">
    使用 API 对已完成的支付发起退款
  </Card>

  <Card horizontal title="付款" href="/zh/api-reference/transfers/transfer" icon="vault">
    使用 API 发起付款请求
  </Card>

  <Card horizontal title="Webhooks" href="/zh/api-reference/payment-notification/payment-success" icon="circle-down">
    Webhooks 让您实时接收支付结果通知
  </Card>
</CardGroup>

## 环境说明

我们提供 **沙箱（Sandbox）** 测试环境，您可以在不影响生产数据的情况下测试 API 调用。请在 Dashboard 上注册以获取 API 密钥。

| 环境 | Base URL                                                                     |
| -- | ---------------------------------------------------------------------------- |
| 沙箱 | [https://gate.uat.payloco.com/gateway](https://gate.uat.payloco.com/gateway) |
| 生产 | [https://gate.payloco.com/gateway](https://gate.payloco.com/gateway)         |

## 支付状态生命周期

| 状态      | 描述    | 备注           |
| ------- | ----- | ------------ |
| SUCCESS | 交易成功  | 用户支付成功       |
| PENDING | 交易处理中 | 等待用户完成支付     |
| FAILED  | 交易失败  | 支付失败         |
| CLOSED  | 交易关单  | 用户在有效期内未完成支付 |
