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",
"Type": 0,
"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,
"MonthlyChargesShield": 123,
"MonthlyChargesTaxes": 123,
"MonthlyChargesWebSockets": 123,
"MonthlyChargesDB": 123,
"MonthlyDBWrites": {
"Usage": 123,
"TotalUnits": 123
},
"MonthlyDBReads": {
"Usage": 123,
"TotalUnits": 123
},
"MonthlyDBStorage": {
"Usage": 123,
"TotalUnits": 123
},
"MonthlyDBReplica": {
"Usage": 123,
"TotalUnits": 123
},
"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
}Get the billing status 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",
"Type": 0,
"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,
"MonthlyChargesShield": 123,
"MonthlyChargesTaxes": 123,
"MonthlyChargesWebSockets": 123,
"MonthlyChargesDB": 123,
"MonthlyDBWrites": {
"Usage": 123,
"TotalUnits": 123
},
"MonthlyDBReads": {
"Usage": 123,
"TotalUnits": 123
},
"MonthlyDBStorage": {
"Usage": 123,
"TotalUnits": 123
},
"MonthlyDBReplica": {
"Usage": 123,
"TotalUnits": 123
},
"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
}API Access Key authorization header
Get the billing status details
The current account balance
The current account charges of the running month
Last recharge amount balance
The list of billing records for this account
Show child attributes
The constructed billing history chart data
Show child attributes
The total charges this month paid for European traffic
The total charges this month paid for North American traffic
The total charges this month paid for Asian and Oceanian traffic
The total charges this month paid for African traffic
The total charges this month paid for South American traffic
The total charges this month paid for Edge Storage
The total monthly charges for Bunny DNS
The monthly charges caused by optimizer.
The total monthly charges for Bunny Stream Transcribe
The total monthly charges for Bunny Stream Premium Encoding
The monthly charges caused by extra pull zones.
The monthly charges caused by extra storage zones.
The monthly charges caused by extra DNS zones.
The monthly charges caused by extra video libraries.
The total monthly charges for Bunny Edge Scripting
The total monthly charges for Bunny Edge Scripting Requests
The total monthly charges for Bunny Edge Scripting CPU usage
The total monthly charges for DRM
The total monthly charges for Magic Containers
The total monthly charges for Shield
The total monthly charges for Taxes
The total monthly charges for WebSockets
The total monthly charges for DB
The monthly charges and usage for BunnyDB row writes
Show child attributes
The monthly charges and usage for BunnyDB row reads
Show child attributes
The monthly charges and usage for BunnyDB storage
Show child attributes
The monthly charges and usage for BunnyDB replica storage
Show child attributes
Total bandwidth used by the account during this month.
Total number of Bunny DNS smart queries served this month.
Total number of Bunny DNS normal queries served this month.
Total minutes used for Bunny Stream Transcribe this month.
Total billable minutes used for Bunny Stream Premium Encoding this month.
DRM (enterprise) licenses issued this month.
Total number of edge script requests this month.
Total edge script CPU time (milliseconds) used this month.
Determines if billing is currently enabled for this user.
Determines the minimum monthly commit of the user.
The VAT rate for the user's account.
Next month VAT rate for the user's account.
If an automatic payment method is configured, this will contain the image url of the payment method
If an automatic payment method is configured with a credit card, this will contain the name of the payment credit card
If an automatic payment method is configured, this will contain the identifier of the payment method
If an automatic payments are configured, this contains the payment amount that will be made during an automatic recharge
If an automatic payments are configured, this contains the account balance amount that will trigger an automatic recharge
Determines if automatic recharge is currently enabled.
Determines the number of failed automatic recharges that the system made since the last successful payment.
Contains the list of saved payment methods on the user's account
Show child attributes
The account wide pricing discount for EU and US region.
The account wide pricing discount for South America region.
The account wide pricing discount for Africa region.
The account wide pricing discount for Asia & Oceania region.
Optimizer monthly price per pull zone for this account (unless overridden on pull zone level).
DRM (Enterprise) base monthly price per video library.
DRM (Enterprise) cost per license or default pricing tier applied if null.
Was this page helpful?