Skip to main content
GET
/
billing
Get Billing Details
curl --request GET \
  --url https://api.bunny.net/billing \
  --header 'AccessKey: <api-key>'
{
  "Balance": 123,
  "ThisMonthCharges": 123,
  "LastRechargeBalance": 123,
  "BillingRecords": [
    {
      "Id": 123,
      "PaymentId": "<string>",
      "Amount": 123,
      "Payer": "<string>",
      "Timestamp": "2023-11-07T05:31:56Z",
      "InvoiceAvailable": true,
      "DocumentDownloadUrl": "<string>",
      "DetailedDocumentDownloadUrl": "<string>"
    }
  ],
  "BillingHistoryChart": {},
  "MonthlyChargesEUTraffic": 123,
  "MonthlyChargesUSTraffic": 123,
  "MonthlyChargesASIATraffic": 123,
  "MonthlyChargesAFTraffic": 123,
  "MonthlyChargesSATraffic": 123,
  "MonthlyChargesStorage": 123,
  "MonthlyChargesDNS": 123,
  "MonthlyChargesOptimizer": 123,
  "MonthlyChargesTranscribe": 123,
  "MonthlyChargesPremiumEncoding": 123,
  "MonthlyChargesExtraPullZones": 123,
  "MonthlyChargesExtraStorageZones": 123,
  "MonthlyChargesExtraDnsZones": 123,
  "MonthlyChargesExtraVideoLibraries": 123,
  "MonthlyChargesScripting": 123,
  "MonthlyChargesScriptingRequests": 123,
  "MonthlyChargesScriptingCpu": 123,
  "MonthlyChargesDrm": 123,
  "MonthlyChargesMagicContainers": 123,
  "MonthlyMcCpu": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyMcMemory": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyMcIp": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyMcIngressTraffic": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyMcEgressTraffic": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyMcVolumes": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyChargesShield": 123,
  "MonthlyChargesTaxes": 123,
  "MonthlyChargesWebSockets": 123,
  "MonthlyChargesDB": 123,
  "MonthlyDBWrites": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyDBReads": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyDBStorage": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyDBReplica": {
    "Usage": 123,
    "TotalUnits": 123,
    "MeasuringUnit": "<string>"
  },
  "MonthlyBandwidthUsed": 123,
  "MonthlyDnsSmartQueriesServed": 123,
  "MonthlyDnsNormalQueriesServed": 123,
  "MonthlyTranscriptionMinutes": 123,
  "MonthlyPremiumEncodingBillableMinutes": 123,
  "MonthlyDRMLicensesIssued": 123,
  "MonthlyScriptingRequests": 123,
  "MonthlyScriptingCpuTime": 123,
  "BillingEnabled": true,
  "MinimumMonthlyCommit": 123,
  "VATRate": 123,
  "NextMonthVATRate": 123,
  "AutomaticPaymentImageUrl": "<string>",
  "AutomaticPaymentCardType": "<string>",
  "AutomaticPaymentIdentifier": "<string>",
  "AutomaticPaymentAmount": 123,
  "AutomaticRechargeTreshold": 123,
  "AutomaticRechargeEnabled": true,
  "AutomaticPaymentFailureCount": 123,
  "SavedPaymentMethods": [
    {
      "Token": "<string>",
      "ImageUrl": "<string>",
      "ExpirationDate": "<string>",
      "LastFour": "<string>",
      "Email": "<string>"
    }
  ],
  "EUUSDiscount": 123,
  "SouthAmericaDiscount": 123,
  "AfricaDiscount": 123,
  "AsiaOceaniaDiscount": 123,
  "OptimizerMonthlyPrice": 123,
  "DrmBaseMonthlyPrice": 123,
  "DrmCostPerLicense": 123
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Response

Get the billing status details

Balance
number<double>

The current account balance

ThisMonthCharges
number<double>

The current account charges of the running month

LastRechargeBalance
number<double>

Last recharge amount balance

BillingRecords
object[] | null

The list of billing records for this account

BillingHistoryChart
object | null

The constructed billing history chart data

MonthlyChargesEUTraffic
number<double>

The total charges this month paid for European traffic

MonthlyChargesUSTraffic
number<double>

The total charges this month paid for North American traffic

MonthlyChargesASIATraffic
number<double>

The total charges this month paid for Asian and Oceanian traffic

MonthlyChargesAFTraffic
number<double>

The total charges this month paid for African traffic

MonthlyChargesSATraffic
number<double>

The total charges this month paid for South American traffic

MonthlyChargesStorage
number<double>

The total charges this month paid for Edge Storage

MonthlyChargesDNS
number<double>

The total monthly charges for Bunny DNS

MonthlyChargesOptimizer
number<double>

The monthly charges caused by optimizer.

MonthlyChargesTranscribe
number<double>

The total monthly charges for Bunny Stream Transcribe

MonthlyChargesPremiumEncoding
number<decimal>

The total monthly charges for Bunny Stream Premium Encoding

