{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"静态地址收款 API"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"静态地址收款-api","__idx":0},"children":["静态地址收款 API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["静态地址收款 API 用于为商户的 Customer 提供长期收款地址。用户可以多次、非定额转入受支持的数字资产。Infini 识别充值归属，按适用的链上确认及资金合规规则处理后，将净额结算至商户的 Infini 余额，并发送 Webhook。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Customer 仅用于识别商户侧用户，不持有可供其自行提现的独立 Infini 余额。商户应根据 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer_deposit.completed"]}," 中的实际入账金额更新自己的用户账本。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["完整机器可读定义见 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/apis/customer-deposits"},"children":["OpenAPI 参考"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["接口前缀：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer"]},"。鉴权方式见 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/docs/en/4-authorization"},"children":["Ed25519 鉴权指南"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"接口列表","__idx":1},"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":["GET"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/currencies"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询支持的收款方式及小额规则"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POST"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/customers"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建或更新 Customer"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GET"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/customers"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询一个 Customer"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GET"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/customers/quota"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询 Customer 额度"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POST"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/addresses"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建或复用收款地址绑定"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GET"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/addresses"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询一个收款地址绑定"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"业务幂等","__idx":2},"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":["创建或更新 Customer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_user_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["返回同一 Customer；传入的资料发生变化时更新资料"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建地址绑定"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户、环境、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["asset"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["network"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["返回同一地址绑定；分配结果不明确时先核对原申请，不重复创建钱包"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["修改 Customer 资料不会修改 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_user_id"]}," 或已有收款地址。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["同一 Customer 的资料并发更新时，以服务端实际提交顺序为准；重试携带的旧资料也可能覆盖此前已更新的对应字段。建议商户按用户串行同步资料。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"查询支持的收款方式","__idx":3},"children":["查询支持的收款方式"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/currencies"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["权限：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer.read"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["查询当前商户、当前环境可使用的币种及网络，以及单笔充值的小额收费规则。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"查询参数","__idx":4},"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":["asset"]},{"$$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":["network"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["网络编码；不传时不过滤网络"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["格式有效但没有可用匹配项时返回 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data: []"]},"。创建地址前应查询本接口，不应仅依赖本页中的示例。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"请求示例","__idx":5},"children":["请求示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v2/merchant-customer/currencies?asset=USDT&network=ETHEREUM\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"响应示例","__idx":6},"children":["响应示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 0,\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"asset\": \"USDT\",\n      \"asset_name\": \"Tether\",\n      \"networks\": [\n        {\n          \"network\": \"ETHEREUM\",\n          \"network_name\": \"Ethereum\",\n          \"min_deposit_amount\": \"0.01\",\n          \"fixed_fee\": \"0.01\"\n        }\n      ]\n    }\n  ]\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":["data"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["币种列表；无结果时为空数组"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data[].asset"]},{"$$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":["data[].asset_name"]},{"$$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":["data[].networks"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["可用网络，返回的每个币种至少包含一个网络"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data[].networks[].network"]},{"$$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":["data[].networks[].network_name"]},{"$$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":["data[].networks[].min_deposit_amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["当前原币金额门槛，单位为对应 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["asset"]},"；",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"0\""]}," 表示没有最低门槛"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data[].networks[].fixed_fee"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["低于门槛时适用的固定小额手续费，单位始终为 USD"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["原币门槛由 USD 配置及查询时价格换算得到，可能随价格变化。查询结果用于展示，不锁定未来充值的价格或费用。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"一期币种和网络","__idx":7},"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":["TRON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tron"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、TRX"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ETHEREUM"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ethereum"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、USDC、ETH"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BSC"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BNB Smart Chain"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、USDC、BNB"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ARBITRUM"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Arbitrum One"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、USDC"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POLYGON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Polygon PoS"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、USDC"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BASE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Base"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、USDC、ETH"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SOLANA"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Solana"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USDT、USDC、SOL"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sandbox 返回的测试网络编码可能包括 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TRON"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SETH"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BSC"]},"，应使用 Sandbox 实际查询结果，不能将测试币发送至主网地址。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"初始-usd-收费配置","__idx":8},"children":["初始 USD 收费配置"]},{"$$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":{"align":"right","data-label":"最低充值金额的 USD 等值"},"children":["最低充值金额的 USD 等值"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"right","data-label":"低于门槛时的固定小额费 USD"},"children":["低于门槛时的固定小额费 USD"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TRON"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["500"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["1.5"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BSC"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ETHEREUM"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ARBITRUM"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POLYGON"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BASE"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SOLANA"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"right"},"children":["0.01"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["收费规则按网络配置，同一网络上的所有币种适用相同的门槛和小额费。这些是初始配置，实际规则以接口响应及充值处理时适用的配置为准。TRON 网络的门槛是 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["500 USD 等值"]},"，TRON 上的 TRX 和 USDT 都适用。比如查询时 1 TRX 等于 0.25 USD，TRX 返回的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["min_deposit_amount"]}," 为 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"2000\""]},"，USDT 返回 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"500\""]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"创建或更新-customer","__idx":9},"children":["创建或更新 Customer"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/customers"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["权限：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer.write"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["首次提交 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_user_id"]}," 时创建 Customer；重复提交同一 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_user_id"]}," 时返回同一 Customer，并更新本次明确传入的可修改资料。此接口不创建钱包或收款地址。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"请求参数","__idx":10},"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":["external_user_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string，1–80 字符"]},{"$$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":["name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null，最多 256 字符"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["用户名称"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null，最多 256 字符"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["邮箱；非空时须为有效邮箱"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["remark"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null，最多 500 字符"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户备注"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["首次创建时，未提供的可选字段返回 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]},"。更新时，未提供的字段保持原值；显式传入 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}," 或空字符串清空该字段。邮箱保存为去除首尾空白后的全小写形式。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"请求示例-1","__idx":11},"children":["请求示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"external_user_id\": \"user_1001\",\n  \"name\": \"Alice\",\n  \"email\": \"alice@example.com\",\n  \"remark\": \"VIP customer\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"响应示例-1","__idx":12},"children":["响应示例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["首次创建 HTTP 201；返回已有 Customer 或更新已有资料时 HTTP 200。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 0,\n  \"message\": \"\",\n  \"data\": {\n    \"customer_id\": 17942112005831,\n    \"external_user_id\": \"user_1001\",\n    \"name\": \"Alice\",\n    \"email\": \"alice@example.com\",\n    \"remark\": \"VIP customer\",\n    \"created_at\": 1794211200,\n    \"updated_at\": 1794211200\n  }\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":["customer_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer (int64)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Infini 生成的正整数 Customer ID，后续申请地址使用"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["external_user_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户侧用户 ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["用户名称"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["邮箱"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["remark"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["备注"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["created_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["首次创建时间，Unix 秒；后续更新保持不变"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["updated_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最近实际资料变更时间，Unix 秒；没有变化的重试不更新时间"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新建 Customer 占用一个额度；返回或更新已有 Customer 不重复占用额度，达到额度上限时仍可更新已有资料。Customer ID 与 Invoice Customer 相互独立。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"查询-customer","__idx":13},"children":["查询 Customer"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/customers"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["权限：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer.read"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"查询参数-1","__idx":14},"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":["customer_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer (int64)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["二选一"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Infini Customer ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["external_user_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string，最多 80 字符"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["二选一"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户侧用户 ID"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["必须且只能传入一个查询条件。不存在时返回资源不存在。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v2/merchant-customer/customers?external_user_id=user_1001\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["HTTP 200，响应结构与",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#%E5%88%9B%E5%BB%BA%E6%88%96%E6%9B%B4%E6%96%B0-customer"},"children":["创建或更新 Customer"]},"中的 Customer 对象相同。查询不会创建或修改 Customer。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"查询-customer-额度","__idx":15},"children":["查询 Customer 额度"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/customers/quota"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["权限：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer.read"]},"。无查询参数，无请求体。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"响应示例-2","__idx":16},"children":["响应示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 0,\n  \"message\": \"\",\n  \"data\": {\n    \"limit\": 50,\n    \"used\": 12\n  }\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":["limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["当前商户、当前环境的 Customer 总量上限"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["used"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已创建的 Customer 数量"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["额度按 Customer 计数，不按地址数量计数。一个 Customer 申请多个币种或网络的地址不额外占用 Customer 额度。商户可自行计算剩余数量 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["max(limit - used, 0)"]},"。额度可因商户配置而不同；查询结果不预占额度，创建时会再次检查。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"创建或复用收款地址绑定","__idx":17},"children":["创建或复用收款地址绑定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["POST"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/addresses"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["权限：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer.write"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"请求参数-1","__idx":18},"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":["customer_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer (int64)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["当前商户的静态充值 Customer ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["asset"]},{"$$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":["network"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["对应网络编码，例如 ETHEREUM"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"customer_id\": 17942112005831,\n  \"asset\": \"USDT\",\n  \"network\": \"ETHEREUM\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"响应示例-3","__idx":19},"children":["响应示例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新建绑定 HTTP 201；复用已有绑定 HTTP 200。只有地址和收款归属已准备完成后才返回成功。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 0,\n  \"message\": \"\",\n  \"data\": {\n    \"deposit_address_id\": \"d498f76d-42a9-447c-bdad-c10f72d18844\",\n    \"customer_id\": 17942112005831,\n    \"asset\": \"USDT\",\n    \"network\": \"ETHEREUM\",\n    \"address\": \"0x1111111111111111111111111111111111111111\",\n    \"min_deposit_amount\": \"0.01\",\n    \"created_at\": 1794211260\n  }\n}\n","lang":"json"},"children":[]},{"$$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":"th","attributes":{"data-label":"说明"},"children":["说明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["deposit_address_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["币种、网络级地址绑定 ID；复用时不变"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer (int64)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["所属 Customer ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["asset"]},{"$$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":["network"]},{"$$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":["address"]},{"$$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":["min_deposit_amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询时的原币充值门槛，单位为 asset，与 currencies 同源"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["created_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["该绑定首次创建时间，Unix 秒；复用时保持不变"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"地址复用和自动识别","__idx":20},"children":["地址复用和自动识别"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["同一商户、同一环境、同一 Customer、币种和网络始终返回同一有效绑定。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["同一 Customer 在 Ethereum、BSC、Arbitrum、Polygon、Base 上共用同一个 EVM 地址；不同币种、网络的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deposit_address_id"]}," 仍分别独立。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["同一 Customer 在 TRON 上使用 TRX、USDT 时，链上地址相同，绑定记录分别独立。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["一个 Customer 已取得收款地址后，向该 Customer 的相同地址转入其他",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["平台已接入、当前可处理的受支持币种或网络"]},"，Infini 会自动识别并按实际链、币种结算，不要求事先为该组合调用本接口。例如已申请 Ethereum-USDT，随后向该 EVM 地址转入 BSC-USDC。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["自动识别的入款也遵守确认、合规和计费规则，不因没有事先申请该组合而免除手续费。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["该规则不表示不同链的地址可以混用。例如 EVM 地址不代表 TRON 或 Solana 的充值地址。未支持的币种、网络不承诺自动入账；请联系支持。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["地址长期复用；修改邮箱、姓名或备注不会改变收款地址。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"并发和超时","__idx":21},"children":["并发和超时"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["同一 Customer 的所有币种和网络共用一个钱包，多个并发请求只会占用一个钱包并返回同一绑定。商户可用钱包已用完时返回 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["address_pool_exhausted"]},"，需联系平台补充后再申请。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["网络超时不表示创建失败。不要更换 Customer 重新申请来代替核对；平台会先恢复原申请结果。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"查询收款地址绑定","__idx":22},"children":["查询收款地址绑定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/merchant-customer/addresses"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["权限：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer.read"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["查询参数为 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["asset"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["network"]},"，三个字段均必填，与",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#%E5%88%9B%E5%BB%BA%E6%88%96%E5%A4%8D%E7%94%A8%E6%94%B6%E6%AC%BE%E5%9C%B0%E5%9D%80%E7%BB%91%E5%AE%9A"},"children":["创建或复用收款地址绑定"]},"的请求参数定义相同。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v2/merchant-customer/addresses?customer_id=17942112005831&asset=USDT&network=ETHEREUM\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["HTTP 200，响应与",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#%E5%88%9B%E5%BB%BA%E6%88%96%E5%A4%8D%E7%94%A8%E6%94%B6%E6%AC%BE%E5%9C%B0%E5%9D%80%E7%BB%91%E5%AE%9A"},"children":["创建或复用收款地址绑定"]},"中的地址对象相同。查询不会申请钱包或新建绑定；不存在时返回 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deposit_address_not_found"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"错误处理","__idx":23},"children":["错误处理"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["应用错误使用与其他商户 API 一致的外层结构，并提供稳定的机器可读原因："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"code\": 47003,\n  \"message\": \"Customer limit reached\",\n  \"data\": {\n    \"error\": \"customer_limit_exceeded\",\n    \"field\": \"external_user_id\",\n    \"retryable\": false\n  }\n}\n","lang":"json"},"children":[]},{"$$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":"HTTP"},"children":["HTTP"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"code"},"children":["code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"data.error"},"children":["data.error"]},{"$$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":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["30013"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["invalid_parameter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["修正缺失字段、长度、邮箱或查询条件"]}]},{"$$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":["authentication_failed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["检查 Key、签名、时间和实际请求路径"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["permission_denied"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["检查 API Key 权限、商户归属和访问策略"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["47001"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer_not_found"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["检查 Customer 标识及环境"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["47002"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["deposit_address_not_found"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$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":["47003"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["customer_limit_exceeded"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询额度；已有 Customer 仍可更新"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["409"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["47007"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["address_pool_exhausted"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户可用钱包已用完，联系平台补充后再申请"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["503"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["47005"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["price_unavailable"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["无有效价格时稍后重试，不使用错误的原币门槛"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["503"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["47006"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["dependency_unavailable"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$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":["40007"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["unsupported_chain_token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["根据 currencies 选择有效组合"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["409"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40915"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["currency_disabled"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["刷新当前商户可用收款方式"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["500"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["500"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["internal_error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["保持业务字段，退避重试"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["网关还可能返回 HTTP 429 或 5xx，其响应不一定含以上字段。不要依赖 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," 文本判断业务分支。地址申请超时或下游错误后应先核对原业务对象，不假定失败即未创建。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"充值计费和处理状态","__idx":24},"children":["充值计费和处理状态"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"费用规则","__idx":25},"children":["费用规则"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["费用统一由商户承担，直接从本笔充值金额中扣除，不额外扣减商户已有余额。实际入账币种沿用商户的收单结算配置，可能与充值原币不同。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["在链上确认时，平台冻结本笔充值适用的价格、正常收单费率、最低金额配置、小额费用及结算币种。后续 KYT 等待或人工审核不重新定价。暂时无法取得有效计价数据时等待重试，不按 0 价格处理，也不提前完成入账。"]},{"$$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":["单笔充值的 USD 等值达到或超过门槛"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["仅收正常收单手续费"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["低于门槛，固定小额费大于 0"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["正常收单手续费与固定小额费叠加"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["低于门槛，固定小额费等于 0"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["不收费，不结算"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["扣费后净额小于或等于 0"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["不结算，不产生零金额或负数入账，也不额外扣款"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["零净额充值不结算、不生成资金明细，处理完成后仍发送 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}," 通知，其中 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credited_amount=\"0\""]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_id"]}," 为 null。因此，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}," 不代表商户余额必然增加；必须读取 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credited_amount"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["举例：仅为说明计算，假设某笔 TRON 网络上的充值（TRX 或 USDT）在链上确认时价值 100 USD、商户正常费率为 1%。该笔低于 500 USD 门槛，正常费 1 USD，加小额费 1.5 USD，换汇前净值为 97.5 USD。最终以完成通知中的入账币种及金额为准。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"充值状态","__idx":26},"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":["confirming"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已识别充值归属，尚未达到链上确认要求"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["confirmed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已达到链上确认要求，尚未完成商户入账处理"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["blocked"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["充值正被合规流程拦截或已被审核拒绝"]},{"$$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":["已完成处理；净额大于 0 时已生成资金明细，净额为 0 时不结算"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["是，使用实际 credited_amount"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["failed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已识别的充值明确链上失败或无效"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"充值-webhook","__idx":27},"children":["充值 Webhook"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["在商户后台的 Webhook 设置中，订阅 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Customer deposit events｜用户充值收款事件"]},"。本期提供以下四个精确事件名，不提供通配符订阅。"]},{"$$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":["merchant_customer_deposit.confirming"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已识别归属，正在等待链上确认"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_customer_deposit.confirmed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["链上确认已完成，尚未完成入账处理"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_customer_deposit.completed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["实际净入账金额已经确定；净额大于 0 时已生成商户资金明细，零净额不结算"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["merchant_customer_deposit.failed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["已识别充值明确链上失败或无效"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上游可能首次就提供链上确认完成的交易，不保证每笔充值都经历或收到 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["confirming"]}," 通知。Webhook 可能重复、延迟或乱序；收到较早状态的通知不得回退已处理的完成状态。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["公共外层结构、请求头、验签和投递重试规则见 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/docs/en/7-webhook#%E7%89%88%E6%9C%AC%E5%8C%96-webhook-%E5%85%AC%E5%85%B1%E7%BB%93%E6%9E%84"},"children":["Webhook 文档"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"充值字段","__idx":28},"children":["充值字段"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["下列字段均返回；不适用或尚未确定时按表中说明返回 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]},"。"]},{"$$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":["data.deposit_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["充值唯一 ID，同一笔的不同事件保持一致"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.transaction_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["资金明细交易 ID；completed 且净额大于 0 时非空，零净额及其他事件为 null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.customer_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer (int64)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["所属静态充值 Customer ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.external_user_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["商户侧稳定用户 ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.asset"]},{"$$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":["data.network"]},{"$$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":["data.amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["本笔链上原币金额，单位为 asset"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.address"]},{"$$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":["data.tx_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":["data.status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["confirming、confirmed、completed、failed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.credited_amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["completed 时为实际入账金额，允许为 \"0\"；其他事件为 null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.credited_currency"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["completed 时为实际入账币种；其他事件为 null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.failure_code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["failed 时为稳定失败原因码；其他事件为 null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.failure_message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["failed 时为原因说明；其他事件为 null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.created_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["首次创建充值记录的时间，Unix 秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.updated_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["当前事件快照对应的最近更新时间，Unix 秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data.completed_at"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer / null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["completed 时为实际入账处理完成时间，Unix 秒；其他事件为 null"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["同一链上哈希可能对应多笔充值，应使用 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deposit_id"]}," 关联充值，并按 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deposit_id"]}," 对最终处理结果去重。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"完成通知示例","__idx":29},"children":["完成通知示例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"a96e5344-d49b-455d-aef5-2469f901c10e\",\n  \"event\": \"merchant_customer_deposit.completed\",\n  \"version\": 1,\n  \"occurred_at\": 1794211500,\n  \"data\": {\n    \"deposit_id\": \"c2239a50-ce71-4b11-ae83-f69c70e36da7\",\n    \"transaction_id\": \"7a2a406e-5d71-4e8a-9bf4-b95fe2308183\",\n    \"customer_id\": 17942112005831,\n    \"external_user_id\": \"user_1001\",\n    \"asset\": \"USDT\",\n    \"network\": \"ETHEREUM\",\n    \"amount\": \"100\",\n    \"address\": \"0x1111111111111111111111111111111111111111\",\n    \"tx_hash\": \"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\n    \"status\": \"completed\",\n    \"credited_amount\": \"99\",\n    \"credited_currency\": \"USDT\",\n    \"failure_code\": null,\n    \"failure_message\": null,\n    \"created_at\": 1794211380,\n    \"updated_at\": 1794211500,\n    \"completed_at\": 1794211500\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["零净额完成通知的结构相同，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credited_amount"]}," 为 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"0\""]},"，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_id"]}," 为 null，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credited_currency"]}," 和 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed_at"]}," 仍有值。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failed"]}," 事件的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failure_code"]}," 包括 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHAIN_EXECUTION_FAILED"]}," 和 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHAIN_TRANSACTION_INVALID"]},"；描述只解释已确认的链上失败，不将 KYT 超时或普通服务重试伪装成链上失败。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"入账处理","__idx":30},"children":["入账处理"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deposit_id"]}," 去重同一笔充值的完成通知，在一个本地事务中保存处理结果并更新用户账本。净额为 0 时没有资金明细，也应记录处理结果。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"推荐接入步骤","__idx":31},"children":["推荐接入步骤"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["查询可用币种、网络和 Customer 额度。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["使用稳定 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_user_id"]}," 创建或同步 Customer，保存返回的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]},"。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["按用户选择的币种、网络申请地址绑定，并清晰展示地址、网络及当前充值门槛。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["配置并验签接收充值 Webhook，保存事件后返回 HTTP 200。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["仅以 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_customer_deposit.completed"]}," 的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credited_amount"]}," 和 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credited_currency"]}," 更新用户账本，按 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deposit_id"]}," 去重。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在商户 Transactions 的 Settlement 详情中，使用 Customer ID、External User ID 和资金明细交易 ID 对账；零净额充值不结算，不会出现在资金明细中。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["未收到完成通知的充值应保留为处理中，并通过现有商户支持渠道核对。请持续保存完成通知和资金明细交易 ID，以便对账。"]}]},"headings":[{"value":"静态地址收款 API","id":"静态地址收款-api","depth":1},{"value":"接口列表","id":"接口列表","depth":2},{"value":"业务幂等","id":"业务幂等","depth":2},{"value":"查询支持的收款方式","id":"查询支持的收款方式","depth":2},{"value":"查询参数","id":"查询参数","depth":3},{"value":"请求示例","id":"请求示例","depth":3},{"value":"响应示例","id":"响应示例","depth":3},{"value":"一期币种和网络","id":"一期币种和网络","depth":3},{"value":"初始 USD 收费配置","id":"初始-usd-收费配置","depth":3},{"value":"创建或更新 Customer","id":"创建或更新-customer","depth":2},{"value":"请求参数","id":"请求参数","depth":3},{"value":"请求示例","id":"请求示例-1","depth":3},{"value":"响应示例","id":"响应示例-1","depth":3},{"value":"查询 Customer","id":"查询-customer","depth":2},{"value":"查询参数","id":"查询参数-1","depth":3},{"value":"查询 Customer 额度","id":"查询-customer-额度","depth":2},{"value":"响应示例","id":"响应示例-2","depth":3},{"value":"创建或复用收款地址绑定","id":"创建或复用收款地址绑定","depth":2},{"value":"请求参数","id":"请求参数-1","depth":3},{"value":"响应示例","id":"响应示例-3","depth":3},{"value":"地址复用和自动识别","id":"地址复用和自动识别","depth":3},{"value":"并发和超时","id":"并发和超时","depth":3},{"value":"查询收款地址绑定","id":"查询收款地址绑定","depth":2},{"value":"错误处理","id":"错误处理","depth":2},{"value":"充值计费和处理状态","id":"充值计费和处理状态","depth":2},{"value":"费用规则","id":"费用规则","depth":3},{"value":"充值状态","id":"充值状态","depth":3},{"value":"充值 Webhook","id":"充值-webhook","depth":2},{"value":"充值字段","id":"充值字段","depth":3},{"value":"完成通知示例","id":"完成通知示例","depth":3},{"value":"入账处理","id":"入账处理","depth":3},{"value":"推荐接入步骤","id":"推荐接入步骤","depth":2}],"frontmatter":{"seo":{"title":"静态地址收款 API"}},"lastModified":"2026-11-12T09:11:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/docs/en/customer-deposits-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}