> ## 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.

# 定期支付的账单描述符

> 控制订阅和商户发起的定期扣款在持卡人银行对账单上显示的软描述符（账单描述符）。

软描述符（也称为账单描述符）是持卡人在银行对账单上看到的、显示在某笔扣款旁的文本。清晰的描述符可以减少困惑以及由此引发的争议，这对定期扣款尤为重要，因为此类扣款向客户收费时客户无需重新进入 checkout。

在哪里设置描述符取决于您使用的定期机制。两种路径相互独立，因此请选择与扣款生成方式相符的路径。

> [!NOTE]
>
> **哪种路径适用于您**
>
> * **Yuno 订阅引擎**：Yuno 根据订阅对象生成每笔重复扣款。请在订阅上设置描述符。
> * **商户发起（MIT）**：您自行使用存储凭证，通过创建支付调用生成每笔重复扣款。请在每笔支付上设置描述符。
>
> 同一商户可以针对不同产品同时使用这两种方式。钱包重复扣款（Apple Pay / Google Pay）在两种情况下都走卡 / 网络令牌通道，因此以下规则同样适用于它们。

## 订阅引擎重复扣款

当 Yuno 的[订阅引擎](https://docs.y.uno/zh-hans/docs/payment-features/subscriptions.md)在每个周期向客户扣款时，请通过订阅上的 `soft_descriptor` 字段一次性设置描述符。Yuno 会将其保存在订阅上，并应用于引擎生成的每笔重复扣款。

* 在[创建订阅](https://docs.y.uno/reference/subscriptions/create-subscription.md)中设置（`soft_descriptor`，字符串，最多 255）。
* 之后可在[更新订阅](https://docs.y.uno/reference/subscriptions/update-subscription.md)中修改；新值适用于后续的重复扣款。

```json Create Subscription (excerpt) theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "name": "Streaming plan",
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "country": "US",
  "soft_descriptor": "ACME STREAMING",
  "amount": { "currency": "USD", "value": 15000 },
  "payment_method": {
    "type": "CARD",
    "vaulted_token": "{{vaulted_token}}"
  }
}
```

## 商户发起（MIT）重复扣款

当您自行驱动定期扣款时（将每笔扣款作为商户发起的支付发送，并设置 `stored_credentials.usage = USED` 和 `reason = SUBSCRIPTION`），不存在承载描述符的订阅对象。此时请改为按每笔支付设置。

在[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)中，描述符位于支付方式详情中：

* `payment_method.detail.card.soft_descriptor`
* `payment_method.detail.wallet.soft_descriptor`
* `payment_method.detail.bank_transfer.soft_descriptor`

对于 Apple Pay 和 Google Pay 重复扣款，已保存的方式是卡类型的网络令牌，因此请使用 `payment_method.detail.card.soft_descriptor`。

```json Create Payment (excerpt) theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "amount": { "currency": "USD", "value": 15000 },
  "payment_method": {
    "type": "CARD",
    "vaulted_token": "{{vaulted_token}}",
    "detail": {
      "card": {
        "soft_descriptor": "ACME STREAMING",
        "stored_credentials": {
          "reason": "SUBSCRIPTION",
          "usage": "USED"
        }
      }
    }
  }
}
```

有关完整的 CIT/MIT 流程，请参阅[存储凭证](https://docs.y.uno/zh-hans/docs/payment-features/stored-credentials.md)。

## 服务提供商行为

Yuno 会将 `soft_descriptor` 转发到各服务提供商的对应字段（例如 Stripe `statement_descriptor` / `statement_descriptor_suffix`、Unlimit `dynamic_descriptor`、Airwallex `descriptor`、Inovio `PMT_DESCRIPTOR`、Nuvei `dynamicDescriptor.merchantName`）。行为因服务提供商而异：

| 服务提供商 | 行为 |
| :- | :- |
| Stripe | 默认仅发送后缀（`statement_descriptor_suffix`）。仅对启用了完整账单描述符的组织发送完整描述符，请联系您的技术客户经理。 |
| Unlimit | 截断为 22 个字符。 |
| Airwallex | 截断为 30 个字符。 |
| Inovio | 去除非字母数字字符。 |
| Worldpay | 不读取 `soft_descriptor`。账单说明改为来自通用的 `payment_description` 字段。 |

> [!WARNING]
>
> 长度和允许的字符因服务提供商而异。请保持描述符简短且仅含字母数字，以便在截断和清理后仍能保留，并在依赖特定格式之前先与您的服务提供商进行测试。


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