{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"6. API Documentation（托管收银台模式）","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"6-api-documentation托管收银台模式","__idx":0},"children":["6. API Documentation（托管收银台模式）"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["推荐："]}," 您可以使用 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/infini-money/infini-skill"},"children":["infini-skill"]}," 更快接入 Infini API。该 Skill 提供开箱即用的接入能力，可帮助您先完成托管收银台流程接入，再按需参考下方原始 API 文档。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["托管收银台模式是 Infini 最推荐的接入方式。商户只需创建订单、跳转 checkout_url 并处理 Webhook，即可完成支付集成。本章节仅包含托管收银台模式的 API 文档与对应字段说明。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["企业卡接口请查看 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/docs/en/card-api"},"children":["卡 API 文档"]},"。卡接口现在使用独立的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/cards"]}," 前缀。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["所有接口前缀："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v1/acquiring"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"61-创建订单create-order","__idx":1},"children":["6.1 创建订单（Create Order）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," /v1/acquiring/order"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用于创建订单，并返回托管收银台的访问 URL (checkout_url)。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"headers","__idx":2},"children":["Headers"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"Content-Type: application/json\nDate: {GMT Time}\nAuthorization: Signature ...\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body","__idx":3},"children":["Request Body"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string/number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单法币金额（最多 6 位小数）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["request_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户自定义生成的幂等key, UUID \"a759b99a-9d22-433d-bced-ab1d2e1bea1d\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_reference"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户自定义订单号，建议保持唯一"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["order_desc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单描述"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["expires_in"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单过期相对时间（Unix 秒）；不传则使用后台默认值"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_alias"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["收银台账单名称（覆盖后台配置）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["success_url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单支付成功跳转回商户地址"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["failure_url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单支付失败跳转回商户地址"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["pay_methods"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of integers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["支付方式：[1] 加密货币，[2] 卡支付，[3] Binance Pay 支付，[5] Apple Pay，[6] Google Pay，[1,2,3,5,6] 全部都支持。默认使用商户配置"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["付款人邮箱（可选）。若传入须为有效邮箱地址；服务端会规范化为小写"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["currency"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单货币 (USD, EUR, KWR, GBP, SGD, JPY, AUD, HKD), 默认为USD"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-示例","__idx":4},"children":["Response 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"order_id\": \"10290d05-xxxx\",\n  \"request_id\": \"your request_id\",\n  \"checkout_url\": \"https://checkout.infini.money/pay/xxxx\",\n  \"client_reference\": \"client_reference\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"62-查询订单query-order","__idx":5},"children":["6.2 查询订单（Query Order）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," /v1/acquiring/order?order_id ={order_id}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["返回订单的实时状态信息。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"order-status-字段说明","__idx":6},"children":["Order Status 字段说明"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":5,"id":"status---订单处理状态","__idx":7},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," - 订单处理状态"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["数据库存储字段，记录订单的处理状态。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"值"},"children":["值"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["待支付"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processing"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["处理中（已收到部分资金）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paid"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已支付"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["partial_paid"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["部分支付已过期"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["expired"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已过期未支付"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-示例-1","__idx":8},"children":["Response 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"order_id\": \"ord-123\",\n  \"status\": \"processing\",\n  \"amount\": \"100\",\n  \"currency\": \"USD\",\n  \"amount_confirming\": \"0\",\n  \"amount_confirmed\": \"0.5\",\n  \"expires_at\": 1763512195,\n  \"created_at\": 1763512000,\n  \"exception_tags\": [\"wrong_currency\"],\n  \"client_reference\": \"ORDER-001\",\n  \"email\": \"user@example.com\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建订单时提交的付款人邮箱（未传入时不返回）"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"63-重新签发托管收银台-tokenreissue-checkout-token","__idx":9},"children":["6.3 重新签发托管收银台 Token（Reissue Checkout Token）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," /v1/acquiring/token/reissue"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用于重新生成托管收银台 URL，适用于支付页面关闭、Token 过期等场景。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body-1","__idx":10},"children":["Request Body"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["order_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单唯一 ID"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response","__idx":11},"children":["Response"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"order_id\": \"ord-123\",\n  \"checkout_url\": \"https://checkout.infini.money/pay/xxxx\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"64-支付单接口高级功能","__idx":12},"children":["6.4 支付单接口（高级功能）"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意："]}," 对于大多数商户，您只需要创建订单并跳转到收银台 URL 即可。以下支付单接口为可选功能，需要额外的开发工作。它们允许您以编程方式创建和管理支付单，而不是使用托管收银台。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"创建支付单","__idx":13},"children":["创建支付单"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," /v1/acquiring/payment"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以编程方式为订单创建支付单。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request Body:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order_id"]}," (string, 必填): 订单 ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chain"]}," (string, 必填): 区块链网络名称"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["token_id"]}," (string, 必填): 代币标识符"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_method"]}," (integer, 可选): 支付方式（目前仅支持 1，表示加密货币支付）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"payment_id\": \"pay-123\",\n  \"amount\": \"100.00\",\n  \"address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n  \"expires_at\": 1763512195\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"查询支付单","__idx":14},"children":["查询支付单"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," /v1/acquiring/payment?payment_id={payment_id}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["查询支付单详情，包括交易历史。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"查询订单支付单列表","__idx":15},"children":["查询订单支付单列表"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," /v1/acquiring/payment/list?order_id={order_id}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["获取与订单关联的所有支付单记录。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"65-资金提取fund-withdraw","__idx":16},"children":["6.5 资金提取（Fund Withdraw）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," /v1/acquiring/fund/withdraw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用于从 Infini 账户提取资金到外部钱包地址。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body-2","__idx":17},"children":["Request Body"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["chain"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["区块链网络（见下方支持的链）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["token_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["代币类型，例如 \"USDT\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["提取金额"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["wallet_address"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["目标钱包地址"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["note"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["可选的提取备注"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"支持的链和代币","__idx":18},"children":["支持的链和代币"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["沙盒环境："]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Chain"},"children":["Chain"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"支持的 Token"},"children":["支持的 Token"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TTRON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["生产环境："]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Chain"},"children":["Chain"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"支持的 Token"},"children":["支持的 Token"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"手续费"},"children":["手续费"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ETHEREUM"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT, USDC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["5"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BSC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT, USDC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0.5"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SOLANA"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT, USDC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ARBITRUM"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT, USDC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0.5"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TRON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["注意："]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["链名称和代币类型必须使用大写"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["手续费以您提取的代币类型扣除。例如，提取 USDT 则扣除相应数量的 USDT；提取 USDC 则扣除相应数量的 USDC"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"请求示例","__idx":19},"children":["请求示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"chain\": \"ETHEREUM\",\n  \"token_type\": \"USDT\",\n  \"amount\": \"6\",\n  \"wallet_address\": \"0x5f716e5775b18409917e2a2f0762d29d6c385cb0\",\n  \"note\": \"123\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"响应示例","__idx":20},"children":["响应示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\"code\":0,\"message\":\"\",\"data\":{\"request_id\":\"e94b4e88-36c2-4550-907e-839742cf5fae\"}}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"651-查询提取订单状态query-withdraw-order-status","__idx":21},"children":["6.5.1 查询提取订单状态（Query Withdraw Order Status）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," /v1/acquiring/fund/withdraw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["通过 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["request_id"]}," 查询提取订单的状态。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"请求参数","__idx":22},"children":["请求参数"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["request_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /fund/withdraw"]}," 返回的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["request_id"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"响应字段","__idx":23},"children":["响应字段"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单状态：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processing"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["提取总金额（原始请求金额）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fee"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Infini 提取手续费"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["actual_amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["目标地址实际到账金额（amount 减去 fee）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["transaction_hash"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["链上交易哈希（未上链时为空）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["chain"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["链名称"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["token_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["代币类型，例如 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USDT"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USDC"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"状态说明","__idx":24},"children":["状态说明"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"状态"},"children":["状态"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["pending"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["提取订单已创建，等待提交或审核中"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["processing"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["交易已提交上链，等待确认"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["completed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["链上交易已确认成功"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"响应示例-1","__idx":25},"children":["响应示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 0,\n  \"message\": \"\",\n  \"data\": {\n    \"status\": \"pending\",\n    \"amount\": \"11\",\n    \"fee\": \"0.1\",\n    \"actual_amount\": \"10.9\",\n    \"transaction_hash\": \"\",\n    \"chain\": \"TRON\",\n    \"token_type\": \"USDT\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 0,\n  \"message\": \"\",\n  \"data\": {\n    \"status\": \"completed\",\n    \"amount\": \"11\",\n    \"fee\": \"0.1\",\n    \"actual_amount\": \"10.9\",\n    \"transaction_hash\": \"0xabc123...\",\n    \"chain\": \"ETHEREUM\",\n    \"token_type\": \"USDT\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"66-创建订阅create-subscription","__idx":26},"children":["6.6 创建订阅（Create Subscription）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," /v1/acquiring/subscription"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用于创建订阅，并返回托管收银台的访问 URL (checkout_url)。首次支付订单将同时创建。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"headers-1","__idx":27},"children":["Headers"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"Content-Type: application/json\nDate: {GMT Time}\nAuthorization: Signature ...\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body-3","__idx":28},"children":["Request Body"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string/number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单法币金额（最多 6 位小数）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["request_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户自定义生成的幂等key，UUID 格式"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_reference"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户自定义订单号"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["expires_in"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单过期相对时间（Unix 秒）；不传则使用后台默认值"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_alias"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["收银台账单名称（覆盖后台配置）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["success_url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["支付成功跳转回商户地址"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["failure_url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["支付失败跳转回商户地址"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["pay_methods"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of integers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["支付方式：[1] 加密货币，[2] 卡支付，[1,2] 两者都支持。默认使用商户配置"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["subscription"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订阅参数（见下方）"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["subscription 对象："]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_sub_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户自定义订阅 ID（同一商户下必须唯一）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["plan_name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订阅计划名称"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string/number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["后续每期扣款金额（最多 6 位小数）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["interval_unit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["扣款周期单位：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DAY"]}," 或 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MONTH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["interval_count"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["每个扣款周期的间隔数量"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["payer_email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["付款人邮箱（用于发送续费 Invoice 通知）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["invoice_lead_days"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["周期结束前提前发送续费 Invoice 的天数（最小：0）。invoice 模式下必填"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["invoice_due_days"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Invoice 创建后的到期天数（最小：1）。invoice 模式下必填"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["subscription_end_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订阅终止时间，Unix 时间戳（0 = 永不终止）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["canceled_url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["退订后的跳转 URL"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-示例-2","__idx":29},"children":["Response 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"order_id\": \"10290d05-xxxx\",\n  \"request_id\": \"your request_id\",\n  \"client_reference\": \"client_reference\",\n  \"checkout_url\": \"https://checkout.infini.money/subscription/xxxx\",\n  \"token\": \"eyJhbGciOiJIUzI1NiIs...\",\n  \"subscription\": {\n    \"subscription_id\": \"sub-xxxx\",\n    \"merchant_sub_id\": \"msub_001\",\n    \"status\": \"pending\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"67-查询订阅query-subscription","__idx":30},"children":["6.7 查询订阅（Query Subscription）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," /v1/acquiring/subscription?merchant_sub_id={merchant_sub_id}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["根据商户订阅 ID 查询订阅详情。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"订阅状态字段说明","__idx":31},"children":["订阅状态字段说明"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"值"},"children":["值"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["等待首次支付"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订阅生效中"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["canceled"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已取消"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-示例-3","__idx":32},"children":["Response 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"subscription_id\": \"sub-xxxx\",\n  \"merchant_sub_id\": \"msub_001\",\n  \"plan_name\": \"Monthly Plan\",\n  \"trigger_method\": \"invoice\",\n  \"status\": \"active\",\n  \"currency\": \"USD\",\n  \"first_amount\": \"10.00\",\n  \"amount\": \"9.99\",\n  \"interval_unit\": \"MONTH\",\n  \"interval_count\": 1,\n  \"current_period_start\": 1740000000,\n  \"current_period_end\": 1742678400,\n  \"subscription_end_at\": 0,\n  \"next_invoice_at\": 1742592000,\n  \"payer_email\": \"user@example.com\",\n  \"created_at\": 1740000000,\n  \"updated_at\": 1740000100\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"68-取消订阅cancel-subscription","__idx":33},"children":["6.8 取消订阅（Cancel Subscription）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," /v1/acquiring/subscription/cancel"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用于取消一个有效的订阅。取消后，订阅在当前计费周期结束前仍然可用。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body-4","__idx":34},"children":["Request Body"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型"},"children":["类型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必填"},"children":["必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_sub_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户自定义订阅 ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["cancel_reason"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取消原因：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_request"]},"（用户请求）、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["by_merchant_api"]},"（商户 API 调用）、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["by_operation"]},"（运营操作）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["note"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["可选的取消备注"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-示例-4","__idx":35},"children":["Response 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"subscription_id\": \"sub-xxxx\",\n  \"merchant_sub_id\": \"msub_001\",\n  \"status\": \"canceled\",\n  \"canceled_at\": 1742678400,\n  \"cancel_reason\": \"by_merchant_api\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"69-webhook订单与订阅状态回调","__idx":36},"children":["6.9 Webhook（订单与订阅状态回调）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["商户可在后台配置 Webhook 接收地址。订单或订阅状态变化时，Infini 会主动推送以下事件："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["订单事件："]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["order.created"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["order.processing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["order.completed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["order.expired"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["order.late_payment"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["订阅事件："]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["subscription.update"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["subscription.cancel"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"webhook-headers","__idx":37},"children":["Webhook Headers"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Header"},"children":["Header"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X-Webhook-Timestamp"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unix 时间戳"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X-Webhook-Event-Id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["事件唯一 ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X-Webhook-Signature"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Webhook HMAC 签名"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"webhook-payload-示例","__idx":38},"children":["Webhook Payload 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"order.completed\",\n  \"order_id\": \"ord-123\",\n  \"client_reference\": \"ORDER-001\",\n  \"amount\": \"100\",\n  \"currency\": \"USD\",\n  \"status\": \"paid\",\n  \"amount_confirmed\": \"100\",\n  \"amount_confirming\": \"0\",\n  \"created_at\": 1763512195,\n  \"updated_at\": 1763512573,\n  \"exception_tags\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"subscription-webhook-payload-示例","__idx":39},"children":["Subscription Webhook Payload 示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"subscription.update\",\n  \"subscription_id\": \"sub-xxxx\",\n  \"merchant_sub_id\": \"msub_001\",\n  \"plan_name\": \"Monthly Plan\",\n  \"trigger_method\": \"invoice\",\n  \"status\": \"active\",\n  \"currency\": \"USD\",\n  \"amount\": \"9.99\",\n  \"interval_unit\": \"MONTH\",\n  \"interval_count\": 1,\n  \"payer_email\": \"user@example.com\",\n  \"current_period_start\": 1740000000,\n  \"current_period_end\": 1742678400,\n  \"next_invoice_at\": 1742592000,\n  \"cancel_reason\": \"by_merchant_api\",\n  \"canceled_at\": 1742678400,\n  \"created_at\": 1740000000,\n  \"updated_at\": 1740000100\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意："]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["next_invoice_at"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancel_reason"]}," 和 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["canceled_at"]}," 仅在对应值存在时才包含。例如，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancel_reason"]}," 和 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["canceled_at"]}," 仅出现在 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscription.cancel"]}," 事件中。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Webhook 验签方法请参考 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["章节 4：授权与安全机制"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"610-错误码error-codes","__idx":40},"children":["6.10 错误码（Error Codes）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["所有错误返回格式："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 40001,\n  \"message\": \"Invalid request\",\n  \"detail\": \"expires_at must be greater than current timestamp\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"常见错误码","__idx":41},"children":["常见错误码"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"HTTP"},"children":["HTTP"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"描述"},"children":["描述"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40003"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount 必须为正数"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40006"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["amount 必须大于 0.01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["401"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["401"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HMAC 签名无效"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40401"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单不存在"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["409"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40902"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_reference 重复"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["409"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40906"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订单已过期"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["43000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订阅不存在"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["43002"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["订阅已取消"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"611-python-示例托管收银台模式","__idx":42},"children":["6.11 Python 示例（托管收银台模式）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下示例展示完整流程：创建订单 → 跳转收银台 → Webhook → 重新签发 Token。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"6111-创建订单","__idx":43},"children":["6.11.1 创建订单"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"import hmac, hashlib, base64, time\nfrom datetime import datetime, timezone\nimport requests\n\nkey_id = \"merchant-001-prod\"\nsecret_key = b\"your-secret-key\"\n\ndef create_order(amount):\nmethod = \"POST\"\npath = \"/v1/acquiring/order\"\ngmt_time = datetime.now(timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')\n\nsigning_string = f\"{key_id}\\n{method} {path}\\ndate: {gmt_time}\\n\"\nsignature = base64.b64encode(\nhmac.new(secret_key, signing_string.encode(), hashlib.sha256).digest()\n).decode()\n\nresponse = requests.post(\nf\"https://openapi.infini.money{path}\",\njson ={\n\"amount\": amount,\n\"currency\": \"USD\",\n\"client_reference\": \"ORDER-2024-001\",\n\"description\": \"Product purchase\",\n\"expires_at\": int(time.time()) + 3600\n},\nheaders ={\n\"Date\": gmt_time,\n\"Authorization\": f'Signature keyId=\"{key_id}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"{signature}\"',\n\"Content-Type\": \"application/json\"\n}\n)\n\nresponse.raise_for_status()\nreturn response.json()\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"6112-前端跳转到收银台","__idx":44},"children":["6.11.2 前端跳转到收银台"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"@app.route('/create-payment', methods =['POST'])\ndef create_payment():\norder = create_order(amount = request.json['amount'])\nreturn {\"checkout_url\": order[\"checkout_url\"]}\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"6113-webhook-回调处理","__idx":45},"children":["6.11.3 Webhook 回调处理"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"@app.route('/webhook', methods = ['POST'])\ndef handle_webhook():\nevent = request.json\n\nif event['event'] == 'order.completed':\nprocess_fulfillment(event['order_id'], event['amount_confirmed'])\nelif event['event'] == 'order.processing':\nupdate_order_progress(event['order_id'], event['status'])\nelif event['event'] == 'order.expired':\nmark_order_expired(event['order_id'])\n\nreturn {\"status\": \"ok\"}\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"6114-重新签发收银台-token","__idx":46},"children":["6.11.4 重新签发收银台 Token"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"def reissue_checkout_token(order_id):\nmethod = \"POST\"\npath = \"/v1/acquiring/token/reissue\"\ngmt_time = datetime.now(timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')\n\nsigning_string = f\"{key_id}\\n{method} {path}\\ndate: {gmt_time}\\n\"\nsignature = base64.b64encode(\nhmac.new(secret_key, signing_string.encode(), hashlib.sha256).digest()\n).decode()\n\nresponse = requests.post(\nf\"https://api.infini.money{path}\",\njson ={\"order_id\": order_id},\nheaders ={\n\"Date\": gmt_time,\n\"Authorization\": f'Signature keyId=\"{key_id}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"{signature}\"',\n\"Content-Type\": \"application/json\"\n}\n)\n\nresponse.raise_for_status()\nreturn response.json()\n","lang":"python"},"children":[]}]},"headings":[{"value":"6. API Documentation（托管收银台模式）","id":"6-api-documentation托管收银台模式","depth":2},{"value":"6.1 创建订单（Create Order）","id":"61-创建订单create-order","depth":3},{"value":"Headers","id":"headers","depth":4},{"value":"Request Body","id":"request-body","depth":4},{"value":"Response 示例","id":"response-示例","depth":4},{"value":"6.2 查询订单（Query Order）","id":"62-查询订单query-order","depth":3},{"value":"Order Status 字段说明","id":"order-status-字段说明","depth":4},{"value":"status - 订单处理状态","id":"status---订单处理状态","depth":5},{"value":"Response 示例","id":"response-示例-1","depth":4},{"value":"6.3 重新签发托管收银台 Token（Reissue Checkout Token）","id":"63-重新签发托管收银台-tokenreissue-checkout-token","depth":3},{"value":"Request Body","id":"request-body-1","depth":4},{"value":"Response","id":"response","depth":4},{"value":"6.4 支付单接口（高级功能）","id":"64-支付单接口高级功能","depth":3},{"value":"创建支付单","id":"创建支付单","depth":4},{"value":"查询支付单","id":"查询支付单","depth":4},{"value":"查询订单支付单列表","id":"查询订单支付单列表","depth":4},{"value":"6.5 资金提取（Fund Withdraw）","id":"65-资金提取fund-withdraw","depth":3},{"value":"Request Body","id":"request-body-2","depth":4},{"value":"支持的链和代币","id":"支持的链和代币","depth":4},{"value":"请求示例","id":"请求示例","depth":4},{"value":"响应示例","id":"响应示例","depth":4},{"value":"6.5.1 查询提取订单状态（Query Withdraw Order Status）","id":"651-查询提取订单状态query-withdraw-order-status","depth":3},{"value":"请求参数","id":"请求参数","depth":4},{"value":"响应字段","id":"响应字段","depth":4},{"value":"状态说明","id":"状态说明","depth":4},{"value":"响应示例","id":"响应示例-1","depth":4},{"value":"6.6 创建订阅（Create Subscription）","id":"66-创建订阅create-subscription","depth":3},{"value":"Headers","id":"headers-1","depth":4},{"value":"Request Body","id":"request-body-3","depth":4},{"value":"Response 示例","id":"response-示例-2","depth":4},{"value":"6.7 查询订阅（Query Subscription）","id":"67-查询订阅query-subscription","depth":3},{"value":"订阅状态字段说明","id":"订阅状态字段说明","depth":4},{"value":"Response 示例","id":"response-示例-3","depth":4},{"value":"6.8 取消订阅（Cancel Subscription）","id":"68-取消订阅cancel-subscription","depth":3},{"value":"Request Body","id":"request-body-4","depth":4},{"value":"Response 示例","id":"response-示例-4","depth":4},{"value":"6.9 Webhook（订单与订阅状态回调）","id":"69-webhook订单与订阅状态回调","depth":3},{"value":"Webhook Headers","id":"webhook-headers","depth":4},{"value":"Webhook Payload 示例","id":"webhook-payload-示例","depth":4},{"value":"Subscription Webhook Payload 示例","id":"subscription-webhook-payload-示例","depth":4},{"value":"6.10 错误码（Error Codes）","id":"610-错误码error-codes","depth":3},{"value":"常见错误码","id":"常见错误码","depth":4},{"value":"6.11 Python 示例（托管收银台模式）","id":"611-python-示例托管收银台模式","depth":3},{"value":"6.11.1 创建订单","id":"6111-创建订单","depth":4},{"value":"6.11.2 前端跳转到收银台","id":"6112-前端跳转到收银台","depth":4},{"value":"6.11.3 Webhook 回调处理","id":"6113-webhook-回调处理","depth":4},{"value":"6.11.4 重新签发收银台 Token","id":"6114-重新签发收银台-token","depth":4}],"frontmatter":{"seo":{"title":"6. API Documentation（托管收银台模式）"}},"lastModified":"2026-06-18T07:54:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/docs/en/6-api-ducumentation","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}