API 模块
Payments
创建、查询、取消支付
Refunds
全额/部分退款
Subscriptions
订阅创建、管理、计费
Customers
客户管理、支付方式
bash
curl -X POST https://api.raypay.com/v1/payments \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"amount": 1000,
"currency": "USD",
"description": "Order #1234"
}'开始使用 API
注册获取密钥API 参考
以下端点数据由后端 OpenAPI 契约自动生成(134 个端点),随契约同步更新。
认证
| 方法 | 路径 | 说明 | |
|---|---|---|---|
| POST | /api/v1/auth/user/force-revoke | 强制下线 | + |
| POST | /api/v1/auth/user/login | 用户登录 | + |
| POST | /api/v1/auth/user/logout | 用户登出 | + |
| POST | /api/v1/auth/user/refresh | 刷新令牌 | + |
| POST | /api/v1/auth/user/register | 商户入驻注册 | + |
| POST | /api/v1/auth/user/register/send-code | 发送邮箱验证码 | + |
| POST | /api/v1/auth/user/validate | 校验令牌 | + |
渠道
| 方法 | 路径 | 说明 | |
|---|---|---|---|
| POST | /api/v1/channel/admin/callback/getByCallbackNo | 查询回调日志详情 | + |
| POST | /api/v1/channel/admin/callback/getByOrderNo | 根据订单号查询回调记录 | + |
| POST | /api/v1/channel/admin/callback/list | 查询回调日志列表 | + |
| POST | /api/v1/channel/admin/callback/pending | 查询待处理回调 | + |
| POST | /api/v1/channel/admin/callback/retryable | 查询可重试的回调 | + |
| POST | /api/v1/channel/admin/configs/confirm | 确认渠道配置变更 | + |
| POST | /api/v1/channel/admin/configs/list | 渠道配置列表 | + |
| POST | /api/v1/channel/admin/configs/update | 修改渠道配置 | + |
| POST | /api/v1/channel/admin/transaction/getByOrderNo | 根据订单号查询交易记录 | + |
| POST | /api/v1/channel/admin/transaction/getByTxnNo | 查询交易流水详情 | + |
| POST | /api/v1/channel/admin/transaction/list | 查询交易流水列表 | + |
| POST | /api/v1/channel/balances/merchants/query | 查询商户级余额 | + |
| POST | /api/v1/channel/balances/psp/query | 查询 PSP 级余额 | + |
| POST | /api/v1/channel/batch-allocations/available-amount/query | 查询可归集额度 | + |
| POST | /api/v1/channel/batch-allocations/create | 创建批量归集 | + |
| POST | /api/v1/channel/batch-allocations/items/query | 查询批量归集明细项 | + |
| POST | /api/v1/channel/batch-allocations/query | 查询批量归集列表 | + |
| POST | /api/v1/channel/batch-allocations/queryById | 查询批量归集详情 | + |
| POST | /api/v1/channel/bulk-sends/create | 创建批量代发 | + |
| POST | /api/v1/channel/bulk-sends/items/query | 查询批量代发明细项 | + |
| POST | /api/v1/channel/bulk-sends/queryById | 查询批量代发详情 | + |
| POST | /api/v1/channel/compliance/getScreeningById | 查询 KYA 筛查 | + |
| POST | /api/v1/channel/compliance/kyaScreening | 创建 KYA 筛查 | + |
| POST | /api/v1/channel/compliance/kytStatus | 查询 KYT 状态 | + |
| POST | /api/v1/channel/merchants/create | 创建渠道商户 | + |
| POST | /api/v1/channel/merchants/list | 查询渠道商户列表 | + |
| POST | /api/v1/channel/merchants/update | 更新渠道商户 | + |
| POST | /api/v1/channel/metadata/getOrgInfo | 查询组织信息 | + |
| POST | /api/v1/channel/metadata/listChains | 列出支持的链 | + |
| POST | /api/v1/channel/metadata/listTokens | 列出支持的 Token | + |
| POST | /api/v1/channel/orders/create | 创建渠道订单 | + |
| POST | /api/v1/channel/orders/getById | 查询渠道订单 | + |
| POST | /api/v1/channel/payment-links/create | 创建渠道支付链接 | + |
| POST | /api/v1/channel/refunds/cancel | 取消渠道退款 | + |
| POST | /api/v1/channel/refunds/create | 创建渠道退款 | + |
| POST | /api/v1/channel/refunds/getById | 查询渠道退款 | + |
| POST | /api/v1/channel/topup-addresses/create | 创建充值地址 | + |
| POST | /api/v1/channel/topup-addresses/query | 查询充值地址 | + |
| POST | /api/v1/channel/transactions/queryByOrderNo | 按订单号查询渠道交易状态 | + |
| POST | /api/v1/channel/wallets/checkAddress | 校验地址有效性 | + |
| POST | /api/v1/channel/wallets/create | 创建渠道钱包 | + |
| POST | /api/v1/channel/wallets/getById | 查询渠道钱包 | + |
| POST | /api/v1/channel/webhooks/api-key-info/query | 查询 API Key 信息 | + |
| POST | /api/v1/channel/webhooks/create | 创建 Webhook 端点 | + |
| POST | /api/v1/channel/webhooks/list | 列出 Webhook 端点 | + |
| POST | /api/v1/channel/withdraws/create | 发起提现 | + |
| POST | /api/v1/channel/withdraws/query | 查询提现状态 | + |
商户
| 方法 | 路径 | 说明 | |
|---|---|---|---|
| POST | /api/v1/merchant/admin/audit-logs/query | 审计日志查询 | + |
| POST | /api/v1/merchant/admin/dual-controls/pending | 待确认列表 | + |
| POST | /api/v1/merchant/admin/dual-controls/reject | 拒绝双控请求 | + |
| POST | /api/v1/merchant/admin/kyc/approve | 审核通过 | + |
| POST | /api/v1/merchant/admin/kyc/detail | KYC 申请详情 | + |
| POST | /api/v1/merchant/admin/kyc/list | KYC 申请列表 | + |
| POST | /api/v1/merchant/admin/kyc/reject | 审核驳回 | + |
| POST | /api/v1/merchant/admin/merchants/appeal | 商户申诉 | + |
| POST | /api/v1/merchant/admin/merchants/approve | 审核通过 | + |
| POST | /api/v1/merchant/admin/merchants/close | 关闭商户 | + |
| POST | /api/v1/merchant/admin/merchants/detail | 商户详情 | + |
| POST | /api/v1/merchant/admin/merchants/fee-rate | 调整费率 | + |
| POST | /api/v1/merchant/admin/merchants/freeze | 冻结商户 | + |
| POST | /api/v1/merchant/admin/merchants/freeze-status | 冻结状态查询 | + |
| POST | /api/v1/merchant/admin/merchants/limits | 调整限额 | + |
| POST | /api/v1/merchant/admin/merchants/list | 商户列表 | + |
| POST | /api/v1/merchant/admin/merchants/reject | 审核拒绝 | + |
| POST | /api/v1/merchant/admin/merchants/risk-level | 调整风控等级 | + |
| POST | /api/v1/merchant/admin/merchants/settlement-cycle | 结算周期配置 | + |
| POST | /api/v1/merchant/admin/merchants/unfreeze | 解冻商户 | + |
| POST | /api/v1/merchant/admin/operators/create | 创建/更新运营人员 | + |
| POST | /api/v1/merchant/admin/operators/list | 运营人员列表 | + |
| POST | /api/v1/merchant/admin/operators/status | 启停运营人员 | + |
| POST | /api/v1/merchant/admin/operators/update-role | 更新角色与 Scope | + |
| POST | /api/v1/merchant/channel-configs/bind | 商户绑定渠道 | + |
| POST | /api/v1/merchant/channel-configs/getByMerchantNo | 查询商户渠道配置 | + |
| POST | /api/v1/merchant/channel-configs/merchantInfo/list | 查询渠道商户列表 | + |
| POST | /api/v1/merchant/channel-configs/merchantInfo/update | 更新渠道商户信息 | + |
| POST | /api/v1/merchant/channel-configs/resolve | 解析身份契约 | + |
| POST | /api/v1/merchant/channel-configs/retry | 重试渠道绑定 | + |
| POST | /api/v1/merchant/channel-configs/unbind | 商户解绑渠道 | + |
| POST | /api/v1/merchant/kyb/ubo | UBO 采集 | + |
| POST | /api/v1/merchant/kyc/query | 查询 KYC 申请详情 | + |
| POST | /api/v1/merchant/kyc/submit | 提交 KYC 申请 | + |
| POST | /api/v1/merchant/kyc/uploaded-files | 查询 KYC 已上传文件列表 | + |
| POST | /api/v1/merchant/merchants/checkActive | 检查商户是否活跃 | + |
| POST | /api/v1/merchant/merchants/create | 创建商户 | + |
| POST | /api/v1/merchant/merchants/query | 分页查询商户列表 | + |
| POST | /api/v1/merchant/merchants/queryById | 根据ID查询商户 | + |
| POST | /api/v1/merchant/merchants/queryByNo | 根据商户号查询 | + |
| POST | /api/v1/merchant/merchants/queryByStatus | 根据状态查询商户 | + |
| POST | /api/v1/merchant/merchants/update | 更新商户 | + |
| POST | /api/v1/merchant/merchants/updateRiskLevel | 更新商户风控等级 | + |
| POST | /api/v1/merchant/merchants/updateStatus | 更新商户状态 | + |
| POST | /api/v1/merchant/protocols/accept | 确认协议 | + |
| POST | /api/v1/merchant/relations/accept | 接受邀请 | + |
| POST | /api/v1/merchant/relations/invite | 邀请成员 | + |
| POST | /api/v1/merchant/relations/list | 成员列表 | + |
| POST | /api/v1/merchant/relations/revoke | 撤销成员/邀请 | + |
| POST | /api/v1/merchant/statements/export | 导出对账单 CSV | + |
| POST | /api/v1/merchant/statements/generate | 手动生成对账单 | + |
| POST | /api/v1/merchant/statements/list | 查询对账单列表 | + |
| POST | /api/v1/merchant/webhooks/create | 创建 Webhook 订阅 | + |
| POST | /api/v1/merchant/webhooks/delete | 删除 Webhook 订阅 | + |
| POST | /api/v1/merchant/webhooks/list | 查询 Webhook 订阅列表 | + |
| POST | /api/v1/merchant/webhooks/test | 测试投递 | + |
| POST | /api/v1/merchant/webhooks/update | 更新 Webhook 订阅 | + |
交易
| 方法 | 路径 | 说明 | |
|---|---|---|---|
| POST | /api/v1/trade/merchant/batches/allocation/create | 创建批量归集 | + |
| POST | /api/v1/trade/merchant/batches/allocation/query | 查询批量归集列表 | + |
| POST | /api/v1/trade/merchant/batches/allocation/queryById | 查询批量归集详情 | + |
| POST | /api/v1/trade/merchant/batches/bulksend/create | 创建批量代发 | + |
| POST | /api/v1/trade/merchant/batches/bulksend/queryById | 查询批量代发详情 | + |
| POST | /api/v1/trade/merchant/dashboard/overview | 仪表盘汇总 | + |
| POST | /api/v1/trade/merchant/dashboard/today | 今日实时指标 | + |
| POST | /api/v1/trade/merchant/orders/cancel | 取消订单 | + |
| POST | /api/v1/trade/merchant/orders/create | 创建订单 | + |
| POST | /api/v1/trade/merchant/orders/queryByMerchantOrderNo | 按商户订单号查询 | + |
| POST | /api/v1/trade/merchant/orders/queryByNo | 按订单号查询 | + |
| POST | /api/v1/trade/merchant/orders/queryList | 商户订单列表 | + |
| POST | /api/v1/trade/merchant/payment-links/create | 创建支付链接 | + |
| POST | /api/v1/trade/merchant/payment-links/disable | 禁用支付链接 | + |
| POST | /api/v1/trade/merchant/payment-links/pay | 通过支付链接发起支付 | + |
| POST | /api/v1/trade/merchant/payment-links/queryByNo | 查询支付链接 | + |
| POST | /api/v1/trade/merchant/query/export | 交易 CSV 导出 | + |
| POST | /api/v1/trade/merchant/query/list | 交易分页查询 | + |
| POST | /api/v1/trade/merchant/recharges/getAddress | 获取充值地址 | + |
| POST | /api/v1/trade/merchant/refunds/apply | 申请退款 | + |
| POST | /api/v1/trade/merchant/refunds/cancel | 取消退款 | + |
| POST | /api/v1/trade/merchant/refunds/queryByNo | 按退款单号查询 | + |
| POST | /api/v1/trade/merchant/refunds/queryByOrderNo | 按原订单号查询退款 | + |