Skip to main content

Get Billing Info

Retrieve your current billing information, including plan details and payment method.

GET /api/v1/billing

Authentication

JWT Bearer Token required via Authorization header.

Response

200 OK

{
"plan": {
"id": "plan_pro",
"name": "Pro",
"monthlyMinutes": 5000,
"maxFileSize": 2147483648,
"pricePerMonth": 4900,
"currency": "usd"
},
"subscription": {
"status": "active",
"currentPeriodStart": "2026-03-01T00:00:00Z",
"currentPeriodEnd": "2026-04-01T00:00:00Z",
"cancelAtPeriodEnd": false
},
"paymentMethod": {
"type": "card",
"last4": "4242",
"brand": "visa",
"expiresMonth": 12,
"expiresYear": 2028
}
}

Code Examples

cURL

curl https://api.audiospliter.com/api/v1/billing \
-H "Authorization: Bearer your_jwt_token"

Node.js

const response = await fetch('https://api.audiospliter.com/api/v1/billing', {
headers: { 'Authorization': `Bearer ${jwtToken}` },
});
const billing = await response.json();
console.log(`Plan: ${billing.plan.name}, Status: ${billing.subscription.status}`);

Python

import requests

response = requests.get(
'https://api.audiospliter.com/api/v1/billing',
headers={'Authorization': f'Bearer {jwt_token}'},
)
billing = response.json()
print(f"Plan: {billing['plan']['name']}")