API reference · Public
Public plans & prices
get
/public/plans| Authentication | None (public) |
|---|---|
| Access | Guest · Free user · Pro user · Consultant · Super admin Public — no token |
Monthly price, VAT and the active billing periods with their discounts, for the landing and pricing pages.
Prices are in the market's default_currency (USD internationally, IRT in Iran) when it has a price, in its minor unit.
online_payment_available is true when at least one gateway can take a payment: switched on, a provider with a driver
(mock, zarinpal, stripe), in a currency the provider supports and that has a price.
The landing and pricing pages also accept ?code=X (/?code=X, /pricing?code=X): the web app stores the code in
localStorage rawi_discount_code, and the app (/app/upgrade) and the app (/app/checkout) send it to POST /billing/quote and
/billing/checkout. No API change.
Responses
200 — PlansResponse
| Field | Type | Description |
|---|---|---|
currency* | string | Currency code, e.g. USD, EUR or IRT. |
monthly_price* | integer | |
vat_percent* | integer | |
periods* | object[] | |
periods[].key* | string | |
periods[].months* | integer | |
periods[].discount_percent* | integer | |
periods[].price* | any | |
periods[].full_price* | integer | |
periods[].monthly_price* | integer | |
online_payment_available* | boolean | |
gateway* | object | null | |
gateway.provider* | string | |
gateway.mode* | string | |
auto_renew_available* | boolean | |
limits* | object | Limits of the account's plan. |
limits.free* | any[] | |
limits.paid* | any[] |
json
{
"currency": "IRT",
"monthly_price": 1800000,
"vat_percent": 10,
"periods": [
{
"key": "monthly",
"months": 1,
"discount_percent": 0,
"price": 1800000,
"full_price": 1800000,
"monthly_price": 1800000
},
{
"key": "quarterly",
"months": 3,
"discount_percent": 10,
"price": 4860000,
"full_price": 5400000,
"monthly_price": 1620000
}
],
"online_payment_available": true
}
curl example
bash
curl -X GET 'http://127.0.0.1:8010/api/public/plans' \
-H 'Accept: application/json'