Purchase subscription / Cancel subscription / Switch to Pay as you Go

Path Params
string
required
Body Params
integer
enum

This updates the subscription cycle of the server
0 = Pay as you Go
1 = Monthly subscription
3 = Quarterly subscription
6 = 6-Month subscription (fixed-price games only)
12 = Yearly subscription

Allowed:
boolean

Set this to "true" to cancel the subscription, meaning that the subsription is disabled when the current period ends. Canceling keeps the current subscription cycle: cycle_months is ignored, except cycle_months=0, which switches the server to Pay as you Go instead of canceling. Servers on Pay as you Go or with a suspended subscription cannot be canceled.

Responses
200

Success

400

Invalid request, for example canceling a server that is on Pay as you Go or suspended

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!