Autional Autional
API Reference GitHub autional.com →

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

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Payment gateway ID

Request Body

Schema: dto.UpdatePaymentGatewayRequest

FieldTypeRequiredExampleConstraintsDescription
config string No {"app_id":"654321"}
name string No Alipay International
status string No active

Responses

StatusDescriptionSchema
200Payment gateway updated successfullydto.PaymentGatewayDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
403No permissionobject
404Payment gateway not foundobject
500Internal server errorobject

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 Alipay
status string No active
updated_at string No 2026-04-10T14:20:00Z