Show plans and prices in your own interface
Goal
Render your own pricing cards or your own comparison table from the real catalogue data, without copying it by hand and without it going stale when the catalogue changes.
There are two doors, and which one you take depends on where the content goes:
| Where you show it | What you use |
|---|---|
| A page with no session — your landing, a widget third parties embed | The public catalogue and the public comparison table. No credentials, a five-minute cache and per-IP rate limiting. |
| A page behind your API key — your product's dashboard | The full catalogue and one plan's price breakdown. |
Prerequisites
- For the public door, nothing.
- For the other one, an active API key (
veriko_…).
Steps
1. Fetch the public catalogue
Request the public catalogue — no credentials needed. It returns the plans that are active and flagged public, each with its prices and bullets already filtered down to the active ones:
{
"data": [
{
"type": "plan",
"id": "pro",
"attributes": {
"slug": "pro",
"name": "Pro",
"billing_model": "tiered",
"monthly_validation_limit": 5000,
"trial_days": 14,
"sort_order": 20,
"prices": [
{ "currency": "MXN", "billing_interval": "month", "kind": "base", "unit_amount": 49900, "tax_behavior": "inclusive" }
],
"features": [
{ "text_es": "500 validaciones al mes", "text_en": "500 validations per month", "icon": "check", "sort_order": 10 }
]
}
}
]
}Three things worth knowing before you render it:
unit_amountis in cents.49900is 499.00 MXN.- Bullets are bilingual inside the same object:
text_esandtext_en. Pick by your page's language; don't request the catalogue twice. monthly_validation_limitis always a number:0allows no validations.
2. Fetch the comparison table
Request the public comparison table — again with no credentials. The columns are the same plans as the previous step, in the same order — the comparison cannot drift from the cards — and each row is a bilingual dimension whose cells are either boolean (included or not) or text.
3. From an authenticated surface
The authenticated catalogue returns the active plans with their bullets, without the "public" filter. It is what the dashboard uses for its own pricing card. Send the request with your API key as a bearer token.
And for one plan's price breakdown, request that plan's prices — for example the pro plan — again with your API key as a bearer token.
Prices arrive broken down by currency × interval × kind, and meta.plan carries a mini-summary of the plan (billing_model, trial_days, included_validations) so you can render the context without a second request.
Not every plan is sold in every interval: a plan may have no annual price. Offer your user only the combinations that appear in prices; asking checkout for an interval the plan does not carry returns 422 billing_price_not_found.
4. Handing off to checkout
None of these catalogue responses exposes the Stripe price identifier: that is resolved server-side when the payment session is created. Your interface only sends what the user picked — plan_slug, currency, billing_interval — never the concrete price.
Next steps
- How usage is counted against the plan's limit: Quotas and plans.