POST /admin/billing/payment-gateways

配置一个新的支付渠道(支付宝、微信支付、Stripe 等),包含网关名称、代码和 JSON 配置

计费服务 `bearerAuth` application/json

请求体

Schema: service-billing/internal/handler/dto.CreatePaymentGatewayRequest

字段类型必填示例约束描述
code string 是 alipay
config string 是 {"app_id":"123456"}
name string 是 支付宝

响应

状态描述Schema
201支付网关创建成功service-billing/internal/handler/dto.PaymentGatewayDetailResponse
400请求参数错误object
401未授权object
403无权限object
500服务器内部错误object

引用的 Schema

service-billing/internal/handler/dto.PaymentGatewayDetailResponse

字段类型必填示例约束描述
code integer 否
data service-billing/internal/handler/dto.PaymentGatewayResponse 否
message string 否
timestamp string 否

service-billing/internal/handler/dto.PaymentGatewayResponse

字段类型必填示例约束描述
code string 否 alipay
config string 否
created_at string 否 2026-01-01T00:00:00Z
id string 否 pg_001
name string 否 支付宝
status string 否 active
updated_at string 否 2026-04-10T14:20:00Z