Check usage limits for a customer and product
Changed onChecks whether a customer has an active purchase for a product and is within their usage limits. Returns a checkout URL if payment is required.
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Limit check result
Example response
{
"checkoutSessionId": "e3f1c2d4b6a89f001122334455667788",
"checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788",
"meterName": "requests",
"remaining": 997,
"withinLimits": true
}Changes
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status - info
response property
plans/items/creditsPerUnitdeprecated
- info