VPSBG's dev hub
HomePricingKnowledge BaseContact us
HomePricingKnowledge BaseContact us
  1. Balance
  • 👋 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
      • Balance
        GET
      • Deposit funds
        POST
      • List balance transactions
        GET
    • 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
      • List servers
      • Server status
      • Get a server
      • Server metrics
      • Bandwidth
      • Deploy new server
      • Start a server
      • Restart a server
      • Stop a server
      • Power off
      • Cancel server
      • Undo cancel request
      • Change password
      • Update hostname
      • Update SSH Keys
      • Modify ISOs
      • Restore
      • Renew server
      • Reinstall Server
      • Change Primary IP
      • Calculate renew amount
    • Plans
      • Plan addon
      • Plan promo-codes
    • Snapshots
      • List snapshots
      • Delete snapshot
    • Backups
      • 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. Balance

Balance

GET
/balance
User
This endpoint returns information regarding the curent state of your balance.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Accept
string 
required
Default:
application/json

Request 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 GET 'https://api.vpsbg.eu/v1/balance' \
--header 'Accept;'

Responses

🟢200Account balance
application/json
Body
balance
number 
required
VAT included, if applicable for your account.
balance_limit
number 
required
estimated_expenses
integer 
required
Estimated expenses for the next 30 days.
shortfall
integer 
required
Deficit between the current balance and the expected expenses
currency
string 
required
has_valid_card
boolean 
required
last_deposit
object 
required
amount
number 
required
amount_with_vat
number 
required
payment_method
string 
required
payment_date
string 
required
unconfirmed_bitcoin_deposits
array [object {5}] 
required
tx_hash
string 
optional
tx_amount
string 
optional
amount
number 
optional
amount_with_vat
number 
optional
noticed_on
string 
optional
Example
{
  "balance": 3476.06,
  "estimated_funds": 30,
  "shortfall": 0,
  "currency": "EUR",
  "has_valid_card": true,
  "last_deposit": {
    "amount": 41.67,
    "amount_with_vat": 50,
    "payment_method": "card",
    "payment_date": "2024-10-16T12:06:12.000000Z"
  },
  "unconfirmed_bitcoin_deposits": [
    {
      "tx_hash": "cbba72720e562761a1a1a32b04624cfc16356d0fd27ff8144e15df3a5329f87a",
      "tx_amount": "0.002793",
      "amount": 58.02,
      "amount_with_vat": 69.62,
      "noticed_on": "2024-07-29T13:18:49.000000Z"
    }
  ]
}
🔴500Server Error
Modified at 2025-04-04 11:49:37
Previous
Get account information
Next
Deposit funds
Built with