回调与投递
代理商回调、商户验签公钥和事件投递。
使用流程与权限要求见 Webhook 事件通知。
PUT设置或关闭代理商回调/boma/v1/agencies/{agency}/payment-webhook
Set the callback URL for payment and refund postings in this agency. An empty URL disables new deliveries.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
agency | 路径 | string | 必填 |
请求体
application/json必填urlstring必填
响应
200Success
application/jsonurlstring必填key_idstring必填Active signing key ID.
public_keystring必填Active 32-byte Ed25519 public key, encoded as unpadded base64url.
verification_keysWebhookVerificationKey[]必填Public keys for the active key and previous versions used by queued deliveries.
查看结构
Public keys for the active key and previous versions used by queued deliveries.
key_idstring必填public_keystring必填32-byte Ed25519 public key, encoded as unpadded base64url.
retired_atstringWhen the key stopped being used for new deliveries.
date-time
defaultError
application/jsonobject · 规范允许任意字段
GET读取代理商回调地址与公钥/boma/v1/agencies/{agency}/payment-webhook
Read the agency callback URL and its Ed25519 verification keys.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
agency | 路径 | string | 必填 |
响应
200Success
application/jsonurlstring必填key_idstring必填Active signing key ID.
public_keystring必填Active 32-byte Ed25519 public key, encoded as unpadded base64url.
verification_keysWebhookVerificationKey[]必填Public keys for the active key and previous versions used by queued deliveries.
查看结构
Public keys for the active key and previous versions used by queued deliveries.
key_idstring必填public_keystring必填32-byte Ed25519 public key, encoded as unpadded base64url.
retired_atstringWhen the key stopped being used for new deliveries.
date-time
defaultError
application/jsonobject · 规范允许任意字段
POST轮换代理商验签密钥/boma/v1/agencies/{agency}/payment-webhook/rotate-key
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
agency | 路径 | string | 必填 |
响应
200Success
application/jsonurlstring必填key_idstring必填Active signing key ID.
public_keystring必填Active 32-byte Ed25519 public key, encoded as unpadded base64url.
verification_keysWebhookVerificationKey[]必填Public keys for the active key and previous versions used by queued deliveries.
查看结构
Public keys for the active key and previous versions used by queued deliveries.
key_idstring必填public_keystring必填32-byte Ed25519 public key, encoded as unpadded base64url.
retired_atstringWhen the key stopped being used for new deliveries.
date-time
defaultError
application/jsonobject · 规范允许任意字段
GET查看代理商投递记录/boma/v1/agencies/{agency}/deliveries
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
agency | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET读取商户店铺验签公钥/boma/v1/merchants/{merchant}/payment-webhook
Read the verification keys for this merchant’s shop callbacks.
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
merchant | 路径 | string | 必填 |
响应
200Success
application/jsonkey_idstring必填Active signing key ID.
public_keystring必填Active 32-byte Ed25519 public key, encoded as unpadded base64url.
verification_keysWebhookVerificationKey[]必填Public keys for the active key and previous versions used by queued deliveries.
查看结构
Public keys for the active key and previous versions used by queued deliveries.
key_idstring必填public_keystring必填32-byte Ed25519 public key, encoded as unpadded base64url.
retired_atstringWhen the key stopped being used for new deliveries.
date-time
defaultError
application/jsonobject · 规范允许任意字段
POST轮换商户店铺验签密钥/boma/v1/merchants/{merchant}/payment-webhook/rotate-key
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
merchant | 路径 | string | 必填 |
响应
200Success
application/jsonmerchant_idstring必填active_key_idstring必填updated_atstring必填- date-time
defaultError
application/jsonobject · 规范允许任意字段
GET查看历史商户投递/boma/v1/merchants/{merchant}/deliveries
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
merchant | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
GET查看店铺投递记录/boma/v1/shops/{shop}/deliveries
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
shop | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段
POST重试指定投递/boma/v1/deliveries/{delivery}/retry
参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
delivery | 路径 | string | 必填 |
响应
200Success
application/json任意值
defaultError
application/jsonobject · 规范允许任意字段