# Gate Pay DOCS: Global Chinese 1.0.0 API 参考 ## API 参考 ### 公共 - [商户接入](https://docs.gate.com/global/api-reference/version/100/cn/common/merchantAccess.md): 说明商户接入 GatePay 时的服务地址、凭证准备与通用请求头。 - [安全与签名](https://docs.gate.com/global/api-reference/version/100/cn/common/securityAndSignature.md): 说明 GatePay API 的协议规则、通用响应结构、请求头与签名算法。 - [错误码](https://docs.gate.com/global/api-reference/version/100/cn/common/errorCodes.md): 汇总 GatePay 常见错误码、错误含义与建议处理方式。 - [最佳实践](https://docs.gate.com/global/api-reference/version/100/cn/common/bestPractices.md): 说明支付回调、查单、退款与安全控制的推荐实现方式。 - [支持币种](https://docs.gate.com/global/api-reference/version/100/cn/common/supportedCurrencies.md): 列出 GatePay 当前支持的主要支付网络与币种。 - [机构请求头](https://docs.gate.com/global/api-reference/version/100/cn/common/institutionalCommonHeaders.md): 说明机构接口所需请求头,以及 X-GatePay-On-Behalf-Of 的使用规则。 ### 余额 #### 账户余额 - [查询余额](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/common/balanceQuery.md): 查询账户中各币种的余额。 #### 手续费 - [查询交易手续费](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/common/feeQuery.md): 根据商户订单号查询订单的手续费、收益分成、支付明细及结算信息。本接口为 GET 请求,商户订单号通过 URL Query 参数 `merchantTradeNo` 传递。 - [试算商户手续费](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/clearing/previewMerchantFee.md): 本接口用于根据商户信息、订单金额等参数,试算该笔交易的手续费、收益分成及结算金额。仅限 Gate Pay 商户调用。 #### 资金流水 - [资金流水](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fundrecords/orderlist.md): 查询资金流水账单列表。 ### 机构 #### 子账户 - [创建子账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/create.md): 以机构账户为主体,为客户创建一个新的子账户并登记账户持有人信息。 - [更新子账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/update.md): 更新子账户资料及持有人信息。 - [查询子账户详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/query.md): 查询子账户详情。 - [分页查询子账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/list.md): 分页查询出子账户。 - [获取认证 URL](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/getCertificationUrl.md): 以机构商户为主体,为指定的机构子账户申请一个合法的、有过期时间的「子账户 Onboarding 托管页面」URL,用于引导子账户持有人进行 KYB 认证。 - [查询认证状态](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/queryVerify.md): 查询机构子账户 KYB 认证当前状态。 #### 费用设置 - [创建费用规则](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/fee-settings/create.md): 为指定子账户首次创建加价(下文统称为 Markup)规则。创建成功后,该子账户交易将在底价基础上叠加 Markup 计费。 - [更新费用规则](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/fee-settings/upgrade.md): 本接口将新建一条规则版本;创建成功不会立即变更当前生效规则,但会将未生效版本(如有)置为失效。新版本生效时,将整体替换当前生效规则。 - [查询费用配置规则详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/fee-settings/query.md): 查询子账户在指定时间的生效配置,不传时间则返回当前时间的生效配置。 - [查询费用规则列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/fee-settings/list.md): 按子账户、是否已配置 Markup、状态等条件分页检索费用规则概览。列表返回当前版本的核心费率字段,可直接用于运营排查和后台展示。 #### 代扣 - [发起代扣](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/charge.md): 发起一笔账户间代扣。`X-GatePay-On-Behalf-Of` 指定本次交易的发起方账户 ID(接收方账户),`accountId` 指定付款方账户 ID(被扣款账户)。当前版本为同步接口,提交后直接返回最终执行结果。 - [代扣记录查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/chargeDetail.md): 根据商户批次号查询历史代扣记录,用于补查执行结果或对账核对。当前版本中不再用于异步轮询。 #### 划转 - [发起划转](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/transfer.md): 发起一笔账户间划转。`X-GatePay-On-Behalf-Of` 指定本次交易的发起方账户 ID,`accountId` 指定收款方账户 ID。当前版本为同步接口,提交后直接返回最终执行结果。 - [划转记录查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/transferDetail.md): 根据商户批次号查询历史划转记录,用于补查执行结果或对账核对。当前版本中不再用于异步轮询。 #### 理财 - [理财服务状态变更](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/wealthAction.md): 开通或关闭子账户的理财服务。`X-GatePay-On-Behalf-Of` 指定被代理的机构账户 ID。 - [理财服务状态查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/wealthQuery.md): 查询子账户的理财服务开通状态。`X-GatePay-On-Behalf-Of` 指定被代理的机构账户 ID。 #### 商户接口 ##### 支付 ###### 客户管理 - [新增客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/channel/createChannel.md): 用户通过该接口创建客户记录信息。客户名称必填且商户下唯一,其余属性非必填。如果需要保存钱包地址,则需要确定网络,如果不需要保存钱包地址则均可为空。 - [查询客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/channel/queryChannel.md): 查询当前商户的客户列表信息 - [修改客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/channel/updateChannel.md): 用户通过该接口修改客户记录信息。 客户名称必填且商户下唯一,其余属性非必填。 如果需要保存钱包地址,则需要确定网络,如果不需要保存钱包地址则均可为空。 备用字段为商户根据实际业务场景来设定,可以选择用于保存客户的某个属性,如“国家/地区/业务类型”等。 - [删除客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/channel/deleteChannel.md): 删除客户信息 ###### 收银台 - [收银台下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/checkout/order.md): 创建收银台预订单,指定订单金额、币种、商品信息等。 - [收银台单详情查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/checkout/orderQuery.md): 查询订单状态以及详细信息。 ###### 退款 - [发起退款](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/checkout/refundV2.md): 收银台退款接口 V2 版本,支持原路退、指定退等多种退款方式。 - [查询退款详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/checkout/refundDetails.md): 根据商户退款单id查询退款详情。 ###### 地址支付 - [下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/addresspayment/createOrder.md): 创建地址支付订单(直付或闪兑) ###### 静态地址 - [创建静态收款地址](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fixedaddress/save.md): 按照指定币种和网络,生成静态收款地址 - [创建 EVM 网络静态收款地址](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fixedaddress/evm-save.md): 针对同一个客户,创建可同时对应多网络的静态收款地址,仅针对 EVM 网络 - [查询静态收款地址列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fixedaddress/list.md): 查询已生成的有效静态收款地址列表 - [查看静态收款地址详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fixedaddress/detail.md): 查看已生成的有效静态收款地址详情 - [删除静态收款地址](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fixedaddress/delete.md): 删除已生成的有效静态收款地址 - [查询静态收款码账单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fixedaddress/order-query.md): 查询静态收款账单列表 ###### Web 支付 - [创建预付单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/webpayment/native.md): 创建 Web 支付预付单,返回预付单 ID 以及 Web 支付组件跳转地址等信息。 - [预付单关闭](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/webpayment/orderClose.md): 接口说明:当商户端订单被取消时,商户可以主动发起请求要求GatePay关闭一个未支付的订单,如果一个订单号不被关闭,只能等待过期。 - [订单状态查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/webpayment/orderQuery.md): 查询订单状态以及详细信息。 ##### 余额 ###### 账户余额 - [查询账户余额](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/common/balanceQuery.md): 查询账户中各币种的余额。 ###### 资金流水 - [资金流水](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/fundrecords/orderlist.md): 查询资金流水账单列表。 ##### OTC ###### 询价 - [OTC 报价](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/quote.md): 获取用于 OTC 入金流程的法币与数字货币报价。 ###### 出金 - [创建出金订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/withdraw-create.md): 在获取报价后创建 OTC 出金订单。 - [出金订单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/withdraw-list.md): 批量查询 OTC 出金订单。 - [出金订单详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/withdraw-detail.md): 查询 OTC 出金订单的详细信息。 ###### 银行账户 - [查询银行可用国家](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/bank-countries.md): 查询支持银行账户登记的国家或地区。 - [查询银行账户列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/bank-list.md): 查询已绑定的银行账户列表。 - [创建银行账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/bank-create.md): 创建用于 OTC 结算的关联银行账户。 - [提交银行账户补充材料](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/bank-material-supplement.md): 当 GatePay 要求对已有 OTC 绑定银行卡补充 KYC 或合规材料时,通过本接口提交补充文件。 - [删除银行账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/otc/bank-delete.md): 删除已绑定的银行账户。 ##### 闪兑 ###### 交易 - [发起闪兑](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/convert/convert.md): 发起闪兑。 - [预览报价](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/convert/preview.md): 预览报价。 - [查询订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/convert/order.md): 查询订单。 ###### 资产 - [查询可用闪兑币种](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/convert/currency.md): 查询可用闪兑币种。 - [查询可用币种对](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/convert/pair.md): 查询可用币种对。 ##### 出金 ###### 提现 - [提现下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/withdraw/withdraw.md): 商户批量提现下单接口,用于创建批量提现订单。 - [提现订单状态查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institution/withdraw/withdrawQuery.md): 根据批次 ID 和明细状态查询提现批次及子单详情。 ### 支付 #### 客户管理 - [新增客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/channel/createChannel.md): 用户通过该接口创建客户记录信息。客户名称必填且商户下唯一,其余属性非必填。如果需要保存钱包地址,则需要确定网络,如果不需要保存钱包地址则均可为空。 - [查询客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/channel/queryChannel.md): 查询当前商户的客户列表信息 - [修改客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/channel/updateChannel.md): 用户通过该接口修改客户记录信息。 客户名称必填且商户下唯一,其余属性非必填。 如果需要保存钱包地址,则需要确定网络,如果不需要保存钱包地址则均可为空。 备用字段为商户根据实际业务场景来设定,可以选择用于保存客户的某个属性,如“国家/地区/业务类型”等。 - [删除客户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/channel/deleteChannel.md): 删除客户信息 #### 订单 - [创建订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/payment/order.md): 在 GatePay 支付平台创建一个新的支付订单。成功创建后,系统会返回支付相关信息,可用于跳转到支付页面或生成支付二维码。 #### 收银台 - [收银台下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/checkout/order.md): 创建收银台预订单,指定订单金额、币种、商品信息等。 - [收银台单详情查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/checkout/orderQuery.md): 根据预付单Id或商户订单号查询收银台订单详情。 #### 退款 - [发起退款](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/checkout/refundV2.md): 收银台退款接口 V2 版本,支持原路退、指定退等多种退款方式。 - [查询退款详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/checkout/refundDetails.md): 根据商户退款单id查询退款详情。 - [查询退款币种支持的网络](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/checkout/refundChains.md): 根据币种查询该币种支持退款的网络列表。 - [地址支付直付订单退款](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/refund.md): 对直付地址支付单发起退款 - [Web 支付退款](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/webpayment/refund.md): 商户可以针对一个已成功支付的订单发起退款。 退款执行并不需要付款商户和用户确认。退款订单创建后就会开始安排执行。退款成功后,GatePay后台会发送退款结果通知。 请注意:退款不可以取消、撤回、回滚。 - [查询 Web 支付退款单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/webpayment/refundQuery.md): 根据商户侧生成的退款单 ID 查询退款状态。 #### 地址支付 - [查询支持链列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/chainQuery.md): 根据提供的币种,查询支持接受该币种的所有链 - [查询支持币种列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/currencies.md): 查询地址支付支持的所有币种列表 - [根据订单币种查询支持闪兑的币种](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/supportedconvertcurrencies.md): 根据订单币种查询支持闪兑的币种 - [下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/createOrder.md): 创建地址支付订单(直付或闪兑) - [查询支付单详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/queryOrder.md): 查询地址支付订单的详细信息 - [查询链上交易详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/transactiondetail.md): 查询订单在链上的交易详情 #### 静态地址 - [查询支持的网络和币种](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/chains.md): 查询GatePay支持用于静态地址收款的网络和币种 - [创建静态收款地址](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/save.md): 按照指定币种和网络,生成静态收款地址 - [创建 EVM 网络静态收款地址](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/evm-save.md): 针对同一个客户,创建可同时对应多网络的静态收款地址,仅针对 EVM 网络 - [查询静态收款地址列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/list.md): 查询已生成的有效静态收款地址列表 - [查看静态收款地址详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/detail.md): 查看已生成的有效静态收款地址详情 - [删除静态收款地址](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/delete.md): 删除已生成的有效静态收款地址 - [查询静态收款码账单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/order-query.md): 查询静态收款账单列表 #### 调起支付 - [调起支付组件验证接口](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/callpayment/sdk.md): 调起支付组件签名验证接口。 - [订单状态查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/callpayment/query.md): 查询预付单或商户订单的支付状态。 #### 扫码支付 - [扫码下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/qrpay/native.md): 扫码下单,返回预付单 ID、二维码内容及跳转地址等信息。 #### Web 支付 - [创建预付单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/webpayment/native.md): 创建 Web 支付预付单,返回预付单 ID 以及 Web 支付组件跳转地址等信息。 - [预付单关闭](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/webpayment/orderClose.md): 接口说明:当商户端订单被取消时,商户可以主动发起请求要求GatePay关闭一个未支付的订单,如果一个订单号不被关闭,只能等待过期。 - [订单状态查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/webpayment/orderQuery.md): 查询订单状态以及详细信息。 ### OTC #### 询价 - [OTC 报价](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/quote.md): 获取用于 OTC 出金流程的法币与数字货币报价。 #### 入金 - [创建入金订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/deposit-create.md): 创建 OTC 法币入金订单。 - [确认已付款](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/deposit-confirm.md): 通知系统商户已完成线下法币汇款。该接口使用 multipart/form-data。生成签名时请使用纯文本串 “timestamp\nnonce\n\n”,不要拼接 multipart 请求体。 - [取消入金订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/deposit-cancel.md): 在确认付款前取消 OTC 入金订单。 - [入金订单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/deposit-list.md): 查询 OTC 入金订单列表。`startTime` 和 `endTime` 必填。 - [入金订单详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/deposit-detail.md): 查询法币入金订单详情。`orderId` 和 `clientOrderId` 至少传一个。 #### 出金 - [创建出金订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/withdraw-create.md): 在获取报价后创建 OTC 出金订单。 - [出金订单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/withdraw-list.md): 批量查询 OTC 出金订单。 - [出金订单详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/withdraw-detail.md): 查询 OTC 出金订单的详细信息。 #### 银行账户 - [查询银行可用国家](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/bank-countries.md): 查询支持银行账户登记的国家或地区。 - [查询银行账户列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/bank-list.md): 查询已绑定的银行账户列表。 - [创建银行账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/bank-create.md): 创建用于 OTC 结算的关联银行账户。 - [提交银行账户补充材料](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/bank-material-supplement.md): 当 GatePay 要求对已有 OTC 绑定银行卡补充 KYC 或合规材料时(例如绑卡审核后或账户待补充证明),通过本接口提交补充文件。 - [删除银行账户](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/bank-delete.md): 删除已绑定的银行账户。 ### 闪兑 #### 交易 - [发起闪兑](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/convert/convert.md): 发起闪兑。 - [预览报价](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/convert/preview.md): 预览报价。 - [查询订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/convert/order.md): 查询订单。 #### 资产 - [查询可用闪兑币种](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/convert/currency.md): 查询可用闪兑币种。 - [查询可用币种对](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/convert/pair.md): 查询可用币种对。 #### 汇率 - [汇率查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/rateexchange/query.md): 本接口适用于查询法币与加密货币之间的实时汇率,支持多种币对的汇率查询,仅限Gate Pay商户调用。 ### 出金 #### 提现 - [提现下单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/withdraw.md): 商户批量提现下单接口,用于创建批量提现订单。 - [提现订单状态查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/withdrawQuery.md): 根据批次 ID 和明细状态查询提现批次及子单详情。 #### 链 - [查询币种支持的链](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/currencyChains.md): 根据币种查询支持的链及链上提现配置。 #### 余额与手续费 - [提现手续费查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/withdrawStatus.md): 查询指定币种的提现手续费及相关限制。 #### 提现记录 - [提现记录查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/walletWithdrawals.md): 根据筛选条件查询账户的提现记录列表。 #### 奖励分发 - [创建商户批量转账](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/reward-distribution/create.md): 创建商户批量转账订单,用于商户向多个用户发起直接转账。 - [商户批量转账订单查询](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/reward-distribution/query.md): 根据 batch_id 或 merchant_batch_no 查询商户批量转账订单及子单状态。 ### 礼品卡 #### 礼品卡 - [创建礼品卡](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/gift/create.md): 创建一张新的礼品卡,指定标题、封面、币种和金额。 - [查询礼品卡](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/gift/query.md): 根据礼品卡卡号或兑换码查询礼品卡详情。当两个参数都传时优先使用 key。 - [批量查询礼品卡](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/gift/batchQuery.md): 根据礼品卡批次号或创建时间范围分页查询当前商户创建的礼品卡。批次号与时间范围同时传入时取交集。 #### 封面模板 - [获取礼品卡封面列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/gift/tempList.md): 获取可用的礼品卡封面模板列表。 #### 余额 - [查询可用币种余额](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/gift/balance.md): 查询当前商户账户下所有可用币种的余额。 ### 订阅 #### 产品 - [创建产品](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/productCreate.md): 创建产品 - [查询产品列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/productPageQuery.md): 查询产品列表详情 - [查询产品详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/productQueryOne.md): 查询产品详情 #### 计划 - [创建订阅计划](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/planSave.md): 创建订阅计划 - [查询订阅计划列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/planList.md): 查询订阅计划列表 - [查询订阅计划详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/planDetail.md): 查询订阅计划详情 #### 订单 - [创建订阅订单](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/orderCreate.md): 创建订阅单 - [查询订阅订单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/orderList.md): 查询订阅订单列表 - [查询订阅订单详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/orderDetail.md): 查询订阅订单详情 - [订阅订单状态流转](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/orderComplete.md): 订阅订单状态流转 #### 扣款 - [查询订阅扣款列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/deductionOrderList.md): 查询扣款订单列表 - [查询扣款订单详情](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/deductionOrderDetail.md): 查询扣款订单详情 - [主动发起扣款](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/orderDeduct.md): 商户主动对订阅单发起扣款;`subscriptionOrderNo` 与 `merchantSubscriptionOrderNo` 须二选一传入。`merchantDeductNo` 在商户侧全局唯一,用于幂等。 ### 对账 - [查询收款订单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/reconciliation/payOrderList.md): 按时间范围分页查询收款订单,支持按订单类型、状态、支付方式等条件筛选。 - [查询下发订单列表](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/reconciliation/withdrawSuborderQuery.md): 按时间范围分页查询下发子单,支持按批次号、状态、审批状态等条件筛选。 ### 通知 - [通知概览](https://docs.gate.com/global/api-reference/version/100/cn/common/asyncNotification.md): 说明 GatePay 通知的消息结构、状态枚举、重试机制与验签要求。 #### 机构 - [创建子账户结果通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/callbackNotification.md): 创建子账户成功或失败时,GatePay 会向商户在后台配置的 callback URL 发送异步 POST 通知。 - [子账户认证结果通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/institutional/verifyResultNotification.md): 当子账户 KYB 认证审核完成(通过或驳回)时,GatePay 会向商户在后台配置的 callback URL 发送异步 POST 通知。 #### 支付 - [地址支付状态通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/addresspayment/callback.md): 地址支付场景下,GatePay 通过 `PAY_ADDRESS`(订单状态变更)、`TRANSFER_ADDRESS`(订单资金流转)与 `CHAIN_ADDRESS`(链上交易与验证状态)向商户 callback URL 投递消息。 - [静态地址支付状态通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/fixedAddressPaymentNotify.md): 静态收款地址到账时,GatePay 发送 `bizType` 为 `PAY_FIXED_ADDRESS` 的 webhook 通知。 - [Gate 支付状态通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/callpayment/gatePaymentNotify.md): 适用于通过托管收银台、客户端拉起等方式下单,并由用户 Gate 支付账户完成付款的场景。`bizType` 固定为 `PAY`。 - [法币支付状态通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/callpayment/fiatPaymentNotify.md): 法币支付订单状态变更时,GatePay 发送 `bizType` 为 `PAY_FIAT` 的 webhook 通知。 - [礼品卡支付状态通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/callpayment/giftCardPaymentNotify.md): 批量礼品卡支付订单状态变更时,GatePay 发送 `bizType` 为 `PAY_GIFT_BATCH` 的 webhook 通知。 - [退款状态通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/callpayment/refundNotify.md): 退款单状态变更时,GatePay 发送 `bizType` 为 `PAY_REFUND` 的 webhook 通知。 - [异常支付通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fundrecords/unresolvedPayNotify.md): 每产生一笔异常支付流水,向对应商户发送一次 webhook 通知。 - [静态地址风险通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/fixedaddress/fixedAddressRiskNotify.md): 当商户绑定的静态收款地址被识别为风险地址(`is_risk` 为 `1`)时,向对应商户发送一次 webhook 通知。 #### OTC - [OTC 回调通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/otc/callback.md): OTC 入金与出金订单状态变更时,系统会向商户配置的回调地址发送通知。 #### 出金 - [提现回调通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/callback.md): 当批量提现/出款订单状态发生变化时,GatePay 发送 `bizType` 为 `WITHDRAW` 的 webhook 通知(专用报文结构,非标准 `data` 封装)。 - [奖励分发通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/withdraw/rewardDistributionNotify.md): 奖励分发批量转账订单状态变更时,GatePay 发送 `bizType` 为 `PAY_BATCH` 的 webhook 通知。该通知在批次内全部子单发放成功后发送。 #### 订阅 - [订阅订单状态更新消息通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/orderNotify.md): Subscription order status update notification - [支付扣款通知](https://docs.gate.com/global/api-reference/version/100/cn/endpoint/subscription/paymentNotify.md): Callback when a subscription deduction attempt completes (payment / deduction notification). ## OpenAPI Specs - [common-openapi](/global/api-reference/version/100/cn/openapi/common-openapi.json) - [preview-merchant-fee-openapi](/global/api-reference/version/100/cn/openapi/preview-merchant-fee-openapi.json) - [fund-records-openapi](/global/api-reference/version/100/cn/openapi/fund-records-openapi.json) - [institutional-openapi](/global/api-reference/version/100/cn/openapi/institutional-openapi.json) - [institution-fee-settings-openapi](/global/api-reference/version/100/cn/openapi/institution-fee-settings-openapi.json) - [channel-openapi](/global/api-reference/version/100/cn/openapi/institution/channel-openapi.json) - [checkout-payment-openapi](/global/api-reference/version/100/cn/openapi/institution/checkout-payment-openapi.json) - [web-payment-openapi](/global/api-reference/version/100/cn/openapi/institution/web-payment-openapi.json) - [address-payment-openapi](/global/api-reference/version/100/cn/openapi/institution/address-payment-openapi.json) - [fixed-address-openapi](/global/api-reference/version/100/cn/openapi/institution/fixed-address-openapi.json) - [common-openapi](/global/api-reference/version/100/cn/openapi/institution/common-openapi.json) - [fund-records-openapi](/global/api-reference/version/100/cn/openapi/institution/fund-records-openapi.json) - [otc-fiat-openapi](/global/api-reference/version/100/cn/openapi/institution/otc-fiat-openapi.json) - [convert-openapi](/global/api-reference/version/100/cn/openapi/institution/convert-openapi.json) - [withdraw-openapi](/global/api-reference/version/100/cn/openapi/institution/withdraw-openapi.json) - [channel-openapi](/global/api-reference/version/100/cn/openapi/channel-openapi.json) - [payment-order-openapi](/global/api-reference/version/100/cn/openapi/payment-order-openapi.json) - [checkout-payment-openapi](/global/api-reference/version/100/cn/openapi/checkout-payment-openapi.json) - [address-payment-openapi](/global/api-reference/version/100/cn/openapi/address-payment-openapi.json) - [web-payment-openapi](/global/api-reference/version/100/cn/openapi/web-payment-openapi.json) - [fixed-address-openapi](/global/api-reference/version/100/cn/openapi/fixed-address-openapi.json) - [call-payment-openapi](/global/api-reference/version/100/cn/openapi/call-payment-openapi.json) - [qrpay-openapi](/global/api-reference/version/100/cn/openapi/qrpay-openapi.json) - [otc-fiat-openapi](/global/api-reference/version/100/cn/openapi/otc-fiat-openapi.json) - [convert-openapi](/global/api-reference/version/100/cn/openapi/convert-openapi.json) - [rate-exchange-openapi](/global/api-reference/version/100/cn/openapi/rate-exchange-openapi.json) - [withdraw-openapi](/global/api-reference/version/100/cn/openapi/withdraw-openapi.json) - [gift-card-openapi](/global/api-reference/version/100/cn/openapi/gift-card-openapi.json) - [productCreate-openapi](/global/api-reference/version/100/cn/openapi/subscription/productCreate-openapi.json) - [productPageQuery-openapi](/global/api-reference/version/100/cn/openapi/subscription/productPageQuery-openapi.json) - [productQueryOne-openapi](/global/api-reference/version/100/cn/openapi/subscription/productQueryOne-openapi.json) - [planSave-openapi](/global/api-reference/version/100/cn/openapi/subscription/planSave-openapi.json) - [planList-openapi](/global/api-reference/version/100/cn/openapi/subscription/planList-openapi.json) - [planDetail-openapi](/global/api-reference/version/100/cn/openapi/subscription/planDetail-openapi.json) - [orderCreate-openapi](/global/api-reference/version/100/cn/openapi/subscription/orderCreate-openapi.json) - [orderList-openapi](/global/api-reference/version/100/cn/openapi/subscription/orderList-openapi.json) - [orderDetail-openapi](/global/api-reference/version/100/cn/openapi/subscription/orderDetail-openapi.json) - [orderComplete-openapi](/global/api-reference/version/100/cn/openapi/subscription/orderComplete-openapi.json) - [deductionOrderList-openapi](/global/api-reference/version/100/cn/openapi/subscription/deductionOrderList-openapi.json) - [deductionOrderDetail-openapi](/global/api-reference/version/100/cn/openapi/subscription/deductionOrderDetail-openapi.json) - [orderDeduct-openapi](/global/api-reference/version/100/cn/openapi/subscription/orderDeduct-openapi.json) - [reconciliation-openapi](/global/api-reference/version/100/cn/openapi/reconciliation-openapi.json) - [address-payment-callback-openapi](/global/api-reference/version/100/cn/openapi/address-payment-callback-openapi.json) - [fixed-address-payment-callback-openapi](/global/api-reference/version/100/cn/openapi/fixed-address-payment-callback-openapi.json) - [gate-payment-callback-openapi](/global/api-reference/version/100/cn/openapi/gate-payment-callback-openapi.json) - [fiat-payment-callback-openapi](/global/api-reference/version/100/cn/openapi/fiat-payment-callback-openapi.json) - [gift-card-payment-callback-openapi](/global/api-reference/version/100/cn/openapi/gift-card-payment-callback-openapi.json) - [refund-callback-openapi](/global/api-reference/version/100/cn/openapi/refund-callback-openapi.json) - [unresolvedPayNotify-openapi](/global/api-reference/version/100/cn/openapi/unresolvedPayNotify-openapi.json) - [fixedAddressRiskNotify-openapi](/global/api-reference/version/100/cn/openapi/fixedAddressRiskNotify-openapi.json) - [withdraw-callback-openapi](/global/api-reference/version/100/cn/openapi/withdraw-callback-openapi.json) - [batch-transfer-callback-openapi](/global/api-reference/version/100/cn/openapi/batch-transfer-callback-openapi.json) - [orderNotify-openapi](/global/api-reference/version/100/cn/openapi/subscription/orderNotify-openapi.json) - [paymentNotify-openapi](/global/api-reference/version/100/cn/openapi/subscription/paymentNotify-openapi.json)