Limits
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.
post/v1/sdk/limits
Request body
Response
Limit check result
Example response
{
"checkoutSessionId": "e3f1c2d4b6a89f001122334455667788",
"checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788",
"meterName": "requests",
"plans": [
{
"pricingOptions": [
{
"basePrice": 1999,
"currency": "USD",
"default": true,
"price": 2999,
"setupFee": 500
}
]
}
],
"remaining": 997,
"withinLimits": true
}