方法路径摘要认证
GET/v1/admin/billing-bridge/keysList the platform billing bridge keys登录会话
POST/v1/admin/billing-bridge/keysCreate a platform billing bridge key登录会话
POST/v1/admin/billing-bridge/keys/{id}/revokeRevoke a platform billing bridge key登录会话
POST/v1/admin/billing-bridge/keys/{id}/rotateRotate the secret of a platform billing bridge key登录会话
GET/v1/admin/billing-bridge/logsList the platform billing bridge call log登录会话
GET/v1/admin/billing-bridge/settingsRead the platform billing bridge plugin settings登录会话
PUT/v1/admin/billing-bridge/settingsChange the platform billing bridge plugin settings登录会话

契约文件:api/openapi/v1/control.yaml

接口详情

GET /v1/admin/billing-bridge/keys

List the platform billing bridge keys

operationId
listPlatformBillingBridgeKeys
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Bearer session of the platform owner (platform session, billing_bridge.manage). Lease feature module.billing.bridge (403 entitlement_feature_denied when the plugin is not enabled). Keys are paged by (created_at DESC, id DESC); the secret is never returned here.

参数

listPlatformBillingBridgeKeys 参数
名称位置类型必填说明
limitqueryinteger否—
cursorquerystring否—

响应

listPlatformBillingBridgeKeys 响应
状态码说明
200One page of keys.

字段:items: array<BillingBridgeKey> next_cursor: string has_more: boolean

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
503A required dependency is unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表

POST /v1/admin/billing-bridge/keys

Create a platform billing bridge key

operationId
createPlatformBillingBridgeKey
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Bearer session of the platform owner (platform session, billing_bridge.manage), MFA step-up proof (audience billing-bridge, action billing_bridge.key.create) in step_up_token; 403 mfa_step_up_required without it. ip_allowlist is required (1–32 addresses or CIDR networks, no /0). The secret is returned once in this response and only its pepper-derived seed is stored. Audit billing_bridge.key.created.

请求体

application/json · 必填:是

createPlatformBillingBridgeKey 请求体
名称类型必填说明
namestring是—
ip_allowlistarray<string>是—
expires_atstring(date-time)否—
step_up_tokenstring是—

响应

createPlatformBillingBridgeKey 响应
状态码说明
201The key and its one-time secret.

字段:key: BillingBridgeKey secret: string

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
415Content-Type must be exactly application/json without parameters.
503A required dependency is unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表

POST /v1/admin/billing-bridge/keys/{id}/revoke

Revoke a platform billing bridge key

operationId
revokePlatformBillingBridgeKey
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Step-up action billing_bridge.key.revoke bound to the key id. Revocation is final. Audit billing_bridge.key.revoked.

参数

revokePlatformBillingBridgeKey 参数
名称位置类型必填说明
idpathstring(uuid)是—

请求体

application/json · 必填:是

revokePlatformBillingBridgeKey 请求体
名称类型必填说明
expected_revisioninteger(int64)是—
step_up_tokenstring是—

响应

revokePlatformBillingBridgeKey 响应
状态码说明
200The revoked key.

字段:id: string(uuid) key_id: string owner_scope_id: string(uuid) owner_kind: string: platform / reseller name: string ip_allowlist: array<string> status: string: active / revoked expires_at: string(date-time) last_used_at: string(date-time) created_by: string(uuid) revision: integer(int64) created_at: string(date-time) updated_at: string(date-time) revoked_at: string(date-time)

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
404请求的资源不存在。
409请求的状态与已有资源或幂等记录冲突。
503A required dependency is unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 404 资源不存在或不属于当前租户。
  • 409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表

POST /v1/admin/billing-bridge/keys/{id}/rotate

Rotate the secret of a platform billing bridge key

operationId
rotatePlatformBillingBridgeKey
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Step-up action billing_bridge.key.rotate bound to the key id. The old secret stops working at once; the new one is returned once. 409 revision_conflict on a stale expected_revision, 409 key_revoked for a revoked key. Audit billing_bridge.key.rotated.

参数

rotatePlatformBillingBridgeKey 参数
名称位置类型必填说明
idpathstring(uuid)是—

请求体

application/json · 必填:是

rotatePlatformBillingBridgeKey 请求体
名称类型必填说明
expected_revisioninteger(int64)是—
step_up_tokenstring是—

响应

rotatePlatformBillingBridgeKey 响应
状态码说明
200The key and its new one-time secret.

字段:key: BillingBridgeKey secret: string

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
404请求的资源不存在。
409请求的状态与已有资源或幂等记录冲突。
503A required dependency is unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 404 资源不存在或不属于当前租户。
  • 409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表

GET /v1/admin/billing-bridge/logs

List the platform billing bridge call log

operationId
listPlatformBillingBridgeLogs
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Calls made with the caller's own keys only (owner scope), newest first, cursor paged. Denied calls carry the internal reason_code the caller of the bridge never sees. Rows are kept 90 days.

参数

listPlatformBillingBridgeLogs 参数
名称位置类型必填说明
limitqueryinteger否—
cursorquerystring否—

响应

listPlatformBillingBridgeLogs 响应
状态码说明
200One page of log rows.

字段:items: array<BillingBridgeLogEntry> next_cursor: string has_more: boolean

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
503A required dependency is unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表

GET /v1/admin/billing-bridge/settings

Read the platform billing bridge plugin settings

operationId
getPlatformBillingBridgeSettings
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Platform plugin settings. sso_require_mfa defaults to false (bridge SSO skips the second factor); revision 0 means never saved. Lease feature module.billing.bridge (403 entitlement_feature_denied).

响应

getPlatformBillingBridgeSettings 响应
状态码说明
200Current settings.

字段:sso_require_mfa: boolean revision: integer(int64) updated_at?: string(date-time)

401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
503A required dependency is unavailable.

失败时怎么办

  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表

PUT /v1/admin/billing-bridge/settings

Change the platform billing bridge plugin settings

operationId
putPlatformBillingBridgeSettings
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:billing_bridge.manage

说明(契约原文)

Requires a step-up proof (audience billing-bridge, action billing_bridge.settings.update, bound to the owner scope): turning MFA off weakens every bridge SSO sign-in. expected_revision is the revision read (0 for the first save); a stale revision is 409. Audited as billing_bridge.settings.updated.

请求体

application/json · 必填:是

putPlatformBillingBridgeSettings 请求体
名称类型必填说明
sso_require_mfaboolean是—
expected_revisioninteger(int64)是—
step_up_tokenstring是—

响应

putPlatformBillingBridgeSettings 响应
状态码说明
200Saved settings.

字段:sso_require_mfa: boolean revision: integer(int64) updated_at?: string(date-time)

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
409请求的状态与已有资源或幂等记录冲突。
503A required dependency is unavailable.

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。
  • 503 依赖暂不可用:稍后用原 Idempotency-Key 重试。

↑ 回到列表