支付通道与路由
支付系统、机构与商户接入、尝试记录和通道通知。
使用流程与权限要求见 通道配置与路由。
GET查看支付系统目录/boma/v1/payment-systems
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET列出机构接入/boma/v1/agencies/{agency}/payment-connections
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
agency | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
POST新增机构接入/boma/v1/agencies/{agency}/payment-connections
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
agency | 路径 | string | 必填 |
请求体
application/json必填payment_system_idstring必填display_namestring必填configobject必填查看结构
字典值结构string
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
PUT更新机构接入版本与状态/boma/v1/agency-payment-connections/{connection}
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
connection | 路径 | string | 必填 |
请求体
application/json必填display_namestring必填enabledboolean必填configobject必填查看结构
字典值结构string
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET读取机构支付凭证/boma/v1/agency-payment-connections/{connection}/credentials
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
connection | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET列出商户支付接入/boma/v1/merchants/{merchant}/payment-connections
List the merchant's payment connections.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
merchant | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
POST新增商户支付接入/boma/v1/merchants/{merchant}/payment-connections
Create a payment connection that shops belonging to this merchant can use.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
merchant | 路径 | string | 必填 |
请求体
application/json必填sales_agency_payment_connection_idstring必填display_namestring必填configobject必填查看结构
字典值结构string
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
PUT更新商户接入版本与状态/boma/v1/merchant-payment-connections/{connection}
Update a merchant payment connection and create a new configuration version.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
connection | 路径 | string | 必填 |
请求体
application/json必填display_namestring必填enabledboolean必填configobject必填查看结构
字典值结构string
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET读取商户支付凭证/boma/v1/merchant-payment-connections/{connection}/credentials
Read the current credentials for a merchant payment connection.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
connection | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET读取店铺路由策略/boma/v1/shops/{shop}/payment-routing
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
shop | 路径 | string | 必填 |
响应
200Success
application/jsonstrategystring必填Channel selection policy. ordered_failover uses configured order, random shuffles each new payment, and ip_region prioritizes connections matching the payer's client_ip location.
connection_idsstring[]必填Ordered payment connection IDs owned by the shop's merchant. An empty list clears the shop's channel selection.
至多 32 项查看结构
Ordered payment connection IDs owned by the shop's merchant. An empty list clears the shop's channel selection.
stringregion_rulesPaymentRegionRule[]For ip_region, assign each location to one selected connection. City matches precede province matches, then country matches, then the remaining connections in configured order. Missing or unlocated payer IPs use configured order.
至多 256 项查看结构
For ip_region, assign each location to one selected connection. City matches precede province matches, then country matches, then the remaining connections in configured order. Missing or unlocated payer IPs use configured order.
country_codestring必填Two-letter country or region code, for example CN.
匹配 ^[A-Za-z]{2}$provincestringProvince or state name in the IP database, for example 广东省.
最长 100 字符citystringCity name within the specified province, for example 深圳市.
最长 100 字符connection_idstring必填- uuid
defaultError
application/jsonobject · 规范允许任意字段
PUT保存店铺路由策略/boma/v1/shops/{shop}/payment-routing
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
shop | 路径 | string | 必填 |
请求体
application/json必填strategystring必填Channel selection policy. ordered_failover uses configured order, random shuffles each new payment, and ip_region prioritizes connections matching the payer's client_ip location.
connection_idsstring[]必填Ordered payment connection IDs owned by the shop's merchant. An empty list clears the shop's channel selection.
至多 32 项查看结构
Ordered payment connection IDs owned by the shop's merchant. An empty list clears the shop's channel selection.
stringregion_rulesPaymentRegionRule[]For ip_region, assign each location to one selected connection. City matches precede province matches, then country matches, then the remaining connections in configured order. Missing or unlocated payer IPs use configured order.
至多 256 项查看结构
For ip_region, assign each location to one selected connection. City matches precede province matches, then country matches, then the remaining connections in configured order. Missing or unlocated payer IPs use configured order.
country_codestring必填Two-letter country or region code, for example CN.
匹配 ^[A-Za-z]{2}$provincestringProvince or state name in the IP database, for example 广东省.
最长 100 字符citystringCity name within the specified province, for example 深圳市.
最长 100 字符connection_idstring必填- uuid
响应
200Success
application/jsonstrategystring必填Channel selection policy. ordered_failover uses configured order, random shuffles each new payment, and ip_region prioritizes connections matching the payer's client_ip location.
connection_idsstring[]必填Ordered payment connection IDs owned by the shop's merchant. An empty list clears the shop's channel selection.
至多 32 项查看结构
Ordered payment connection IDs owned by the shop's merchant. An empty list clears the shop's channel selection.
stringregion_rulesPaymentRegionRule[]For ip_region, assign each location to one selected connection. City matches precede province matches, then country matches, then the remaining connections in configured order. Missing or unlocated payer IPs use configured order.
至多 256 项查看结构
For ip_region, assign each location to one selected connection. City matches precede province matches, then country matches, then the remaining connections in configured order. Missing or unlocated payer IPs use configured order.
country_codestring必填Two-letter country or region code, for example CN.
匹配 ^[A-Za-z]{2}$provincestringProvince or state name in the IP database, for example 广东省.
最长 100 字符citystringCity name within the specified province, for example 深圳市.
最长 100 字符connection_idstring必填- uuid
defaultError
application/jsonobject · 规范允许任意字段
GET查看支付的通道尝试/boma/v1/payments/{payment}/attempts
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
payment | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET查看机构回调处理记录/boma/v1/agency-payment-connections/{connection}/notifications
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
connection | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET查看未匹配的机构通知/boma/v1/agency-payment-connections/{connection}/unmatched-notifications
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
connection | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段