PUT /admin/billing/payment-gateways/{id}
修改支付网关的名称、JSON 配置或激活状态。支持部分更新。
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
支付网关ID |
Request Body
Schema: dto.UpdatePaymentGatewayRequest
| Field | Type | Required | Example | Constraints | Description |
config |
string |
No |
{"app_id":"654321"} |
|
|
name |
string |
No |
支付宝国际版 |
|
|
status |
string |
No |
active |
|
|
Referenced Schemas
dto.PaymentGatewayDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.PaymentGatewayResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.PaymentGatewayResponse
| Field | Type | Required | Example | Constraints | Description |
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 |
|
|