Billing
Get billing overview
Return payment method, upcoming charge, and active subscriptions for the organization.
/billing/overviewUse this to see for what you will be charged: payment method, next charge, and active subscriptions.
For plan status and renewal, use Get billing status.
Enterprise authentication
Send these requests to https://api.cloud.blnkfinance.com on Blnk Cloud. On a self-hosted Enterprise deployment, send them to ENTERPRISE_PUBLIC_URL.
Pass an Enterprise API key, or an OAuth access token, in the X-blnk-key header. Create the key in Enterprise API keys, or issue a token with Enterprise OAuth.
This credential comes from the Cloud or Enterprise workspace. A Core API key belongs to the Core instance.
X-blnk-keystring
Enterprise API key, or an OAuth access token.
Response
emailstring
Billing email.
namestring
Organization or account name.
addressobject
Billing address.
cardobject
Payment method summary. brand can be a card network or a wallet such as Link. Some methods return empty last4 and 0 expiry.
next_billing_dateinteger
Unix timestamp (seconds) for the next charge.
next_billing_amountinteger
Upcoming charge in the smallest currency unit. In the sample, 10000 is $100.00 USD across both subscriptions.
currencystring
ISO currency code, such as usd.
total_monthly_spendinteger
Current monthly spend in the smallest currency unit.
active_plansinteger
Number of active plan subscriptions (type is plan).
active_deploymentsinteger
Number of active deployment subscriptions (type is deployment).
has_payment_methodboolean
Whether a payment method is on file.
available_creditinteger
Available credit in the smallest currency unit.
outstanding_balanceinteger
Outstanding balance in the smallest currency unit.
subscriptionsarray
Active subscriptions.