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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 账户注资交易（AFT）

> 通过 Payments API 使用账户注资交易向钱包充值或在账户之间转账

## 简介

**账户注资交易（AFT）** 是促进资金在支付账户之间转移的金融交易。它们广泛用于为用户账户、数字钱包加载资金或充值，以及在支付平台内部进行资金划转。

AFT 能够在账户之间高效、安全地转移资金。

## 什么是 AFT？

**AFT（账户注资交易）** 是一种专门用于以下用途的交易类型：

* **加载资金** 到用户账户或数字钱包。
* **在同一平台内的账户之间转账**。
* **向商业账户或个人账户存入资金**，包括汇款。

AFT 利用传统支付网络（例如 Visa、Mastercard、ACH）快速、安全地处理交易，同时优化成本。

### AFT 交易类型

1. **注资交易**：
   * 从借记卡/信用卡或银行账户向某个账户转入资金。
   * 示例：用户使用借记卡为其数字钱包充值。

2. **提现交易**：
   * 将资金从用户账户转回其银行账户或卡。
   * 示例：用户将资金从其数字钱包转入其银行账户。

## 集成

要执行 AFT，您需要向我们的 [Payments API](https://docs.y.uno/zh-hans/reference/payments/create-payment.md) 发送请求，并在 `additional_data.order.account_funding` 对象中指定 `sender` 和 `beneficiary` 数据。

根据运营地区和交易类别，每个信用卡组织可能需要不同的收款方和付款方信息。

```Text Example theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
[...]
 "additional_data": {
   "order": {
    "account_funding": {
      "sender": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "john.doe@mail.com"
      },
      "beneficiary": {
        "first_name": "Chris",
        "last_name": "Martin",
        "document": {
          "document_number": "38192019",
          "document_type": "CC"
        }
      }
     }
    }
  }
[...]
```

如需了解更多详情，请参阅创建 [支付 API](https://docs.y.uno/zh-hans/reference/payments/create-payment.md) 部分。

> [!NOTE]
>
> **附加数据**
>
> 如果您需要定义有关卖家的附加信息（例如 `merchant_category_code`），可以在支付的 [`additional_data` 结构](https://docs.y.uno/reference/payments/the-payment-object) 中的 `seller_details` 内找到额外字段。

> [!NOTE]
>
> **预存型数字钱包**
>
> 如果您运营预存型数字钱包（客户先充值余额，然后在单独的交易中消费），请参阅 [预存型数字钱包运营商（SDWO）](https://docs.y.uno/zh-hans/docs/payment-features/staged-digital-wallet-operators-sdwo.md)，了解适用于该流程的卡组织特定要求。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.