Has Anyone Successful charged your clients yet?
# support
w
So I would like to charge my clients on the minutes they use. They will pay for the minutes they want at the beginning of the month (there is a minimum say $30/m). The bot will stop when they reach their max $. If they want, they can buy more minutes. Is there anyway to set it up? I am just wondering if anyone is able to set this up Thank you
v
Hi @wizi, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Billing Examples]() * [Pricing Overview]() * [Estimating Costs]() * [Cost Routing]() -----------------------------
### Answer To set up billing for your clients based on the minutes they use, you can utilize Vapi's capability to monitor usage and enforce billing limits. You would typically set a billing limit per client account, which aligns with the prepaid minutes they purchase. Once the usage meets the prepaid limit, Vapi can halt further services until additional minutes are purchased. This setup requires integrating billing logic into your system, possibly using the billing settings available in the Vapi dashboard to monitor and limit usage [(1)]() . You might set initial billing limits and adjust them as clients purchase more minutes. Here's a general approach using pseudocode, considering you would handle payment processes and updates to billing limits outside Vapi directly:
Copy code
python
# Pseudocode to adjust billing limits based on client purchases
def purchase_minutes(client_id, minutes, rate):
    # Calculate the cost based on rate per minute
    cost = minutes * rate
    if client_payment_process(client_id, cost):
        # Update billing limit in Vapi dashboard
        increase_billing_limit(client_id, minutes)
        return "Minutes added successfully"
    else:
        return "Payment failed"

# Example usage
client_id = 'client123'
minutes_to_add = 100
rate_per_minute = 0.3  # hypothetical rate per minute in dollars
purchase_status = purchase_minutes(client_id, minutes_to_add, rate_per_minute)
print(purchase_status)
Ensure that the billing and usage limits are aligned with your business model and are communicated clearly to your clients. This method requires regular monitoring and potentially manual adjustments unless automated through an API or similar mechanism. For detailed guidance on setting or adjusting billing limits, you can refer to Vapi's billing limits documentation.
s
Their is guy who just build a service for it. You can check that out
w
sure i will. Thank you
i think voiceglow is more like a chatbot and web application right? @Sahil
s
I don't know much you can explore it.
2 Views