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

# API 更新日志

> Yuno API 的最新更新和版本历史

## v2026-12

*2026年12月1日*

**支付**

* ADDED **使用一次性令牌或存储令牌时的持卡人姓名**\
  当支付使用 `payment_method.token`（来自 SDK 的一次性令牌）或 `payment_method.vaulted_token` 时，`POST /v1/payments` 接受不带 `number` 的 `payment_method.detail.card.card_data.holder_name`（2 到 255 个字符）。仅当令牌或已保存的卡没有持卡人姓名时才会使用；令牌或已保存的卡上已有的姓名始终优先。Yuno 仅为该笔支付将其发送给服务提供商，不会将其保存在已注册的卡（`vault_on_success`）或客户上。使用一次性令牌时，任何其他不带 `number` 发送的 `card_data` 字段仍会被拒绝，并返回 `400 INVALID_PARAMETERS`。不带该字段的请求行为与之前完全相同。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

## v2026-11

*2026年11月19日*

**支付**

* ADDED **Routing API 中的 ISO 8583 代码组**\
  路由输出接受 `ISO_CODE_GROUP`，它按发卡机构的 ISO 8583 响应代码（例如 `51` 或 `9G`）匹配卡片拒绝，无论连接将其映射到哪个子状态。`ISO_CODE_GROUP` 输出可通过 `group_id` 引用已保存的 ISO 代码组，或在 `decline_types` 中携带其代码以生成 `auto_` 组，并且与 `DECLINE_GROUP` 一样接受 `retry: true`。代码在去除首尾空格后为 1 到 30 个字符，比较时不区分大小写；所有类型的组输出都按 `output[]` 的顺序进行比较。列出拒绝组接口会以 `type: "ISO_CODE_GROUP"` 返回 ISO 代码组；已保存的 ISO 代码组在 Dashboard 中创建。智能路由步骤在 `no_retry_decline_group_ids` 中接受 ISO 代码组。仅适用于卡片支付；没有 `ISO_CODE_GROUP` 输出的路由行为与之前相同。
  *另请参阅：[路由资源结构](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md#iso-code-groups) · [列出拒绝组](https://docs.y.uno/zh-hans/reference/organizations/routing/list-decline-groups.md)*

* ADDED **3DS 路由步骤上的责任转移输出**\
  路由中的 3DS 服务提供商步骤接受三种输出，按认证的责任转移情况细化 `APPROVED`：`LIABILITY_SHIFTED`（`true`）、`LIABILITY_NOT_SHIFTED`（`false`）和 `LIABILITY_NOT_REPORTED`（无值）。可以使用其中任意子集；当步骤上没有匹配的输出时，路由沿 `APPROVED` 继续，没有 `next` 的输出会结束路由。在其他任何类型的步骤上使用，或与 `group_id`、`decline_types` 或 `retry: true` 一起使用时，会被拒绝并返回 `400 INVALID_ROUTE_CONFIGURATION`。不使用这些输出的路由行为与之前相同。
  *另请参阅：[路由资源结构](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md#liability-shift-outputs)*

*2026年11月10日*

**支付**

* ADDED **卡片支付的部分批准**\
  创建支付接口在卡片购买和授权中接受新的可选字段 `payment_method.detail.card.partial_approval`（默认 `false`）；在验证（verify）中会被忽略。设为 `true` 时，支付可以以低于 `amount.value` 的金额获得批准。支付对象、操作响应和支付 webhook 中新增的 `amount.authorized` 返回服务提供商批准的金额，已扣除 Yuno 促销并加上已批准的增量授权；部分批准后，支付保持与完全批准相同的状态，因此当 `amount.authorized` 低于 `amount.value` 减去 `discount_amount`（无促销时为低于 `amount.value`）时，即为部分批准。对于部分批准的支付，不带 `amount` 的捕获会捕获 `amount.authorized`，超过该金额的捕获会被拒绝并返回 `400 INVALID_PARAMETERS`，退款也以该金额为上限。未发送该字段的支付，或由不支持部分批准的服务提供商处理的支付，行为与之前完全相同。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)、[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)、[捕获授权](https://docs.y.uno/zh-hans/reference/payments/capture-authorization.md)*

*2026年11月5日*

**支付**

* CHANGED **部分服务提供商和国家/地区的付款人电话号码脱敏**\
  对于因当地数据保护规定而为某服务提供商和国家/地区启用了脱敏的情况，支付响应中的 `customer_payer.phone.number` 可能以脱敏形式返回，仅显示最后四位数字（例如 `*****3456`）。其他情况下，仍与之前一样返回完整号码。脱敏后的值不是有效的电话号码：请勿在后续请求（退款、取消或新支付）中回传该值。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)、[按 ID 检索支付](https://docs.y.uno/zh-hans/reference/payments/retrieve-payment-by-id-v2.md)*

## v2026-10

*2026年10月19日*

**支付**

* ADDED **支持 NOT\_EQUAL、ONE\_OF 和 NOT\_ONE\_OF 的货币路由条件**\
  路由条件接受 `CURRENCY` 搭配 `EQUAL`、`NOT_EQUAL`、`ONE_OF` 或 `NOT_ONE_OF`，并在 `values` 中填写货币（大写 ISO 4217，不使用 `currency` 字段），因此可以通过 API 让路由匹配“货币不是 USD”或“货币是 EUR 或 GBP”。获取路由和列出路由接口会按发送时的原样返回 `NOT_EQUAL`、`ONE_OF` 和 `NOT_ONE_OF`；搭配 `EQUAL` 的 `CURRENCY` 会以仅含货币的 `AMOUNT` 条件返回。在 Dashboard 中创建的不含金额的货币条件现在可以通过 API 更新。
  *另请参阅：[路由条件](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-conditions.md)*

* FIXED **Routing API 中以 `DECLINE_GROUP` 回传的 Merchant Advice Code 组**\
  更新路由和创建路由接口接受引用 Merchant Advice Code 组的 `DECLINE_GROUP` 输出，即 Dashboard 保存、获取路由接口返回的结构，因此对这些路由执行获取 → 更新的往返操作时，不会再因 `400 INVALID_ROUTE_CONFIGURATION` 而失败。状态按发送时的原样保留，且 `DECLINE_GROUP` 与 `MAC_CODE_GROUP` 匹配拒绝的方式不同。此类条目上的 `retry: true` 仅在已存储的路由已对该组进行重试时才会被接受。
  *另请参阅：[路由资源结构](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md#outcome-groups)*

* ADDED **直接钱包支付中的服务提供商 nonce**\
  `POST /v1/payments` 在 `DIRECT` 工作流中接受新的可选字段 `payment_method.detail.wallet.provider_payment_token`：来自服务提供商客户端 SDK 的一次性 nonce，例如 Braintree PayPal nonce。Yuno 会将其转发给服务提供商连接，不会存储。与 `vault_on_success` 结合使用时，支付会返回 `vaulted_token`，创建支付和获取支付的响应会在 `payment_method.payment_method_detail.wallet.provider_token` 中返回服务提供商的存储 ID（获取支付方式接口中也以 `provider.token` 返回）。当 Braintree 已存储该账户时，`PAYPAL_BRAINTREE` 支付会返回 `wallet.provider_token`，否则省略。在其他工作流中、值为空时，或与其他钱包或支付方式令牌同时使用时，该字段会被拒绝并返回 `400 INVALID_REQUEST`。不带该字段的请求行为与之前完全相同。
  *另请参阅：[PayPal 和 Venmo](https://docs.y.uno/zh-hans/docs/wallets/paypal.md#direct-integration-with-a-braintree-nonce)、[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

* ADDED **Routing API 中的结果组、重试和操作步骤**\
  路由输出在 `DECLINE_GROUP` 之外还接受 `MAC_CODE_GROUP` 和 `SUCCEEDED_GROUP`，通过 `group_id` 引用账户中的组，并可携带 `retry`，在回退之前再尝试同一服务提供商一次。在 `APPROVED` 或 `SUCCEEDED_GROUP` 输出之后，步骤除 `CANCEL` 外还接受 `action` `CAPTURE`（搭配 `action_delay`）和 `HOLD_FOR_REVIEW`。两个只读 endpoint `GET /v1/routing/decline-groups` 和 `GET /v1/routing/succeeded-groups` 会列出账户的组。获取路由接口会返回 `retry`、`group_id`、`group_name`、`action` 和 `action_delay`，因此获取 → 更新的往返操作会保持路由在 Dashboard 中的配置。
  *另请参阅：[路由资源结构](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md)、[列出拒绝组](https://docs.y.uno/zh-hans/reference/organizations/routing/list-decline-groups.md)、[列出成功组](https://docs.y.uno/zh-hans/reference/organizations/routing/list-succeeded-groups.md)*

* ADDED **Routing API 中的欺诈、3DS 和智能路由步骤**\
  服务提供商步骤现在会报告其 `provider_type`；欺诈步骤携带其配置（`fraud`：规则、阻止列表、允许列表、审核列表、预设、`report_only`）以及 `PENDING` 结果，欺诈、3DS 和认证步骤可以基于该结果分支；`REVERT` 是支付后欺诈筛查之后的结束操作；智能路由步骤（`provider_id: "SMART_ROUTING"` 搭配 `smart_routing`）可以在卡片路由中创建、更新和读取。结合之前的条目，在 Dashboard 中构建的路由可以通过 API 无损读取和写回。
  *另请参阅：[路由资源结构](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md)*

* ADDED **每个路由步骤的网络令牌和 3DS 豁免**\
  路由的服务提供商步骤接受 `CARD` 路由中支付服务提供商上的 `network_token_on`，以及 3DS 服务提供商上的 `three_d_secure_exemptions`，即 Dashboard 已存储的步骤级设置。获取路由接口会返回这些设置，以及每个服务提供商步骤的只读字段 `timeout` 和 `network_token_enable`。更新时，未发送其中某个字段的步骤会保留已存储的值；`network_token_on: false` 和 `three_d_secure_exemptions: []` 会清除该值。
  *另请参阅：[路由资源结构](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md)、[SCA 豁免](https://docs.y.uno/zh-hans/docs/payment-features/sca-exemptions.md)*

* ADDED **路由中的时间安排、交易量限制、附加字段和仅货币条件**\
  路由条件支持 `TIME_PERIOD`（带重复规则、工作日和时间窗口的日期范围）、`VOLUME_PAYMENTS_LIMIT`（按日、月或季度的支付笔数或交易量限制，搭配 `limit_by` 和 `payments_count`）以及 `ADDITIONAL_FIELD`（按 `key` 指定的客户、地址、订单、航空和卡片字段）。带 `currency` 且 `values` 列表为空的 `AMOUNT` 条件会匹配该货币的任意金额。时间安排和限制字段会在获取时返回，并在更新时保留。
  *另请参阅：[路由条件](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-conditions.md)*

* ADDED **已上报交易中的推荐 ID**\
  `POST /v1/reporting/transactions` 在每个事件上接受新的可选字段 `recommendation_id`：即 `POST /v1/routing/recommendations` 为该支付返回的值，格式为小写 UUID v4。Yuno 会存储该值，以将上报的结果归因于该推荐；不会与现有推荐进行校验。不带该字段的事件行为与之前完全相同；其他任何值都会按事件被拒绝，返回 `INVALID_EVENT` 和消息“The field 'recommendation\_id' must be a UUID.”。
  *另请参阅：[上报 Yuno 之外的交易](https://docs.y.uno/zh-hans/reference/reporting/report-transactions.md)*

## v2026-09

*2026年9月14日*

**支付**

* ADDED **已上报交易中的 CIT/MIT 发起方式**\
  `POST /v1/reporting/transactions` 在每个事件上接受新的可选字段 `initiation`：`CIT`（持卡人发起）或 `MIT`（商户发起）。Yuno 会将其保存在上报的支付中，并用于构建按发起方式划分的统计数据。不带该字段的事件行为与之前完全相同；其他任何值都会按事件被拒绝，返回 `INVALID_EVENT` 和消息“The field 'initiation' must be CIT or MIT.”。
  *另请参阅：[上报 Yuno 之外的交易](https://docs.y.uno/zh-hans/reference/reporting/report-transactions.md)*

* CHANGED **按发起方式划分的路由推荐**\
  当 `payment.initiation` 与已上报的历史记录匹配时，`POST /v1/routing/recommendations` 现在会基于相同发起方式的细分对候选项排序：在每个层级先尝试该发起方式的历史记录，否则回退到整个层级，因此不带 `payment.initiation` 的请求返回的排序与之前相同。
  *另请参阅：[获取路由推荐](https://docs.y.uno/zh-hans/reference/organizations/routing/get-routing-recommendations.md)*

## v2026-08

*2026年8月31日*

**安全**

* ADDED **网络令牌加密凭证 API 的仅加密凭证模式**\
  `POST /v1/network-tokens/cryptograms` 新增可选字段 `include_network_token`（默认 `true`）。设为 `false` 时，响应会省略 `network_token.number`（DPAN）和 `network_token.token_data`，同时保留不等同于 PAN 的元数据，因此没有 PCI 认证的商户可以将加密凭证与 PCI Proxy 配合使用来进行网络令牌支付，PCI Proxy 会在转发时解析 DPAN。
  *另请参阅：[生成网络令牌加密凭证](https://docs.y.uno/zh-hans/reference/network-tokens/generate-network-token-cryptogram.md)*

* CHANGED **针对请求网络令牌的非 PCI 组织返回明确错误**\
  在 `POST /v1/network-tokens/cryptograms` 中，没有 PCI 认证的组织请求完整网络令牌时（`include_network_token` 为 `true` 或省略），现在会收到 `403 NETWORK_TOKEN_RETURN_NOT_ALLOWED`，并附有使用仅加密凭证模式的指引，而不是通用的 `PCI_MERCHANT_REQUIRED`。
  *另请参阅：[生成网络令牌加密凭证](https://docs.y.uno/zh-hans/reference/network-tokens/generate-network-token-cryptogram.md)*

**支付**

* ADDED **已上报交易中的卡 BIN**\
  `POST /v1/reporting/transactions` 在 `CARD` 事件上接受新的可选字段 `payment_method_details.card.bin`：卡片的 BIN，必须正好为 6 位或 8 位数字。Yuno 会将其保存在上报的支付中，并用于构建 BIN 级统计数据。不带该字段的事件行为与之前完全相同；不是 6 位或 8 位数字的值会按事件被拒绝，返回 `INVALID_EVENT`。
  *另请参阅：[上报 Yuno 之外的交易](https://docs.y.uno/zh-hans/reference/reporting/report-transactions.md)*

* CHANGED **BIN 级路由推荐**\
  当 `payment.payment_method.details.card.bin` 与已上报的历史记录匹配时，`POST /v1/routing/recommendations` 现在会基于 BIN 细分对候选项排序（先 8 位 BIN，再 6 位 BIN），否则回退到国家/地区和支付方式细分，因此没有历史记录的 BIN 返回的排序与之前相同。
  *另请参阅：[获取路由推荐](https://docs.y.uno/zh-hans/reference/organizations/routing/get-routing-recommendations.md)*

## v2026-07

*2026年7月11日*

**安全**

* ADDED **PCI Proxy**\
  您现在可以使用新的 `/v1/pci-proxy/forward` endpoint，通过 Yuno 的 PCI DSS Level 1 环境将存储的卡片数据发送到任意第三方 API，而无需让您的系统纳入 PCI 范围。
  *另请参阅：[PCI Proxy 概述](https://docs.y.uno/zh-hans/docs/security-and-compliance/pci-proxy/overview.md)*

## v2025-06

*2025年6月30日*

* CHANGED **客户的名字和姓氏改为可选**\
  通过 API 创建客户时，`first_name` 和 `last_name` 字段现在为可选。如果支付服务提供商需要这些信息，SDK 表单会提示用户填写。如果您未使用 Yuno SDK，请确保在服务提供商要求时，于创建支付时提供这些字段。
  *另请参阅：[创建客户](https://docs.y.uno/zh-hans/reference/customers/create-customer.md)*

**安全**

* ADDED **3DS SCA 豁免支持**\
  `payment_method.detail.card.three_d_secure` 下新增可选字段 `strong_customer_authentication_exemptions`。Yuno 还会将欺诈服务提供商的豁免建议沿完整支付路由传递到 3DS gateway，豁免类型会显示在支付响应、GET API 和 webhook 中。
  *另请参阅：[SCA 豁免](https://docs.y.uno/zh-hans/docs/payment-features/sca-exemptions.md)*

**支付**

* ADDED **航空行程类型字段**\
  `additional_data.airline` 中新增 `type` 枚举字段，用于指定行程类型：`ONE_WAY`、`ROUNDTRIP` 或 `MULTIPLE_DESTINATIONS`。如果您不使用航空数据，则无需更改集成。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

* ADDED **航段排序字段**\
  `additional_data.airline.legs` 中新增两个整数字段 `order` 和 `route_order`，分别描述航段在一条航线内和多条航线之间的顺序。如果您不使用航段数据，则无需更改集成。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

* ADDED **交通数据结构**\
  `additional_data` 中新增 `transportations` 对象数组，用于巴士、火车、轮船、有轨电车和汽车等非航空出行预订。每个条目支持行程段、乘客和票务子对象，包含出发/到达详情。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

## v2025-05

*2025年5月31日*

**安全**

* CHANGED **存储卡片的网络令牌注册**\
  启用网络令牌功能后，Yuno 现在会为 Vault 中注册并存储的所有卡片生成网络令牌。一次性使用的卡片除外。这符合 Visa 和 Mastercard 的网络令牌化标准，并提升了定期支付的安全性和可靠性。
  *另请参阅：[网络令牌](https://docs.y.uno/zh-hans/docs/security-and-compliance/network-tokens.md)*

**订阅**

* ADDED **订阅计费日期控制**\
  创建订阅时新增 `billing_date` 结构，可将计费时间定义为 `PREPAID`、`POSTDATE` 或每月的特定 `DAY`。该字段与 `frequency` 对象互斥。
  *另请参阅：[订阅指南](https://docs.y.uno/zh-hans/docs/payment-features/subscriptions.md)*

**支付**

* ADDED **支付方式过期日期字段**\
  对于支持该功能的异步支付方式，`payment_method_detail.wallet` 中现在会返回新的 `expirates_at` 时间戳字段。可用性取决于服务提供商的支持情况。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

> [accordion] 钱包响应中的 expirates\_at
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "payment_method": {
>   "type": "NU_PAY",
>   "payment_method_detail": {
>     "wallet": {
>       "expirates_at": "2025-05-14T15:06:48.383418Z"
>     }
>   }
> }
> ```

* ADDED **支付中的客户地理位置**\
  创建支付时，`customer_payer` 中新增 `geolocation` 对象，包含 `latitude` 和 `longitude` 字段。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

> [accordion] customer\_payer 中的 geolocation
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "customer_payer": {
>   "id": "b080db73-b12d-4710-a604-d659bce26f01",
>   "geolocation": {
>     "latitude": "-34.4720",
>     "longitude": "-58.5300"
>   }
> }
> ```

* ADDED **取消 PENDING 状态的 APM 支付**\
  您现在可以通过取消 endpoint 取消使用替代支付方式（APM）创建的 `PENDING` 支付。此前该功能仅限卡片交易。功能可用性取决于服务提供商的支持情况。
  *另请参阅：[取消支付](https://docs.y.uno/zh-hans/reference/payments/cancel-payment.md)*

**Webhook**

* ADDED **订阅 webhook URL 支持**\
  您现在可以在 Dashboard 的 Developers 部分定义 `webhook_url`，以接收订阅生命周期事件。不同的事件类型会产生不同的 webhook payload。
  *另请参阅：[配置 Webhooks](https://docs.y.uno/zh-hans/docs/webhooks/configure-webhooks.md)*

## v2025-04

*2025年4月30日*

**安全**

* CHANGED **移除 3DS 设置服务**\
  3DS 直接实现不再需要单独调用设置服务。数据收集和设置现在会在创建支付时自动处理，简化了集成流程。
  *另请参阅：[3D Secure](https://docs.y.uno/zh-hans/docs/security-and-compliance/3d-secure.md)*

**支付**

* ADDED **扩展的航段字段**\
  `additional_data.airline.legs` 中新增以下字段：`arrival_airport_country`、`arrival_airport_city`、`departure_airport_country` 和 `departure_airport_city`。此外，`airline.tickets[].issue` 中现在提供 `booking_system_code` 和 `booking_system_name`。如果您不使用航空数据，则无需更改集成。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

> [accordion] 包含新字段的航段
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "additional_data": {
>   "airline": {
>     "legs": [
>       {
>         "arrival_airport": "AMS",
>         "arrival_airport_country": "AR",
>         "arrival_airport_city": "BUE",
>         "departure_airport": "EZE",
>         "departure_airport_country": "AR",
>         "departure_airport_city": "BUE"
>       }
>     ],
>     "tickets": [
>       {
>         "issue": {
>           "booking_system_code": "TT01",
>           "booking_system_name": "booking system"
>         }
>       }
>     ]
>   }
> }
> ```

## v2025-03

*2025年3月31日*

**支付**

* ADDED **订单数据中的折扣数组**\
  `additional_data.order` 中新增 `discounts` 对象数组。每个折扣条目支持 `id`、`name` 和 `unit_amount` 字段。
  *另请参阅：[支付明细](https://docs.y.uno/zh-hans/docs/payment-features/payment-amount-details.md#discounts)*

> [accordion] additional\_data.order 中的 discounts
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "additional_data": {
>   "order": {
>     "discounts": [
>       {
>         "id": "XYZ",
>         "name": "Offer",
>         "unit_amount": "100"
>       }
>     ]
>   }
> }
> ```

* ADDED **路由规则中的 Monitors 标志**\
  支付响应的 `routing_rules` 对象中新增布尔字段 `monitors`，表示交易是否通过 Monitors 功能处理。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] routing\_rules 响应中的 monitors
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "routing_rules": {
>   "smart_routing": false,
>   "monitors": true,
>   "condition": {
>     "id": 133892,
>     "name": null,
>     "description": null
>   }
> }
> ```

**退款**

* ADDED **退款请求中的客户信息**\
  退款请求现在接受新的 `customer_payer` 对象，您可以向需要的服务提供商传递额外的客户数据（例如 `document`）。
  *另请参阅：[支付退款](https://docs.y.uno/zh-hans/reference/payments/refund-payment.md)*

> [accordion] 退款请求中的 customer\_payer
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "description": "Duplicate",
>   "reason": "REQUESTED_BY_CUSTOMER",
>   "merchant_reference": "AAB01-432245",
>   "customer_payer": {
>     "document": {
>       "document_type": "DNI",
>       "document_number": "38919283"
>     }
>   }
> }
> ```

## v2025-02

*2025年2月28日*

**Webhook**

* ADDED **webhook 的 OAuth2 认证**\
  Webhook 现在支持 OAuth2 认证。在 Dashboard 的 Developers/Webhooks 部分配置 `authentication_url`、`client_secret_key`、`client_id` 和 `grant_type`，以便 Yuno 获取令牌，安全地投递 webhook。
  *另请参阅：[配置 Webhooks](https://docs.y.uno/zh-hans/docs/webhooks/configure-webhooks.md)*

* ADDED **拒付 webhook 的专用 URL**\
  您现在可以专门为拒付事件配置专用的 webhook URL。此前，拒付与 Purchase 触发器捆绑在一起。请在 Dashboard 中更新 webhook 配置，以使用新的专用拒付 URL。
  *另请参阅：[配置 Webhooks](https://docs.y.uno/zh-hans/docs/webhooks/configure-webhooks.md)*

## v2025-01

*2025年1月31日*

**支付**

* ADDED **支付订单中的票务数据**\
  `additional_data.order` 中新增 `tickets` 对象数组，支持 `id`、`name`、`description`、`type`、`amount` 等字段，以及包含地址详情的嵌套 `event` 对象。
  *另请参阅：[支付状态和响应代码](https://docs.y.uno/zh-hans/reference/payments/status-and-response-codes/payment.md)*

> [accordion] additional\_data.order 中的 tickets
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "additional_data": {
>   "order": {
>     "tickets": [
>       {
>         "id": "XYZ",
>         "name": "Music",
>         "type": "VIRTUAL",
>         "amount": {
>           "currency": "COP",
>           "value": 5000
>         },
>         "event": {
>           "id": "ADMKASLMD",
>           "name": "Music festival",
>           "type": "FESTIVAL",
>           "date": "1990-02-28"
>         }
>       }
>     ]
>   }
> }
> ```

**订阅**

* ADDED **订阅首次支付验证**\
  创建订阅时新增布尔字段 `initial_payment_validation`。设为 `true` 时，仅在首次支付成功后才继续订阅；设为 `false` 时，无论首次支付结果如何都会继续订阅。
  *另请参阅：[创建订阅](https://docs.y.uno/zh-hans/reference/subscriptions/create-subscription.md)*

> [accordion] 订阅中的 initial\_payment\_validation
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "initial_payment_validation": true
> }
> ```

## v2024-12

*2024年12月31日*

**支付**

* ADDED **存储令牌的卡类型选择**\
  使用存储令牌支付时，您现在可以在 `payment_method.detail.card` 中将 `card_data.type` 指定为 `CREDIT` 或 `DEBIT`。适用于巴西等同一张卡可用于两种交易类型的市场。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

> [accordion] 为存储令牌指定 DEBIT 或 CREDIT
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "payment_method": {
>   "type": "CARD",
>   "vaulted_token": "e2961d37-9898-4bac-8408-cc9f02c11cc2",
>   "detail": {
>     "card": {
>       "card_data": {
>         "type": "DEBIT"
>       }
>     }
>   }
> }
> ```

* ADDED **账户注资交易详情**\
  `additional_data` 中新增 `account_funding` 对象，支持 `sender` 和 `beneficiary` 子对象，包含账户注资交易（AFT）所需的姓名、email 和证件字段。
  *另请参阅：[账户注资交易（AFT）](https://docs.y.uno/zh-hans/docs/payment-features/account-funding-transactions-afts.md)*

> [accordion] additional\_data 中的 account\_funding
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "additional_data": {
>   "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"
>       }
>     }
>   }
> }
> ```

* ADDED **存储凭证的网络交易 ID**\
  `payment_method.detail.card.stored_credentials` 中新增 `network_transaction_id` 字段。建议在使用已注册卡片的订阅支付中使用，以确保整个支付生命周期的可追溯性。
  *另请参阅：[存储凭证](https://docs.y.uno/zh-hans/docs/payment-features/stored-credentials.md)*

> [accordion] stored\_credentials 中的 network\_transaction\_id
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "payment_method": {
>   "type": "CARD",
>   "vaulted_token": "eb8caa17-6407-457b-960e-125d8d7a90c1",
>   "detail": {
>     "card": {
>       "stored_credentials": {
>         "reason": "CARD_ON_FILE",
>         "usage": "USED",
>         "network_transaction_id": "583103536844189"
>       }
>     }
>   }
> }
> ```

* ADDED **支付响应中的智能路由标志**\
  支付响应的 `routing_rules` 对象中新增布尔字段 `smart_routing`，表示交易是否通过智能路由功能处理。无需更改集成。
  *另请参阅：[创建支付](https://docs.y.uno/zh-hans/reference/payments/create-payment.md)*

> [accordion] routing\_rules 响应中的 smart\_routing
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "routing_rules": {
>   "smart_routing": false,
>   "condition": {
>     "id": 133892,
>     "name": null,
>     "description": null
>   }
> }
> ```

**订阅**

* ADDED **订阅试用期**\
  创建订阅时新增 `trial_period` 对象。定义 `billing_cycles` 和降低后的 `amount`，即可在正式计费开始前提供部分付费或完全免费的试用期。
  *另请参阅：[创建订阅](https://docs.y.uno/zh-hans/reference/subscriptions/create-subscription.md)*

> [accordion] 订阅请求中的 trial\_period
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "trial_period": {
>   "billing_cycles": "1",
>   "amount": {
>     "currency": "COP",
>     "value": 2500
>   }
> }
> ```

## v2024-11

*2024年11月30日*

**支付**

* ADDED **交易响应中的卡片有效期字段**\
  支付响应的 `transactions.card_data` 中现在会返回两个新字段 `expiration_month` 和 `expiration_year`。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] card\_data 中的 expiration\_month 和 expiration\_year
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "card_data": {
>   "holder_name": "Paco",
>   "iin": "48710499",
>   "brand": "VISA",
>   "fingerprint": "71000db4-f8e7-4ea0-a2cc-9d9ebb76a955",
>   "expiration_month": 3,
>   "expiration_year": 30
> }
> ```

* ADDED **市场拆分支付的收款方**\
  新的 Recipients API 允许您在发送拆分支付之前，注册带有多个服务提供商映射的收款方。涉及多个服务提供商时，请在 `split_marketplace` 数组中使用 `recipient_id`，而不是特定于服务提供商的 ID。
  *另请参阅：[拆分支付 Marketplace](https://docs.y.uno/zh-hans/docs/payment-features/split-payments-marketplace.md)*

> [accordion] 在 split\_marketplace 中使用 recipient\_id
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "split_marketplace": [
>   {
>     "amount": { "currency": "BRL", "value": 500 },
>     "recipient_id": "09d8bad7-4efe-47e2-b9ee-f4028460bab1",
>     "type": "PURCHASE"
>   },
>   {
>     "amount": { "currency": "BRL", "value": 500 },
>     "recipient_id": "d94e02c1-cc47-4e60-a20a-2b17fe58992d",
>     "type": "PURCHASE"
>   }
> ]
> ```

**退款**

* ADDED **退款交易的收据支持**\
  退款请求现在接受布尔字段 `response_additional_data.receipt` 和可选字段 `receipt_language`。设置后，退款处理完成时会在 `payment.transaction.receipt_url` 中返回收据 URL。
  *另请参阅：[支付退款](https://docs.y.uno/zh-hans/reference/payments/refund-payment.md)*

> [accordion] 退款时请求收据
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "description": "Duplicate",
>   "reason": "REQUESTED_BY_CUSTOMER",
>   "merchant_reference": "AAB01-432245",
>   "response_additional_data": {
>     "receipt": true,
>     "receipt_language": "ES"
>   }
> }
> ```

**订阅**

* ADDED **订阅的商品数据**\
  创建订阅时现在可以使用新的 `additional_data.order.items` 数组，向服务提供商传递商品级详情（category、id、name、quantity、unit\_amount）。
  *另请参阅：[创建订阅](https://docs.y.uno/zh-hans/reference/subscriptions/create-subscription.md)*

> [accordion] 订阅 additional\_data 中的 items
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "additional_data": {
>   "order": {
>     "items": [
>       {
>         "category": "art",
>         "id": "AA01",
>         "name": "Test item",
>         "quantity": 1,
>         "unit_amount": 10
>       }
>     ]
>   }
> }
> ```

**payout**

* ADDED **向存储令牌 payout**\
  Payouts API 现在支持在 `withdrawal_method` 中使用 `vaulted_token`，直接向已注册的信用卡或借记卡 payout。需要服务提供商支持。
  *另请参阅：[创建 payout](https://docs.y.uno/zh-hans/reference/payouts/create-payout.md)*

> [accordion] 向已注册卡片 payout
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "withdrawal_method": {
>   "type": "CARD",
>   "provider_id": "UNLIMINT",
>   "vaulted_token": "your-vaulted-token"
> }
> ```

## v2024-10

*2024年10月31日*

**订阅**

* ADDED **订阅的智能重试机制**\
  订阅中被拒绝的交易现在支持智能重试，借助机器学习确定最佳重试时机。重试计划为 96 小时内尝试七次。可通过 Dashboard 的 Subscriptions 部分配置。
  *另请参阅：[交易重试](https://docs.y.uno/zh-hans/docs/payment-features/transaction-retries.md)*

**支付**

* ADDED **父支付方式类型字段**\
  `transactions.payment_method` 中会返回新的 `parent_payment_method_type` 字段，表示直接钱包集成中使用的钱包服务提供商（`APPLE_PAY`、`GOOGLE_PAY` 或 `CLICK_TO_PAY`）。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] 交易中的 parent\_payment\_method\_type
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "transactions": {
>   "payment_method": {
>     "vaulted_token": "29b44e45-57fe-41b0-81c8-586deeb699b2",
>     "type": "CARD",
>     "parent_payment_method_type": "CLICK_TO_PAY"
>   }
> }
> ```

* ADDED **交易数据中的连接 ID**\
  每个交易对象中会返回新的 `connection_data.id` 字段，提供处理该交易所用支付连接的唯一标识符。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] 交易中的 connection\_data.id
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "connection_data": {
>   "id": "88292fd3-bf5b-4b23-bb95-7186ba4e7f88"
> }
> ```

* ADDED **取消交易的收据支持**\
  取消请求现在接受布尔字段 `response_additional_data.receipt`。设置后，取消处理完成时会在 `payment.transaction.receipt_url` 中返回收据 URL。
  *另请参阅：[取消支付](https://docs.y.uno/zh-hans/reference/payments/cancel-payment.md)*

> [accordion] 取消时请求收据
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "description": "Duplicate",
>   "reason": "REQUESTED_BY_CUSTOMER",
>   "merchant_reference": "AAB01-432245",
>   "response_additional_data": {
>     "receipt": true
>   }
> }
> ```

* ADDED **支付请求中的配送对象**\
  创建支付时新增 `shipping` 对象，支持 `type`、`description`、`carrier` 和 `deliver_at` 字段，用于指定配送详情。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] 支付请求中的 shipping
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "shipping": {
>   "type": "STANDARD",
>   "description": "Test shipment",
>   "carrier": "UPS",
>   "deliver_at": "2024-09-17T20:43:54.786342Z"
> }
> ```

## v2024-09

*2024年9月30日*

**支付**

* ADDED **支付链接注册流程**\
  支付链接现在支持在支付成功时注册卡片。创建支付链接时设置 `one_time_use=true` 和 `vault_on_success=true`，即可在支付成功后为客户生成新的 `vaulted_token`。
  *另请参阅：[通过支付链接注册银行卡](https://docs.y.uno/zh-hans/docs/payment-features/enrollment/enroll-cards-with-payment-link.md)*

* ADDED **市场拆分支付**\
  支付请求中新增 `split_marketplace` 数组，商户可将一笔支付分配给多个收款方，并可配置金额、类型（`PURCHASE`、`COMMISSION`）和责任设置。需要服务提供商支持。
  *另请参阅：[拆分支付 Marketplace](https://docs.y.uno/zh-hans/docs/payment-features/split-payments-marketplace.md)*

> [accordion] 支付请求中的 split\_marketplace
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "split_marketplace": [
>   {
>     "provider_recipient_id": "recipient_123",
>     "type": "PURCHASE",
>     "amount": { "value": 7500, "currency": "COP" },
>     "liability": {
>       "processing_fee": "MERCHANT",
>       "chargebacks": false
>     }
>   },
>   {
>     "provider_recipient_id": "recipient_456",
>     "type": "COMMISSION",
>     "amount": { "percentage": 30, "currency": "COP" },
>     "liability": {
>       "processing_fee": "RECIPIENT",
>       "chargebacks": true
>     }
>   }
> ]
> ```

## v2024-08

*2024年8月31日*

**订阅**

* ADDED **订阅协议 ID 字段**\
  `payment_method.detail.card.stored_credentials` 中新增 `subscription_agreement_id` 字段，某些市场和处理机构（例如墨西哥）要求在订阅相关支付中包含与客户之间的协议 ID。
  *另请参阅：[存储凭证](https://docs.y.uno/zh-hans/docs/payment-features/stored-credentials.md#subscription-agreement)*

> [accordion] stored\_credentials 中的 subscription\_agreement\_id
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "payment_method": {
>   "type": "CARD",
>   "vaulted_token": "eb8caa17-6407-457b-960e-125d8d7a90c1",
>   "detail": {
>     "card": {
>       "stored_credentials": {
>         "reason": "CARD_ON_FILE",
>         "usage": "USED",
>         "subscription_agreement_id": "AA0001"
>       }
>     }
>   }
> }
> ```

**payout**

* ADDED **引用交易的 payout**\
  向卡片支付方式 payout 现在支持在 `withdrawal_method` 中使用 `original_transaction_id` 字段，商户可以使用先前交易的卡片数据发起 payout，而无需满足 PCI 合规要求。
  *另请参阅：[Payouts](https://docs.y.uno/zh-hans/docs/payouts-and-disputes/payouts.md)*

> [accordion] 引用原始交易的 payout
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "withdrawal_method": {
>   "type": "STP_PAYOUT",
>   "provider_id": "STP",
>   "original_transaction_id": "9104911d-5df9-429e-8488-ad41abea1a4b"
> }
> ```

**支付**

* ADDED **支付中的货币转换**\
  `amount` 结构中新增 `currency_conversion` 对象，您可以传递 `provider_currency_conversion_id`、`cardholder_currency` 和 `cardholder_amount`，用于双币种结算。请联系您的技术客户经理启用。
  *另请参阅：[货币转换](https://docs.y.uno/zh-hans/docs/additional-services/currency-conversion.md)*

> [accordion] amount 中的 currency\_conversion
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "amount": {
>   "currency": "COP",
>   "value": 5000,
>   "currency_conversion": {
>     "provider_currency_conversion_id": "AAA01SADOIAJSDLAKSJM",
>     "cardholder_currency": "ARS",
>     "cardholder_amount": 1146.55
>   }
> }
> ```

* ADDED **ISO 8583 响应代码和消息**\
  `transactions.provider_data` 中现在会返回两个新字段 `iso8583_response_code` 和 `iso8583_response_message`，提供来自服务提供商的直接 ISO 8583 响应。对于巴西服务提供商，ABECS 代码也会显示在这些字段中。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] provider\_data 中的 iso8583 字段
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "provider_data": {
>   "id": "ADYEN",
>   "transaction_id": "FLX4WSXF7SFZDV65",
>   "iso8583_response_code": "05",
>   "iso8583_response_message": "Approved or completed successfully"
> }
> ```

* ADDED **按支付 ID 取消或退款支付**\
  新的 endpoint 允许您仅提供 `payment_id` 即可取消或退款支付，无需 `transaction_id`。现有的交易级 endpoint 仍然可用。
  *另请参阅：[取消或退款支付](https://docs.y.uno/zh-hans/reference/payments/cancel-or-refund-a-payment.md)*

* CHANGED **交易历史改为按需启用**\
  支付对象中的 `transactions_history` 数组现在仅在创建支付时设置了 `response_additional_data.transactions_history: true` 才会填充。未发送该标志时，支付 webhook 和响应会以空数组 `[]` 返回 `transactions_history`，以减小 payload 大小。拒付事件仍会自动包含完整历史记录。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md) · [Payload 与示例](https://docs.y.uno/zh-hans/docs/webhooks/object-and-examples.md)*

## v2024-07

*2024年7月31日*

**支付**

* ADDED **原生支付的钱包加密凭证**\
  创建支付时，`payment_method.detail.wallet` 中新增 `cryptogram` 字段，无需使用 Yuno SDK 即可直接集成 Apple Pay 和 Google Pay API。
  *另请参阅：[直接集成](https://docs.y.uno/zh-hans/docs/wallets/apple-pay/apple-pay-direct-integration.md)*

* ADDED **订单数据中的税费数组**\
  `additional_data.order` 中新增 `taxes` 对象数组，支持每笔支付包含多条税费明细。原有的顶层 `tax` 对象仍受支持，但建议使用新数组以更好地管理税费。
  *另请参阅：[支付明细](https://docs.y.uno/zh-hans/docs/payment-features/payment-amount-details.md#taxes)*

**退款**

* ADDED **退款重试的简化模式**\
  退款请求现在支持 `simplified_mode: true` 标志。Yuno 会返回 `DECLINED` 状态，并在 24 小时内自动重试退款最多五次，同时将支付保持在 `PENDING`/`RETRY_IN_PROCESS` 状态。
  *另请参阅：[交易重试](https://docs.y.uno/zh-hans/docs/payment-features/transaction-retries.md)*

> [accordion] 退款请求中的 simplified\_mode
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "simplified_mode": true,
>   "reason": "REQUESTED_BY_CUSTOMER",
>   "merchant_reference": "AA01"
> }
> ```

## v2024-06

*2024年6月30日*

**payout**

* ADDED **payout 产品发布**\
  Yuno Payouts 现已作为新的 API 产品推出，可通过多个服务提供商，经由银行、卡片和钱包向受益人（用户、商户、服务提供商、客户）发送资金。请参阅 payout 文档开始使用。
  *另请参阅：[Payouts](https://docs.y.uno/zh-hans/docs/payouts-and-disputes/payouts.md)*

**支付**

* ADDED **支付方式 fingerprint 字段**\
  卡片交易的支付方式对象和支付响应中会返回新的 `fingerprint` 字段。它可在您组织内的多个 `vaulted_tokens` 之间唯一标识一张卡片。
  *另请参阅：[注册支付方式](https://docs.y.uno/zh-hans/docs/payment-features/enrollment/enroll-payment-methods.md#step-5-retrieve-payment-methods)*

## v2024-05

*2024年5月31日*

**支付**

* ADDED **捕获重试的简化模式**\
  捕获请求中新增布尔字段 `simplified_mode`。设为 `true` 时，Yuno 会立即返回 `SUCCEEDED` 状态，并在 24 小时内自动重试失败的交易最多五次。
  *另请参阅：[交易重试](https://docs.y.uno/zh-hans/docs/payment-features/transaction-retries.md)*

> [accordion] 捕获请求中的 simplified\_mode
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "amount": { "currency": "COP", "value": "5000" },
>   "simplified_mode": true,
>   "reason": "PRODUCT_CONFIRMED",
>   "merchant_reference": "AA01"
> }
> ```

* ADDED **Pluxee 支付的福利类型字段**\
  智利 Pluxee 支付方式的支付对象中新增 `benefity_type` 字段。使用 `DIRECT` 工作流时必填。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

## v2024-04

*2024年4月30日*

* ADDED **支付响应中的路由规则**\
  支付响应中现在会返回新的 `routing_rules` 对象，其中的 `condition` 子对象包含创建支付时所应用路由规则的 `id`、`name` 和 `description`。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] 支付响应中的 routing\_rules
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "routing_rules": {
>   "condition": {
>     "id": 76152,
>     "name": "PAYMENTS_COLOMBIA",
>     "description": "This condition is set for payments made only in Colombia"
>   }
> }
> ```

## v2024-03

*2024年3月31日*

**支付**

* ADDED **商户客户创建时间字段**\
  客户对象和 `customer_payer` 对象中新增 `merchant_customer_created_at` 字段（ISO 8601 格式），表示客户在商户平台上注册的日期。
  *另请参阅：[客户对象](https://docs.y.uno/zh-hans/reference/customers/the-customer-object.md)*

* ADDED **结账会话中的分期付款方案**\
  结账会话对象中新增 `installments.plan` 数组和 `installments.plan_id` 字段，可为每个会话指定自定义分期付款方案。如果省略，则使用账户级方案。
  *另请参阅：[创建结账会话](https://docs.y.uno/zh-hans/reference/checkout-sessions/create-checkout-session.md)*

* ADDED **支付链接的 callback URL**\
  创建支付链接时新增 `callback_url` 字段，用于指定客户完成支付后重定向到的 URL。
  *另请参阅：[支付链接对象](https://docs.y.uno/zh-hans/reference/payment-links/the-payment-link-object.md)*

## v2024-02

*2024年2月29日*

* ADDED **地址对象中的街区字段**\
  客户对象的 `shipping_address` 和 `billing_address` 中新增 `neighborhood` 字段（3 到 255 个字符）。
  *另请参阅：[客户对象](https://docs.y.uno/zh-hans/reference/customers/the-customer-object.md)*

**支付**

* ADDED **交易历史数组**\
  支付对象中现在会返回新的 `transactions_history` 数组，列出与该支付关联的所有交易，包括跨多个服务提供商路由的交易。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

* ADDED **订单数据中的小费金额字段**\
  `additional_data.order` 中新增 `tip_amount` 字段。该字段仅供参考：小费金额已包含在交易总额中，不会另外累加。
  *另请参阅：[支付明细](https://docs.y.uno/zh-hans/docs/payment-features/payment-amount-details.md)*

> [accordion] additional\_data.order 中的 tip\_amount
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> "additional_data": {
>   "order": {
>     "tip_amount": 50.00
>   }
> }
> ```

* ADDED **捕获进行中的错误消息**\
  当已有一次捕获正在进行时又尝试捕获，API 现在会返回特定的错误响应：`INVALID_STATUS`，消息为“Invalid transaction status. Transaction already in progress”。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

> [accordion] INVALID\_STATUS 错误响应
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "code": "INVALID_STATUS",
>   "messages": [
>     "Invalid transaction status. Transaction already in progress"
>   ]
> }
> ```

## v2024-01

*2024年1月31日*

* ADDED **交易中的服务提供商数据字段**\
  `transactions.provider_data` 中现在会返回三个新字段：`response_code`（服务提供商结果代码）、`third_party_account_id`（处理机构账户 ID）和 `third_party_transaction_id`（处理机构交易 ID）。无需更改集成。
  *另请参阅：[支付对象](https://docs.y.uno/zh-hans/reference/payments/the-payment-object.md)*

**安全**

* ADDED **存储凭证支持**\
  Yuno 现在支持 Visa 和 Mastercard 的存储凭证规则，商户可以通过 `payment_method.detail.card` 中的 `stored_credentials` 结构，将支付标记为客户发起的交易（CIT）或商户发起的交易（MIT）。
  *另请参阅：[存储凭证](https://docs.y.uno/zh-hans/docs/payment-features/stored-credentials.md)*


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