回调与投递

代理商回调、商户验签公钥和事件投递。

使用流程与权限要求见 Webhook 事件通知。

PUT设置或关闭代理商回调/boma/v1/agencies/{agency}/payment-webhook
鉴权已选身份的会话 / Boma API Key

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/json
urlstring必填
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_atstring

When the key stopped being used for new deliveries.

date-time
defaultError
application/json

object · 规范允许任意字段

GET读取代理商回调地址与公钥/boma/v1/agencies/{agency}/payment-webhook
鉴权已选身份的会话 / Boma API Key

Read the agency callback URL and its Ed25519 verification keys.

参数

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

响应

200Success
application/json
urlstring必填
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_atstring

When the key stopped being used for new deliveries.

date-time
defaultError
application/json

object · 规范允许任意字段

POST轮换代理商验签密钥/boma/v1/agencies/{agency}/payment-webhook/rotate-key
鉴权已选身份的会话 / Boma API Key

参数

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

响应

200Success
application/json
urlstring必填
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_atstring

When the key stopped being used for new deliveries.

date-time
defaultError
application/json

object · 规范允许任意字段

GET查看代理商投递记录/boma/v1/agencies/{agency}/deliveries
鉴权已选身份的会话 / Boma API Key

参数

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

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET读取商户店铺验签公钥/boma/v1/merchants/{merchant}/payment-webhook
鉴权已选身份的会话 / Boma API Key

Read the verification keys for this merchant’s shop callbacks.

参数

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

响应

200Success
application/json
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_atstring

When the key stopped being used for new deliveries.

date-time
defaultError
application/json

object · 规范允许任意字段

POST轮换商户店铺验签密钥/boma/v1/merchants/{merchant}/payment-webhook/rotate-key
鉴权已选身份的会话 / Boma API Key

参数

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

响应

200Success
application/json
merchant_idstring必填
active_key_idstring必填
updated_atstring必填
date-time
defaultError
application/json

object · 规范允许任意字段

GET查看历史商户投递/boma/v1/merchants/{merchant}/deliveries
鉴权已选身份的会话 / Boma API Key

参数

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

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

GET查看店铺投递记录/boma/v1/shops/{shop}/deliveries
鉴权已选身份的会话 / Boma API Key

参数

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

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段

POST重试指定投递/boma/v1/deliveries/{delivery}/retry
鉴权已选身份的会话 / Boma API Key

参数

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

响应

200Success
application/json

任意值

defaultError
application/json

object · 规范允许任意字段