cURL
curl --request GET \ --url https://getbill.io/external-api/v1/company/credits \ --header 'Authorization: <authorization>'
{ "error": false, "message": "Success", "data": { "current_credits": 847, "subscription": { "plan": "Professional", "status": "active", "expires_at": "2024-02-15T23:59:59Z" } } }
Retrieve credit balance and subscription information
company:read
curl -X GET "/external-api/v1/company/credits" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json"
false
Show data
Show subscription
{ "error": true, "message": "Authentication credentials are missing or invalid", "code": 401 }