New feature
See how much of a driver's kWh allowance is left through the Partner API
The Partner API now lists each driver's kWh allowances with what they have used and what is left this period.
- Stage
- Live
- Product
- Operator API
- Posted
What's new
Your integrations can now ask the Partner API for a driver's kWh allowances. Each entry shows the allowance, the kWh used and the kWh remaining in the current period, the period itself (this calendar month, or the whole lifetime of the discount), and whether home charging counts towards it.
There is one entry for each subscription discount with a kWh allowance that the driver has redeemed, per account. So a driver with an allowance on two accounts gets two entries, and an allowance that covers home charging shows up even when no subscription sits behind it.
Why it matters
Until now, the Partner API showed the kWh cap on a subscription discount and how many kWh each charge used, but not how much of the cap was left. Your app or customer portal can now show drivers "used 42.5 of 100 kWh this month" without adding up charges yourself. The used and remaining figures are the same ones Monta prices charges against, so a new month starts with the full allowance on the 1st.
Who it's relevant for
Operators and integrators who offer subscription discounts with a kWh allowance and build their own driver-facing apps or reports on the Partner API.
How to use it
- Use a Partner API client with permission to read users.
- Ask for the kWh allowances of one of your drivers. The list is paged, like a driver's accounts.
- Show the used and remaining kWh to the driver, or use them in your own reports.
The list covers your active discounts and those of your sub-operators. A client limited to some accounts sees only the allowances on those accounts.