Stripe 连接列表
GET
/web/v1/workspaces/{workspaceId}/stripe/connectionsJWT返回指定工作区中当前租户所有 Stripe 连接的分页列表。
鉴权
Auth Chain: WEB Chain — 需要
Authorization: Bearer <jwt>需要workspace:manage权限。 以下请求头由系统自动注入(前端无需处理):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
请求参数
| Name | Type | Required | In | Description |
|---|---|---|---|---|
workspaceId | string | Yes | path | 工作区业务 ID |
page | integer | No | query | 页码(从零开始)。默认值:`0` |
size | integer | No | query | 每页大小。默认值:`20` |
成功响应
成功200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"content": [
{
"bizId": "sc_abc123",
"tenantBizId": "tn_xyz789",
"connectionName": "Production Stripe",
"connectionDescription": "Main production connection",
"stripeAccountId": "acct_1234567890",
"partnerEndpoint": "https://partner.example.com/webhook",
"configJson": null,
"status": 1,
"statusName": "ACTIVE",
"createdAt": "2026-03-21T00:00:00Z",
"updatedAt": "2026-03-21T00:00:00Z"
}
],
"totalElements": 1,
"totalPages": 1,
"size": 20,
"number": 0
}
}错误响应
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}说明
- 结果仅限当前租户范围;不会返回跨租户的连接。
- 需要目标工作区的
workspace:manage权限。