VPSBG's dev hub
HomePricingKnowledge BaseContact us
HomePricingKnowledge BaseContact us
  1. Servers
  • 👋 Hello
  • API Introduction
    • API Introduction
    • How to generate API key?
  • API Reference
    • User
      • 2FA
        • Get 2FA secret key
        • Enable 2FA
        • Disable 2FA
      • Update user
      • Get account information
    • Balance
      • Get Balance
      • Deposit funds
      • List balance transactions
    • Affiliate
      • Get affiliate information
      • List conversions
      • List payouts
      • Activate affiliate program
      • Update referral code
    • Invoices
      • List invoices
      • Download an invoice
      • Download invoices
    • Support
      • Tickets
        • List tickets
        • List departments
        • List related services
        • Get a ticket
        • Create new ticket
        • Reply to ticket
        • Mark ticket as resolved
        • Download attachment
      • List plans
      • Purchase support plan
      • Renew support plan
      • Cancel support plan
      • Undo cancel request
    • SSH Keys
      • Get an SSH Key
      • Update SSH Key
      • Delete SSH Key
      • List SSH keys
      • Add SSH Key
    • Servers
      • Scale
        • List plans
        • Calculate scale cost
        • Scale a server
      • Addons
        • List available addons
        • Scale addons
        • Calculate scale cost
        • Purchase new addons
        • Cancel addon
        • Undo cancel request
      • Rescue
        • Enable rescue mode
        • Disable rescue mode
      • List plans
        GET
      • List servers
        GET
      • Server status
        GET
      • Get a server
        GET
      • Server metrics
        GET
      • Bandwidth
        GET
      • Deploy new server
        POST
      • Start a server
        POST
      • Restart a server
        POST
      • Stop a server
        POST
      • Power off
        POST
      • Cancel server
        POST
      • Undo cancel request
        DELETE
      • Change password
        PUT
      • Update hostname
        PUT
      • Update SSH Keys
        PATCH
      • Modify ISOs
        POST
      • Restore
        POST
      • Renew server
        POST
      • Reinstall Server
        POST
      • Change Primary IP
        POST
      • Calculate renew amount
        POST
    • Plans
      • Plan addon
      • Plan promo-codes
    • Snapshots
      • Get a snapshot
      • List snapshots
      • Delete snapshot
    • Backups
      • Get a backup
      • List backups
      • Delete backup
    • Server Images
      • List server images
    • Floating IPs
      • List Floating IPs
      • Plans
      • Purchase Floating IPs
      • Attach Floating IP
      • Detach Floating IP
      • Cancel Floating IP
      • Delete Floating IP Cancellation
    • IP Addresses
      • Update IP address
    • Network Protection
      • Geo filter
        • Get current geo filter
        • Set geo filter
        • Update geo filter
        • Delete geo filter
      • Whitelist
        • Get status and list of IPs
        • Whitelist IP addresses
        • Update IP addresses list
        • Delete all rules
      • Blacklist
        • Get status and list of IPs
        • Blacklist IP addresses
        • Update IP addresses list
        • Delete all rules
      • General information
      • Bandwidth
      • List blocked IPs
      • List attacks
      • Get an attack
      • Attack bandwidth
    • Orders
      • List orders
      • Get an order
      • Delete order
      • Pay orders
      • Update order
      • Change renewal period
    • ISOs
      • Get an ISO
      • Delete an ISO
      • List ISOs
      • Add ISO
  1. Servers

Renew server

POST
https://api.vpsbg.eu/v1/servers/renew
Creates renew order for your server.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "server_ids": [
        3321
    ],
    "billing_cycle": 3,
    "promo_code": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vpsbg.eu/v1/servers/renew' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "server_ids": [
        3321
    ],
    "billing_cycle": 3,
    "promo_code": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": 7801,
    "tax_rate": 1.2,
    "amount": 110,
    "amount_with_vat": 132,
    "amount_from_balance": 0,
    "payment_method": "balance",
    "status": "awaiting_payment",
    "type": "renew-service",
    "auto_pay": true,
    "promo_applicable": true,
    "created_at": "2025-02-10T16:05:29.000000Z",
    "due_at": "2025-06-19T21:00:00.000000Z",
    "payment_date": null,
    "invoices": [
        {
            "id": 8736,
            "invoice_number": "0000007801",
            "created_at": "2025-02-09T22:00:00.000000Z",
            "amount": 180,
            "amount_with_vat": 216,
            "type": "proform",
            "order_ids": [
                7801
            ]
        }
    ],
    "promo": null,
    "payment_information": null,
    "services": [
        {
            "label": "Renewal: Cloud VPS 2 GB - ubuntu-2gb [87.121.52.159]",
            "sublabel": "87.121.52.159",
            "period_from": 1750366800,
            "period_to": 1758315600,
            "is_period_changeable": true,
            "service_id": 2904,
            "service_billing_cycle": 3,
            "service_minimum_billing_cycle": 1,
            "service_type": "server",
            "amount": 75,
            "amount_with_vat": 90,
            "amount_sublabel": "",
            "promo": null
        },
        {
            "label": "cPanel & WHM license - up to 30 accounts",
            "sublabel": null,
            "period_from": 1750366800,
            "period_to": 1758315600,
            "is_period_changeable": false,
            "service_id": 1,
            "service_billing_cycle": null,
            "service_minimum_billing_cycle": null,
            "service_type": "server-addon",
            "amount": 105,
            "amount_with_vat": 126,
            "amount_sublabel": "",
            "promo": null
        }
    ]
}
🟠400Bad request (specified in the response)
🟠401Unauthorized
🟠422Validation error (specified in the response)
🔴500Server Error
Modified at 2025-06-24 07:09:26
Previous
Restore
Next
Reinstall Server
Built with