# Clink Documentation: Chinese ## Chinese ### 知识库 #### 开始使用 - [简介](https://docs.clinkbill.com/cn/index.md): Clink 希望提供一个简洁高效的订阅管理和支付解决方案。 - [基本支付流程](https://docs.clinkbill.com/cn/how-payments-work.md): 接入前先分清 Checkout Session、Order 和商户订单。 - [快速开始](https://docs.clinkbill.com/cn/quickstart.md): 在沙盒跑通一笔完整支付,从创建 Session 到确认收款。 ##### 更新日志 - [2026 年 7 月更新日志](https://docs.clinkbill.com/cn/changelog/july-2026.md): Agentic Payment、支付链接与跨币种支付能力更新 - [2026 年 6 月更新日志](https://docs.clinkbill.com/cn/changelog/june-2026.md): 订阅编排、智能路由与产品矩阵财务能力更新 #### 接入 - [订阅支付](https://docs.clinkbill.com/cn/subscriptions.md): 从周期价格到首次订阅、续费、取消和升降级的完整流程。 - [优惠与促销码](https://docs.clinkbill.com/cn/promotions.md): Coupon 和 Promotion Code 怎么建,以及在各种接入方式里怎么应用。 - [用 AI Agent 接入](https://docs.clinkbill.com/cn/agent-integration.md): 把提示词发给正在写代码的 agent,让它完成接入。 ##### 接入方式 - [选择接入方式](https://docs.clinkbill.com/cn/choose-integration.md): 三种收银台承载方式和四条服务端路径,分别适合什么场景。 - [Hosted Checkout 接入](https://docs.clinkbill.com/cn/build-integration.md): 后端、前端、Webhook 三块分别要写什么代码。 - [Elements 嵌入式收银台](https://docs.clinkbill.com/cn/elements.md): 把 Clink 的支付输入嵌进商户自己的结账页,服务端仍然负责创建 Session。 #### Agent 解决方案 - [Clink Agent Pay 快速入门](https://docs.clinkbill.com/cn/guides/agent/get_started.md): 了解 Clink Agent Pay、支付协议路由、Vault Services 和 Agent Portal 选项。 - [Wallet Service](https://docs.clinkbill.com/cn/guides/agent/wallet_service.md): 查询用户钱包、管理支付卡,并建立购买授权。 - [UCP Pay](https://docs.clinkbill.com/cn/guides/agent/ucp_pay.md): 使用 Clink UCP 完成商品结账。 - [Quick Pay](https://docs.clinkbill.com/cn/guides/agent/quick_pay.md): 创建并跟踪 Agent Payment Session。 ##### 选择接入方案 - [选择 Agent 接入方案](https://docs.clinkbill.com/cn/guides/agent/overview.md): 先确定角色:普通 Agent 用户直接使用 MCP,Agent 平台再选择 MCP 或 API 接入方案。 - [本地 Agent 快速接入](https://docs.clinkbill.com/cn/guides/agent/quickstart.md): 在 Agent Host 中安装 Clink Skill、连接 MCP 并完成钱包授权。 ###### Agent 平台开发者 - [如何对接 MCP](https://docs.clinkbill.com/cn/guides/agent/platform_integration/mcp_integration.md): 准备 Clink 平台凭据,配置 Agent 的 system prompt,并在 Agent 框架中接入 Clink MCP。 - [如何对接 RESTful API](https://docs.clinkbill.com/cn/guides/agent/platform_integration/restful_api.md): 介绍如何通过 Clink RESTful API 接入 Customer Portal API 和 Browser Pay,构建 Agent 支付能力。 - [如何对接 Vault SDK](https://docs.clinkbill.com/cn/guides/agent/platform_integration/vault_sdk.md): 配置 Agent Vault SDK 的平台边界,避免重复阅读 SDK 支付指南。 - [如何获取平台凭据](https://docs.clinkbill.com/cn/guides/agent/platform_credentials.md): 向 Clink 申请 client_id 和 client_secret,并了解 Pre-registration、CIMD 和 DCR 三种注册方式分别适用于哪种接入。 ##### Browser Pay - [Browser Pay](https://docs.clinkbill.com/cn/guides/agent/browser_pay.md): 在商户网页中使用钱包支付凭证,并上报实际支付结果。 - [解密](https://docs.clinkbill.com/cn/guides/agent/browser_pay/decryption.md): 使用解密范例读取支付凭证,并填写商户结账所需的卡信息。 ##### Agent Vault SDK - [Agent Vault SDK](https://docs.clinkbill.com/cn/guides/agent/vault_sdk.md): 让 Agent 通过商户自己的 PSP 完成支付,真实卡数据始终留在 Clink PCI 边界内。 - [SDK API 参考](https://docs.clinkbill.com/cn/guides/agent/vault_sdk/api_reference.md): Agent Vault SDK 的客户端参数、账户级 API、attach 参数与结账方法。 ##### Agent Portal - [Agent Portal](https://docs.clinkbill.com/cn/api-reference/agent-portal/overview.md): 先了解 Agent Portal 提供的能力,再选择通过 MCP 使用托管 Portal,或通过 API 构建定制 Portal。 - [Portal token](https://docs.clinkbill.com/cn/api-reference/agent-portal/portal_token.md): 使用平台 client token 换取具有读取和受限写入权限的 Portal 用户 token。 - [Portal 接口](https://docs.clinkbill.com/cn/api-reference/agent-portal/portal_apis.md): 使用 Portal token 读取账户数据、创建带短期激活链接的购买指令、绑定或删除支付方式、获取支付凭证,并回报商户支付结果。 #### 配置与上线 - [密钥与 Webhook 配置](https://docs.clinkbill.com/cn/integration.md): API 密钥的生成、轮换和限制,以及 Webhook 的注册、验签和投递规则。 - [上线检查](https://docs.clinkbill.com/cn/go-live.md): 切生产前要验证的场景,要改的配置,以及出问题时怎么查。 - [SFTP配置](https://docs.clinkbill.com/cn/finance/sftp.md): 通过 SFTP 下载每日结算文件 #### 介绍 ##### 商户后台管理 - [商户](https://docs.clinkbill.com/cn/guides/account/merchant.md): 业务运行主体 - [用户](https://docs.clinkbill.com/cn/guides/account/user.md): 管理用户账户和权限 ##### 资源说明 - [产品 & 价格](https://docs.clinkbill.com/cn/guides/resources/product.md): 管理产品和定价结构 - [客户](https://docs.clinkbill.com/cn/guides/resources/customer.md): 管理您的客户 - [订单](https://docs.clinkbill.com/cn/guides/resources/order.md): 了解支付交易 - [订阅](https://docs.clinkbill.com/cn/guides/resources/subscription.md): 了解周期性付款合约 - [退款](https://docs.clinkbill.com/cn/guides/resources/refund.md): 退款和拒付政策 - [优惠券](https://docs.clinkbill.com/cn/guides/resources/coupon.md): 创建并管理针对账单、订阅和客户的折扣。 ##### 支付 - [结账会话](https://docs.clinkbill.com/cn/guides/payments/checkout_session.md): 托管的结账页面体验 - [Google Pay™](https://docs.clinkbill.com/cn/guides/payments/google_pay.md): 通过 Clink Hosted Checkout 或 Elements 接入 Google Pay,了解网关配置及 PAN_ONLY 的认证要求。 - [货币&汇率](https://docs.clinkbill.com/cn/guides/payments/currencies.md): 让客户使用本地货币支付 - [连接其他支付通道](https://docs.clinkbill.com/cn/guides/payments/link_psp.md): 连接已有的支付处理商账户 ##### Billing - [客户门户](https://docs.clinkbill.com/cn/guides/billing/customer_portal.md): 客户自主管理订阅和账单 ##### Agent - [Skill Marketplace](https://docs.clinkbill.com/cn/guides/agent/skill_marketplace.md): 在 Clink Skill Marketplace 准备、提交、发布并管理 Skill。 #### 财务信息 - [账户余额](https://docs.clinkbill.com/cn/finance/balance.md): 了解资金管理和资金流向 - [提现](https://docs.clinkbill.com/cn/finance/payout.md): 了解提现流程和时间安排 - [简单透明的定价](https://docs.clinkbill.com/cn/finance/pricing.md): 面向全球支付、订阅计费、税务合规与 Agentic Payment 的简单透明定价。 ### API 文档 #### 概述 - [介绍](https://docs.clinkbill.com/cn/api-reference/introduction.md): API 参考文档与集成指南 - [TypeScript SDK](https://docs.clinkbill.com/cn/api-reference/SDK.md): Clink API 官方 Node.js 库。 - [JavaScript SDK](https://docs.clinkbill.com/cn/api-reference/javascript_sdk.md): 在浏览器应用中通过跳转或嵌入方式拉起 Clink Checkout。 - [Clink CLI](https://docs.clinkbill.com/cn/api-reference/clink_cli.md): 使用 clink-cli 在命令行中初始化 customer wallet、管理绑卡链接、发起支付、退款并查看风控规则。 #### Clink MCP - [Wallet MCP 工具](https://docs.clinkbill.com/cn/api-reference/mcp/wallet.md): 钱包卡片与购买授权工具的参数、Scope 和返回结果。 - [Browser Pay 工具](https://docs.clinkbill.com/cn/api-reference/mcp/browser_pay.md): 通过 Clink MCP 获取网页支付凭证,并上报商户支付结果。 - [Operation 与恢复](https://docs.clinkbill.com/cn/api-reference/mcp/operations.md): 读取当前 MCP 规则、处理 next_action,并安全恢复已有操作。 - [Catalog 与 UCP Checkout](https://docs.clinkbill.com/cn/api-reference/mcp/commerce.md): 商品搜索、结账、订单与数字交付的补充 MCP 接口参考。 - [Agent Platform MCP 登录](https://docs.clinkbill.com/cn/api-reference/mcp/agent_platform_login.md): 使用平台 client token 为用户建立 MCP 会话;首次用户通过浏览器授权。 #### Agent Portal - [Agent Portal](https://docs.clinkbill.com/cn/api-reference/agent-portal/overview.md): 先了解 Agent Portal 提供的能力,再选择通过 MCP 使用托管 Portal,或通过 API 构建定制 Portal。 - [Portal token](https://docs.clinkbill.com/cn/api-reference/agent-portal/portal_token.md): 使用平台 client token 换取具有读取和受限写入权限的 Portal 用户 token。 - [Portal 接口](https://docs.clinkbill.com/cn/api-reference/agent-portal/portal_apis.md): 使用 Portal token 读取账户数据、创建带短期激活链接的购买指令、绑定或删除支付方式、获取支付凭证,并回报商户支付结果。 #### Checkout Session - [Create Checkout Session](https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session.md): Create a new checkout session for payment processing - [Get Checkout Session](https://docs.clinkbill.com/api-reference/endpoint/get-checkout-session.md): Retrieve details of an existing checkout session - [Expire Checkout Session](https://docs.clinkbill.com/api-reference/endpoint/expire-checkout-session.md): Expire a checkout session that is still `open`. Once expired, the checkout page can no longer be used to complete a payment, and a checkout session webhook event with status `expired` is delivered. A session cannot be expired if it has already been completed, has already expired, or has a payment in… #### Payment - [创建一次性支付](https://docs.clinkbill.com/cn/api-reference/endpoint/create-payment.md): Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink wi… - [刷新钱包二维码](https://docs.clinkbill.com/cn/api-reference/endpoint/refresh-wallet-qrcode.md): Refresh the wallet QR code for an existing order. Currently only supports CASHAPP wallet payments. #### Payment Instrument - [创建支付方式](https://docs.clinkbill.com/cn/api-reference/endpoint/create-payment-instrument.md): Create a new payment instrument for a customer. The request resolves or creates the customer first, then stores the payment instrument under that customer. #### Order - [查询订单列表](https://docs.clinkbill.com/cn/api-reference/endpoint/list-orders.md): List orders under your current merchant account. You can filter orders by subscription ID, customer ID, or merchant reference ID. - [Get Order](https://docs.clinkbill.com/api-reference/endpoint/get-order.md): Get detailed information about a specific order #### Agent Payment Session - [Create Agent Payment Session](https://docs.clinkbill.com/api-reference/endpoint/create-agent-payment-session.md): Create agent payment session - [Get Agent Payment Session](https://docs.clinkbill.com/api-reference/endpoint/get-agent-payment-session.md): Get agent payment session #### Refund - [创建退款](https://docs.clinkbill.com/cn/api-reference/endpoint/create-refund.md): Create a refund for an existing order. The refundMerchantOrderId is used for idempotency. - [Get Refund](https://docs.clinkbill.com/api-reference/endpoint/get-refund.md): Get detailed information about a specific refund #### Product - [上传产品图片](https://docs.clinkbill.com/cn/api-reference/endpoint/upload-product-image.md): Upload a product image as multipart form data. The file must be an image and must not exceed 5 MB. - [创建产品](https://docs.clinkbill.com/cn/api-reference/endpoint/create-product.md): Create a product with one or more price configurations. Product names can include localized values for multiple languages. - [Get Product](https://docs.clinkbill.com/api-reference/endpoint/get-product.md): Get product information under your current merchant account based on the product ID - [Get Product List](https://docs.clinkbill.com/api-reference/endpoint/get-product-list.md): Get all product information under your current merchant account #### Price - [创建价格](https://docs.clinkbill.com/cn/api-reference/endpoint/create-price.md): Create a price for an existing product under your current merchant account. - [Get Price](https://docs.clinkbill.com/api-reference/endpoint/get-price.md): Get price information under your current merchant account based on the price ID - [Get Price List](https://docs.clinkbill.com/api-reference/endpoint/get-price-list.md): Get all price information under your current merchant account - [更新价格](https://docs.clinkbill.com/cn/api-reference/endpoint/update-price.md): Update a price under your current merchant account based on the price ID. #### Coupon - [创建优惠券](https://docs.clinkbill.com/cn/api-reference/endpoint/create-coupon.md): Create a coupon and optionally create promotion codes for it. - [查询优惠券列表](https://docs.clinkbill.com/cn/api-reference/endpoint/list-coupons.md): List coupons under your current merchant account with optional filters. - [查询优惠券](https://docs.clinkbill.com/cn/api-reference/endpoint/get-coupon.md): Get detailed information about a specific coupon, including its promotion codes. - [重命名优惠券](https://docs.clinkbill.com/cn/api-reference/endpoint/rename-coupon.md): Update the display name of a coupon. #### Promotion Code - [创建促销码](https://docs.clinkbill.com/cn/api-reference/endpoint/create-promotion-code.md): Create a promotion code for a coupon. - [查询促销码](https://docs.clinkbill.com/cn/api-reference/endpoint/get-promotion-code.md): Get detailed information about a specific promotion code. - [查询优惠券促销码列表](https://docs.clinkbill.com/cn/api-reference/endpoint/list-promotion-codes-by-coupon.md): List promotion codes attached to a coupon. - [启用促销码](https://docs.clinkbill.com/cn/api-reference/endpoint/activate-promotion-code.md): Activate a promotion code. - [停用促销码](https://docs.clinkbill.com/cn/api-reference/endpoint/deactivate-promotion-code.md): Deactivate a promotion code. #### Subscription - [创建订阅](https://docs.clinkbill.com/cn/api-reference/endpoint/create-subscription.md): Create a subscription and initiate its first payment. Provide an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. You can provide billingAddress for the payment instrument and first-invoice tax calculation. - [Get Subscription](https://docs.clinkbill.com/api-reference/endpoint/get-subscription.md): Get detailed information about a specific subscription - [预览订阅升降级](https://docs.clinkbill.com/cn/api-reference/endpoint/preview-subscription-update.md): Preview a subscription upgrade or downgrade before confirming it. The target price must be a recurring price owned by the current merchant and must support the subscription payment currency. Use immediate to request an immediate or period-end update, or omit it to let the system decide. billingCycle… - [确认订阅升降级](https://docs.clinkbill.com/cn/api-reference/endpoint/confirm-subscription-update.md): Confirm a subscription upgrade or downgrade using the target price snapshot returned by the preview API. Send the same quantity, promotionCode, immediate, billingCycleAnchor, and prorationBehavior values used in the preview request, including omitting options that were omitted during preview. These… - [取消待生效订阅变更](https://docs.clinkbill.com/cn/api-reference/endpoint/cancel-subscription-update.md): Cancel a pending subscription plan update that has not taken effect yet. - [Cancel Subscription](https://docs.clinkbill.com/api-reference/endpoint/cancel-subscription.md): Cancel a subscription either immediately or at the end of the current billing period. - [Get Invoice](https://docs.clinkbill.com/api-reference/endpoint/get-invoice.md): Get detailed information about a specific invoice #### Test Clock - [List Test Clocks](https://docs.clinkbill.com/api-reference/endpoint/list-test-clocks.md): List all active test clocks under your current merchant account - [Create Test Clock](https://docs.clinkbill.com/api-reference/endpoint/create-test-clock.md): Create a new test clock for a subscription - [Get Test Clock](https://docs.clinkbill.com/api-reference/endpoint/get-test-clock.md): Retrieve details of a specific test clock - [Advance Test Clock](https://docs.clinkbill.com/api-reference/endpoint/advance-test-clock.md): Advance a test clock to the target frozen timestamp - [Complete Test Clock](https://docs.clinkbill.com/api-reference/endpoint/complete-test-clock.md): Complete a test clock and stop further simulated execution #### Customer Portal - [创建客户门户会话](https://docs.clinkbill.com/cn/api-reference/endpoint/create-customer-portal.md): Create a new customer portal session for billing management #### Webhook Endpoint Management - [List Webhook Events](https://docs.clinkbill.com/api-reference/endpoint/list-webhook-events.md): Return supported webhook events and event aliases. Use event names in webhook endpoint management requests; numeric event codes are returned for reference only. - [List Webhook Endpoints](https://docs.clinkbill.com/api-reference/endpoint/list-webhook-endpoints.md): Get webhook endpoints under the current merchant account. - [Create Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/create-webhook-endpoint.md): Create a webhook endpoint for the current merchant. The endpoint URL must use HTTPS and resolve to a public host. - [Ensure Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/ensure-webhook-endpoint.md): Create or update a webhook endpoint by URL. This endpoint is designed for idempotent setup flows where applications need to safely create or reconcile a webhook endpoint. For existing endpoints, Clink does not return the stored plaintext signing secret unless the secret is rotated. - [Get Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/get-webhook-endpoint.md): Get a webhook endpoint by ID. - [Update Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/update-webhook-endpoint.md): Update URL, events, description, or enabled status for a webhook endpoint. Omitted fields remain unchanged. - [Enable Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/enable-webhook-endpoint.md): Enable a webhook endpoint. - [Disable Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/disable-webhook-endpoint.md): Disable a webhook endpoint. Disabled endpoints are saved but do not receive webhook events. - [Rotate Webhook Signing Secret](https://docs.clinkbill.com/api-reference/endpoint/rotate-webhook-signing-secret.md): Rotate the signing secret for a webhook endpoint. The previous secret stops working immediately. - [Delete Webhook Endpoint](https://docs.clinkbill.com/api-reference/endpoint/delete-webhook-endpoint.md): Delete a webhook endpoint. Deleted endpoints stop receiving webhook events. #### Webhooks - [order](https://docs.clinkbill.com/api-reference/webhook/order.md): Handles order lifecycle events. - [refund](https://docs.clinkbill.com/api-reference/webhook/refund.md): Webhook notification triggered when refund is created or updated - [subscription](https://docs.clinkbill.com/api-reference/webhook/subscription.md): Webhook notification triggered when a subscription is created or updated - [invoice](https://docs.clinkbill.com/api-reference/webhook/invoice.md): Webhook notification triggered when an invoice is created or updated - [session](https://docs.clinkbill.com/api-reference/webhook/session.md): Webhook notification triggered when session is completed or expired - [customer.verify](https://docs.clinkbill.com/api-reference/webhook/customer.verify.md): Webhook notification triggered when customer verification is required - [dispute](https://docs.clinkbill.com/api-reference/webhook/dispute.md): Webhook notification triggered when dispute status changes. When a dispute reaches won or lost, an additional dispute.closed event is sent. ## OpenAPI Specs - [openapi](/api-reference/openapi.json)