RiskPilot customer API
string · enum · requiredstring · requiredstring · enum · requiredboolean · requiredboolean · requiredstring | null · date-timestring | null · date-timestring | null
stringstring · uristring · uristring · uri · required
boolean · required
boolean · required
Billing
Plans, subscription state, and Stripe Checkout and portal URLs (JSON; return pages from an allow-list).
Subscription state and whether access is allowed
GET
/api/v1/customer/billing
Subscription state and whether access is allowed › Responses
OK
statusEnum values:
manual
checkout
active
past_due
canceled
packageIdaccessWhether the paid routes answer now, else why not.
Enum values:
allowed
checkout
canceled
payment_overdue
subscription_expired
canManageThe Stripe billing portal can be opened.
paymentsConfiguredpaidUntilgraceUntilpast_due: until when access continues.
emailA Stripe Checkout URL (JSON; open it yourself)
POST
/api/v1/customer/billing/checkout
successUrl and cancelUrl must match an entry of RP_BILLING_RETURN_URLS (scheme, host and path; any query, e.g. ?session={CHECKOUT_SESSION_ID}), else 400 return_url_not_allowed; without them Stripe returns to the web app's billing page. 409 subscription_active: use the portal. 503 when payments are not configured.
A Stripe Checkout URL (JSON; open it yourself) › Request Body optional
packageIdDefault: the account's package.
successUrlcancelUrlA Stripe Checkout URL (JSON; open it yourself) › Responses
OK
urlThe Stripe page to open (in a browser or an in-app browser).
A Stripe billing portal URL (card, plan, cancel)
POST
/api/v1/customer/billing/portal
Packages for sale
GET
/api/v1/customer/plans
Packages for sale › Responses
OK
paymentsConfiguredPlan[] · required
Every current package, for a pricing page
GET
/api/v1/public/packages
Every current package, for a pricing page › Responses
OK
paymentsConfiguredPublicPackage[] · required