MonthlyChargesExtraPullZones
number<double>

The monthly charges caused by extra pull zones.

MonthlyChargesExtraStorageZones
number<double>

The monthly charges caused by extra storage zones.

MonthlyChargesExtraDnsZones
number<double>

The monthly charges caused by extra DNS zones.

MonthlyChargesExtraVideoLibraries
number<double>

The monthly charges caused by extra video libraries.

MonthlyChargesScripting
number<double>

The total monthly charges for Bunny Edge Scripting

MonthlyChargesScriptingRequests
number<double>

The total monthly charges for Bunny Edge Scripting Requests

MonthlyChargesScriptingCpu
number<double>

The total monthly charges for Bunny Edge Scripting CPU usage

MonthlyChargesDrm
number<double>

The total monthly charges for DRM

MonthlyChargesMagicContainers
number<decimal>

The total monthly charges for Magic Containers

MonthlyMcCpu
object | null

The monthly charges and usage for Magic Containers CPU

MonthlyMcMemory
object | null

The monthly charges and usage for Magic Containers Memory

MonthlyMcIp
object | null

The monthly charges and usage for Magic Containers Anycast IP

MonthlyMcIngressTraffic
object | null

The monthly charges and usage for Magic Containers Ingress Traffic

MonthlyMcEgressTraffic
object | null

The monthly charges and usage for Magic Containers Egress Traffic

MonthlyMcVolumes
object | null

The monthly charges and usage for Magic Containers Persistent Volumes

MonthlyChargesShield
number<decimal>

The total monthly charges for Shield

MonthlyChargesTaxes
number<decimal>

The total monthly charges for Taxes

MonthlyChargesWebSockets
number<decimal>

The total monthly charges for WebSockets

MonthlyChargesDB
number<decimal>

The total monthly charges for DB

MonthlyDBWrites
object | null

The monthly charges and usage for BunnyDB row writes

MonthlyDBReads
object | null

The monthly charges and usage for BunnyDB row reads

MonthlyDBStorage
object | null

The monthly charges and usage for BunnyDB storage

MonthlyDBReplica
object | null

The monthly charges and usage for BunnyDB replica storage

MonthlyBandwidthUsed
integer<int64>

Total bandwidth used by the account during this month.

MonthlyDnsSmartQueriesServed
integer<int64>

Total number of Bunny DNS smart queries served this month.

MonthlyDnsNormalQueriesServed
integer<int64>

Total number of Bunny DNS normal queries served this month.

MonthlyTranscriptionMinutes
integer<int64>

Total minutes used for Bunny Stream Transcribe this month.

MonthlyPremiumEncodingBillableMinutes
integer<int64>

Total billable minutes used for Bunny Stream Premium Encoding this month.

MonthlyDRMLicensesIssued
integer<int64>

DRM (enterprise) licenses issued this month.

MonthlyScriptingRequests
integer<int64>

Total number of edge script requests this month.

MonthlyScriptingCpuTime
integer<int64>

Total edge script CPU time (milliseconds) used this month.

BillingEnabled
boolean

Determines if billing is currently enabled for this user.

MinimumMonthlyCommit
number<double>

Determines the minimum monthly commit of the user.

VATRate
number<decimal>

The VAT rate for the user's account.

NextMonthVATRate
number<decimal>

Next month VAT rate for the user's account.

AutomaticPaymentImageUrl
string | null

If an automatic payment method is configured, this will contain the image url of the payment method

AutomaticPaymentCardType
string | null

If an automatic payment method is configured with a credit card, this will contain the name of the payment credit card

AutomaticPaymentIdentifier
string | null

If an automatic payment method is configured, this will contain the identifier of the payment method

AutomaticPaymentAmount
number<decimal>

If an automatic payments are configured, this contains the payment amount that will be made during an automatic recharge

AutomaticRechargeTreshold
number<decimal>

If an automatic payments are configured, this contains the account balance amount that will trigger an automatic recharge

AutomaticRechargeEnabled
boolean

Determines if automatic recharge is currently enabled.

AutomaticPaymentFailureCount
integer<int32>

Determines the number of failed automatic recharges that the system made since the last successful payment.

SavedPaymentMethods
object[] | null

Contains the list of saved payment methods on the user's account

EUUSDiscount
integer<int32>

The account wide pricing discount for EU and US region.

SouthAmericaDiscount
integer<int32>

The account wide pricing discount for South America region.

AfricaDiscount
integer<int32>

The account wide pricing discount for Africa region.

AsiaOceaniaDiscount
integer<int32>

The account wide pricing discount for Asia & Oceania region.

OptimizerMonthlyPrice
number<decimal>

Optimizer monthly price per pull zone for this account (unless overridden on pull zone level).

DrmBaseMonthlyPrice
number<decimal>

DRM (Enterprise) base monthly price per video library.

DrmCostPerLicense
number<decimal> | null

DRM (Enterprise) cost per license or default pricing tier applied if null.