获取 Webhook 密钥
GET
/internal/v1/stripe/connections/{connectionBizId}/webhook-secretInternal获取 Stripe 连接的明文 Webhook 签名密钥。这是一个仅供内部使用的接口,由 Webhook 处理服务用于验证传入的 Stripe Webhook 签名。
鉴权
Auth Chain: Internal — 无需 JWT。此接口仅限内部服务间调用,不通过公共网关暴露。
请求参数
| Name | Type | Required | In | Description |
|---|---|---|---|---|
connectionBizId | string | Yes | path | Stripe 连接的业务 ID |
成功响应
成功200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"webhookSecret": "whsec_**********"
}
}错误响应
Not Found404
{
"success": false,
"code": "4040",
"message": "Stripe tenant connection not found"
}说明
- 此接口返回敏感凭证数据,不得暴露给外部客户端。
- Webhook 密钥在存储时加密,仅在通过此内部接口提供时解密。
- 仅返回未删除的连接。