POST /v1/billing/projected-invoice
Returns a line-item invoice projection based on the usage volumes you provide. This is a public endpoint — no authentication is required. Use it for pricing calculators, cost forecasting, or pre-sales tools.
Regional pricing adjustments are applied when you include a country_code.
Request body
Number of attestation mints to include in the projection.
Number of verifications to include in the projection.
ISO 3166-1 alpha-2 country code for regional pricing adjustment (e.g., US, NG, KE). Defaults to Tier 1 (global) rates if omitted.
Plan identifier to include the platform fee in the projection (e.g., plan_starter, plan_business). If omitted, the platform fee is excluded.
Response
Breakdown of projected charges. Line item description (e.g., “Credential mints”).
Total cost for this line item in cents.
Usage charges subtotal in cents (before platform fee).
Total projected cost in cents (usage + platform fee).
The rates applied to this projection. Per-verification rate in cents.
Monthly platform fee in cents.
Pricing region tier applied.
Regional price multiplier.
curl -X POST https://api.truthlocks.com/v1/billing/projected-invoice \
-H "Content-Type: application/json" \
-d '{
"mints": 1000,
"verifications": 5000,
"country_code": "US",
"plan_key": "plan_starter"
}'
{
"line_items" : [
{
"description" : "Credential mints" ,
"quantity" : 1000 ,
"unit_price_cents" : 25 ,
"total_cents" : 25000
},
{
"description" : "Credential verifications" ,
"quantity" : 5000 ,
"unit_price_cents" : 10 ,
"total_cents" : 50000
},
{
"description" : "Platform fee" ,
"quantity" : 1 ,
"unit_price_cents" : 2900 ,
"total_cents" : 2900
}
],
"subtotal" : 75000 ,
"total" : 77900 ,
"currency" : "USD" ,
"rates_used" : {
"mint_rate_cents" : 25 ,
"verify_rate_cents" : 10 ,
"platform_fee" : 2900 ,
"region" : "TIER_1" ,
"multiplier" : 1.0
}
}
All amounts are in cents. Divide by 100 to convert to dollars. Regional multipliers apply automatically when you include a country_code.