Estimate Control from an audit's volume and companies
GET
/billing/plan-recommendation
const url = 'https://api.invogi.com/v1/billing/plan-recommendation';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.invogi.com/v1/billing/plan-recommendation \ --header 'Authorization: Bearer <token>'The monthly Control price for the invoice volume the audit saw (its invoices over the months it covered) and the workspace’s companies, including additional companies and expected overage. Suggests Enterprise above 20,000 invoices/month or Control’s 10-company self-service capacity. Euro prices, before tax. Overage uses marginal volume bands. From scan_id, else the latest completed scan with results; null without one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Query Parameters
Section titled “Query Parameters”scan_id
string format: uuid
Responses
Section titled “Responses”Recommendation
Media typeapplication/json
object
recommendation
required
object
plan_code
required
string
billing_interval
required
string
additional_entities
required
integer
estimated_monthly_minor
required
integer
expected_overage
required
Expected invoices above the monthly allowance
integer
enterprise_suggested
required
boolean
currency
required
string
monthly_invoices
required
integer
companies
required
integer
basis
required
object
scan_id
required
string format: uuid
invoices
required
integer
months
required
integer
Examples
Examplecontrol
{ "recommendation": { "plan_code": "CONTROL", "billing_interval": "month", "additional_entities": 0, "estimated_monthly_minor": 44900, "expected_overage": 0, "enterprise_suggested": false, "currency": "EUR", "monthly_invoices": 525, "companies": 1, "basis": { "scan_id": "4f1c2a9e-6f4b-4b8e-9a51-2f1d3c7b8e10", "invoices": 6300, "months": 12 } }}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json