支付通道与路由

支付系统、机构与商户接入、尝试记录和通道通知。

使用流程与权限要求见 通道配置与路由。

GET查看支付系统目录/boma/v1/payment-systems
鉴权已选身份的会话 / Boma API Key

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET列出机构接入/boma/v1/agencies/{agency}/payment-connections
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
agency路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

POST新增机构接入/boma/v1/agencies/{agency}/payment-connections
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
agency路径string必填

请求体

application/json必填
payment_system_idstring必填
display_namestring必填
configobject必填
查看结构
字典值结构

string

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

PUT更新机构接入版本与状态/boma/v1/agency-payment-connections/{connection}
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
connection路径string必填

请求体

application/json必填
display_namestring必填
enabledboolean必填
configobject必填
查看结构
字典值结构

string

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET读取机构支付凭证/boma/v1/agency-payment-connections/{connection}/credentials
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
connection路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET列出商户支付接入/boma/v1/merchants/{merchant}/payment-connections
鉴权已选身份的会话 / Boma API Key

List the merchant's payment connections.

参数

参数位置类型说明
merchant路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

POST新增商户支付接入/boma/v1/merchants/{merchant}/payment-connections
鉴权已选身份的会话 / Boma API Key

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/json

object · 规范允许任意字段

PUT更新商户接入版本与状态/boma/v1/merchant-payment-connections/{connection}
鉴权已选身份的会话 / Boma API Key

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/json

object · 规范允许任意字段

GET读取商户支付凭证/boma/v1/merchant-payment-connections/{connection}/credentials
鉴权已选身份的会话 / Boma API Key

Read the current credentials for a merchant payment connection.

参数

参数位置类型说明
connection路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET读取店铺路由策略/boma/v1/shops/{shop}/payment-routing
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
shop路径string必填

响应

200Success
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.

string

region_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}$
provincestring

Province or state name in the IP database, for example 广东省.

最长 100 字符
citystring

City name within the specified province, for example 深圳市.

最长 100 字符
connection_idstring必填
uuid
defaultError
application/json

object · 规范允许任意字段

PUT保存店铺路由策略/boma/v1/shops/{shop}/payment-routing
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
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.

string

region_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}$
provincestring

Province or state name in the IP database, for example 广东省.

最长 100 字符
citystring

City name within the specified province, for example 深圳市.

最长 100 字符
connection_idstring必填
uuid

响应

200Success
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.

string

region_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}$
provincestring

Province or state name in the IP database, for example 广东省.

最长 100 字符
citystring

City name within the specified province, for example 深圳市.

最长 100 字符
connection_idstring必填
uuid
defaultError
application/json

object · 规范允许任意字段

GET查看支付的通道尝试/boma/v1/payments/{payment}/attempts
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
payment路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET查看机构回调处理记录/boma/v1/agency-payment-connections/{connection}/notifications
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
connection路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET查看未匹配的机构通知/boma/v1/agency-payment-connections/{connection}/unmatched-notifications
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
connection路径string必填

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段