A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/billing/payment-gateways

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

计费服务 `bearerAuth` application/json

Request Body

Schema: dto.CreatePaymentGatewayRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes alipay
config string Yes {"app_id":"123456"}
name string Yes 支付宝

Responses

StatusDescriptionSchema
201支付网关创建成功dto.PaymentGatewayDetailResponse
400请求参数错误object
401未授权object
403无权限object
500服务器内部错误object

Referenced Schemas

dto.PaymentGatewayDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PaymentGatewayResponse No
message string No
timestamp string No

dto.PaymentGatewayResponse

FieldTypeRequiredExampleConstraintsDescription
code string No alipay
config string No
created_at string No 2026-01-01T00:00:00Z
id string No pg_001
name string No 支付宝
status string No active
updated_at string No 2026-04-10T14:20:00Z