Check usage limits for a customer and product
Checks whether a customer has an active purchase for a product and is within their usage limits. Returns a checkout URL if payment is required.
Documentation Index
Fetch the complete documentation index at: https://docs.solvapay.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
Response
Limit check result
Remaining usage units before hitting the limit
997
Whether the customer is within their usage limits
true
True when the customer must activate a priced default plan before usage is allowed
Prepaid usage balance context when the default plan is usage-based
Checkout session ID if payment is required
"e3f1c2d4b6a89f001122334455667788"
Checkout URL if payment is required
"https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788"
Customer portal confirmation URL when activation is required (fallback when not starting checkout)
Credit balance in mils (for pre-paid usage-based plans)
Credits per usage unit (for pre-paid usage-based plans)
ISO 4217 currency code for credit fields
The meter name to use when tracking usage events
"requests"
Active plans on the product available for activation or checkout
Product the limit check applies to