PUT /admin/billing/payment-gateways/{plan_id}
Modify the name, JSON configuration or activation status of a payment gateway. Supports partial update.
Billing Service `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
Payment gateway ID |
Request Body
Schema: dto.UpdatePaymentGatewayRequest
| Field | Type | Required | Example | Constraints | Description |
config |
string |
No |
{"app_id":"654321"} |
|
|
name |
string |
No |
Alipay International |
|
|
status |
string |
No |
active |
|
|
Responses
| Status | Description | Schema |
| 200 | Payment gateway updated successfully | dto.PaymentGatewayDetailResponse |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 403 | No permission | object |
| 404 | Payment gateway not found | object |
| 500 | Internal server error | object |
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 |
Alipay |
|
|
status |
string |
No |
active |
|
|
updated_at |
string |
No |
2026-04-10T14:20:00Z |
|
|