- 身份验证:如何对 API 请求进行身份验证
- 环境:sandbox 和生产环境的基础 URL
- OpenAPI 规范:机器可读的 API 定义
本概览根据完整的 OpenAPI 规范(172 个操作)生成。
其中 39 个操作已经过 sandbox 测试,收录在
openapi/yuno_sandbox_tested.json 中。AI Caller
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /smart-support/external/payments | 针对放弃的用户流程发起挽回联系 | — |
| POST | /smart-support/external/payments/recover | 创建挽回 | — |
账户(银行连接)
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /banking/accounts | 创建账户(银行连接) | — |
| DELETE | /banking/accounts/\{account_id\} | 关闭账户(银行连接) | — |
| GET | /banking/accounts/\{account_id\} | 获取账户详情(银行连接) | — |
| PATCH | /banking/accounts/\{account_id\} | 更新账户(银行连接) | — |
Checkout Builder
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /checkouts | 列出 Checkout | — |
| POST | /checkouts | 创建 Checkout | 是 |
| GET | /checkouts/\{checkout_code\} | 获取 Checkout 配置 | — |
| PATCH | /checkouts/\{checkout_code\} | 管理 Checkout 生命周期 | 是 |
| PUT | /checkouts/\{checkout_code\} | 发布 Checkout 配置 | 是 |
结账会话
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /checkout/sessions | 创建结账会话 | — |
| GET | /checkout/sessions/\{checkout_session\} | 检索结账会话 | — |
| PATCH | /checkout/sessions/\{checkout_session\} | 更新会话 | — |
| GET | /checkout/sessions/\{checkout_session\}/payment-methods | 检索结账可用的支付方式 | — |
通讯营销活动
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /campaigns | 获取营销活动 | — |
| POST | /campaigns | 创建营销活动 | — |
| GET | /campaigns/\{campaign_id\} | 获取营销活动 | — |
| PATCH | /campaigns/\{campaign_id\} | 更新营销活动 | — |
| POST | /campaigns/\{campaign_id\}/rules | 创建规则 | — |
| GET | /campaigns/\{campaign_id\}/rules/\{rule_id\} | 获取规则 | — |
| PATCH | /campaigns/\{campaign_id\}/rules/\{rule_id\} | 更新规则 | — |
| PATCH | /campaigns/\{campaign_id\}/rules/\{rule_id\}/status | 更新状态 | — |
汇率
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /currency-conversion | 获取汇率 | — |
客户会话注册
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /customers/sessions | 创建客户会话 | — |
客户
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /customers | 按外部 ID 检索客户 | — |
| POST | /customers | 创建客户 | — |
| DELETE | /customers/\{customer_id\} | 删除客户 | — |
| GET | /customers/\{customer_id\} | 检索客户 | — |
| PATCH | /customers/\{customer_id\} | 更新客户 | — |
试运行
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /dry-run/provider-events | 登记服务提供商的请求、响应和 webhook payload | 是 |
实体(银行连接)
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /banking/entities | 创建实体(银行连接) | — |
| GET | /banking/entities/\{entity_id\} | 获取实体详情(银行连接) | — |
| PATCH | /banking/entities/\{entity_id\} | 更新实体(银行连接) | — |
实体 onboarding(银行连接)
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /banking/entities/\{entity_id\}/onboardings | 创建实体 onboarding(银行连接) | — |
| GET | /banking/entities/\{entity_id\}/onboardings/\{onboarding_id\} | 获取实体 onboarding 状态(银行连接) | — |
| PATCH | /banking/entities/\{entity_id\}/onboardings/\{onboarding_id\} | 更新实体 onboarding(银行连接) | — |
| POST | /banking/entities/\{entity_id\}/onboardings/\{onboarding_id\}/cancel | 取消实体 onboarding(银行连接) | — |
实体转账(银行连接)
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /banking/accounts/\{account_id\}/transfers/\{transfer_id\} | 获取实体转账状态(银行连接) | — |
| POST | /banking/accounts/\{account_id\}/transfers/\{transfer_id\}/cancel | 取消实体转账(银行连接) | — |
| POST | /banking/transfers | 发起实体转账(银行连接) | — |
分期付款
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /installments-plans | 获取分期付款计划 | — |
| POST | /installments-plans | 创建分期付款计划 | — |
| DELETE | /installments-plans/\{installment_code\} | 删除分期付款计划 | — |
| GET | /installments-plans/\{installment_code\} | 按 ID 获取分期付款计划 | — |
| PATCH | /installments-plans/\{installment_code\} | 更新计划 | — |
网络令牌
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /network-tokens/cryptograms | 生成网络令牌加密凭证 | — |
组织
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /connections | 创建连接 | 是 |
| GET | /connections/\{connection_id\} | 检索连接 | — |
| GET | /connections/catalog/\{provider_id\} | 获取服务提供商目录 | — |
| GET | /organizations/account-groups | 列出账户组 | — |
| POST | /organizations/account-groups | 创建账户组 | — |
| DELETE | /organizations/account-groups/\{account_group_id\} | 删除账户组 | — |
| GET | /organizations/account-groups/\{account_group_id\} | 检索账户组 | — |
| PATCH | /organizations/account-groups/\{account_group_id\} | 更新账户组 | — |
| GET | /organizations/account-groups/\{account_group_id\}/accounts | 列出组内账户 | — |
| POST | /organizations/account-groups/\{account_group_id\}/accounts | 创建账户 | — |
| DELETE | /organizations/account-groups/\{account_group_id\}/accounts/\{account_id\} | 从组中移除账户 | — |
| GET | /organizations/accounts | 列出账户 | — |
| DELETE | /organizations/accounts/\{account_id\} | 删除账户 | — |
| GET | /organizations/accounts/\{account_id\} | 检索账户 | — |
| PATCH | /organizations/accounts/\{account_id\} | 更新账户 | — |
| POST | /organizations/authenticate | 验证白标用户身份 | — |
| GET | /organizations/permissions-catalog | 列出权限目录 | — |
| GET | /organizations/roles | 列出角色 | — |
| POST | /organizations/roles | 创建角色 | — |
| DELETE | /organizations/roles/\{role_id\} | 删除角色 | — |
| PATCH | /organizations/roles/\{role_id\} | 更新角色 | — |
| GET | /organizations/users | 列出用户 | — |
| POST | /organizations/users | 创建用户 | — |
| DELETE | /organizations/users/\{user_id\} | 删除用户 | — |
| GET | /organizations/users/\{user_id\} | 检索用户 | — |
| PATCH | /organizations/users/\{user_id\} | 更新用户 | — |
| GET | /organizations/users/\{user_id\}/account-group-permissions | 检索用户的账户组权限 | — |
| PATCH | /organizations/users/\{user_id\}/account-group-permissions | 更新用户的账户组权限 | — |
| PUT | /organizations/users/\{user_id\}/account-group-permissions | 替换用户的账户组权限 | — |
| DELETE | /organizations/users/\{user_id\}/account-group-permissions/\{account_group_id\} | 删除用户的账户组权限 | — |
| GET | /organizations/users/\{user_id\}/account-permissions | 检索用户的账户权限 | — |
| PATCH | /organizations/users/\{user_id\}/account-permissions | 更新用户的账户权限 | — |
| PUT | /organizations/users/\{user_id\}/account-permissions | 替换用户的账户权限 | — |
| DELETE | /organizations/users/\{user_id\}/account-permissions/\{account_id\} | 删除用户的账户权限 | — |
| GET | /routing | 列出路由 | — |
| POST | /routing | 创建路由 | 是 |
| GET | /routing/\{routing_id\} | 检索路由 | — |
| PATCH | /routing/\{routing_id\} | 更新路由 | 是 |
| POST | /routing/recommendations | 获取路由推荐 | — |
支付链接
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /payment-links | 创建支付链接 | — |
| GET | /payment-links/\{code\} | 检索支付链接 | — |
| POST | /payment-links/\{code\}/cancel | 取消支付链接 | — |
支付方式(Checkout)
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /checkout/customers/sessions/\{customer_session\}/payment-methods | 检索可注册的支付方式 | — |
| POST | /customers/payment-methods/\{payment_method_id\}/unenroll | 取消注册支付方式 | — |
| POST | /customers/sessions/\{customer_session\}/payment-methods | 注册支付方式 | — |
| GET | /payment-methods/\{payment_method_id\} | 按 ID 检索支付方式 | — |
支付方式(直接工作流)
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /customers/\{customer_id\}/payment-methods | 检索已注册的支付方式 | — |
| POST | /customers/\{customer_id\}/payment-methods | 注册支付方式 | — |
| GET | /customers/\{customer_id\}/payment-methods/\{payment_method_id\} | 按 ID 检索已注册的支付方式 | — |
| POST | /customers/\{customer_id\}/payment-methods/\{payment_method_id\}/unenroll | 取消注册支付方式 | — |
| PATCH | /payment-methods/\{payment_method_id\} | 将支付方式重新分配给其他客户 | — |
| POST | /payment-methods/account-updater | 为 Account Updater 注册已存储的卡 | — |
支付
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /issuers | 检索发卡机构 | — |
| GET | /payments | 按商户订单 ID 检索支付 | — |
| POST | /payments | 创建支付 | 是 |
| POST | /payments/\{id\}/transactions/\{transaction_id\}/refund | 支付退款 | — |
| GET | /payments/\{payment_id\} | 按 ID 检索支付 | — |
| POST | /payments/\{payment_id\}/cancel-or-refund | 取消或退款支付 | — |
| POST | /payments/\{payment_id\}/fulfillments | 通知履约 | — |
| POST | /payments/\{payment_id\}/transactions/\{transaction_id\}/cancel | 取消支付 | — |
| POST | /payments/\{payment_id\}/transactions/\{transaction_id\}/cancel-or-refund | 按交易取消或退款支付 | — |
| POST | /payments/\{payment_id\}/transactions/\{transaction_id\}/capture | 捕获授权 | — |
| PATCH | /payments/\{payment_id\}/transactions/\{transaction_id\}/dispute | 更新争议 | — |
| POST | /payments/\{payment_id\}/transactions/\{transaction_id\}/dispute | 对拒付提出争议 | — |
Payouts
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /payouts | 按商户参考号检索 payout | — |
| POST | /payouts | 创建 payout | — |
| GET | /payouts/\{payout_id\} | 按 ID 检索 payout | — |
PCI Proxy
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /pci-proxy/destinations | 列出目标地址 | — |
| POST | /pci-proxy/destinations | 注册目标地址 | — |
| DELETE | /pci-proxy/destinations/\{id\} | 移除目标地址 | — |
| POST | /pci-proxy/destinations/\{id\}/disable | 停用目标地址 | — |
| POST | /pci-proxy/destinations/\{id\}/enable | 启用目标地址 | — |
| POST | /pci-proxy/forward | 调用转发代理 | — |
计划
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /plans | 列出计划 | — |
| POST | /plans | 创建计划 | — |
| GET | /plans/\{plan_id\} | 检索计划 | — |
| POST | /plans/\{plan_id\}/status | 取消计划 | — |
预扣款通知
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /predebit-notify | 按商户参考号检索预扣款通知 | — |
| POST | /predebit-notify | 创建预扣款通知 | 是 |
| GET | /predebit-notify/\{pre_debit_notification_id\} | 按 ID 检索预扣款通知 | — |
Marketplace 收款方
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /onboardings/\{onboarding_id\}/transfers | 获取转账 | — |
| POST | /payments/\{payment_id\}/transactions/\{transaction_id\}/split-marketplace/transfer-reversal | 创建转账冲正 | 是 |
| GET | /recipients | 列出收款方 | — |
| POST | /recipients | 创建收款方 | — |
| DELETE | /recipients/\{recipient_id\} | 删除收款方 | — |
| GET | /recipients/\{recipient_id\} | 获取收款方 | — |
| PATCH | /recipients/\{recipient_id\} | 更新收款方 | — |
| POST | /recipients/\{recipient_id\}/onboardings | 创建 onboarding | — |
| GET | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\} | 获取 onboarding | — |
| PATCH | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\} | 更新 onboarding | — |
| POST | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\}/block | 冻结收款方 | — |
| POST | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\}/cancel | 取消 onboarding | — |
| POST | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\}/continue | 继续 onboarding | — |
| POST | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\}/transfer | 创建转账 | 是 |
| POST | /recipients/\{recipient_id\}/onboardings/\{onboarding_id\}/unblock | 解冻收款方 | — |
| GET | /recipients/\{recipient_id\}/transfers | 获取转账 | — |
| POST | /recipients/onboardings/reverse-transfer/\{transfer_id\} | 创建转账撤回 | 是 |
| GET | /transfers/\{transfer_id\} | 获取转账 | — |
交易上报
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /reporting/transactions | 上报 Yuno 之外的交易 | — |
报告
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /reports | 创建报告 | — |
| GET | /reports/\{report_id\} | 检索报告 | — |
| GET | /reports/\{report_id\}/download | 下载报告 | — |
| GET | /reports/list | 列出所有报告 | — |
卖家
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /sellers | 创建卖家 | — |
| DELETE | /sellers/\{merchant_seller_id\} | 删除卖家 | — |
| GET | /sellers/\{merchant_seller_id\} | 获取卖家 | — |
| PUT | /sellers/\{merchant_seller_id\} | 更新卖家 | — |
订阅
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /subscriptions | 列出订阅 | — |
| POST | /subscriptions | 创建订阅 | — |
| POST | /subscriptions/\{id\}/retry | 重试订阅 | — |
| GET | /subscriptions/\{subscription_id\} | 检索订阅 | — |
| PATCH | /subscriptions/\{subscription_id\} | 更新订阅 | — |
| POST | /subscriptions/\{subscription_id\}/cancel | 取消订阅 | — |
| POST | /subscriptions/\{subscription_id\}/pause | 暂停订阅 | — |
| GET | /subscriptions/\{subscription_id\}/payments | 列出订阅支付 | — |
| POST | /subscriptions/\{subscription_id\}/plan | 更改订阅计划 | — |
| POST | /subscriptions/\{subscription_id\}/resume | 恢复订阅 | — |
3D Secure 设置
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /three-d-secure/setups | 创建 3DS2 设置 | — |
转账
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| POST | /split-marketplace/transfers | 创建独立转账 | 是 |
| GET | /split-marketplace/transfers/\{transfer_id\} | 获取独立转账 | — |
| POST | /split-marketplace/transfers/\{transfer_id\}/reverse | 撤回独立转账 | 是 |
Webhooks
| 方法 | Endpoint | 描述 | 幂等 |
|---|---|---|---|
| GET | /webhooks | 列出 Webhook | — |
| POST | /webhooks | 创建 Webhook | — |
| DELETE | /webhooks/\{webhook_id\} | 删除 Webhook | — |
| GET | /webhooks/\{webhook_id\} | 检索 Webhook | — |
| PATCH | /webhooks/\{webhook_id\} | 更新 Webhook | — |