Billing and Plans¶
Razorpay subscriptions, plan-key redemption, invoices, AI credit top-ups and usage analytics. Conventions are on API Reference.
Endpoints¶
Method |
Path |
Description |
Auth |
|---|---|---|---|
GET |
|
Return the current user’s billing plan, subscription status and credit breakdown. |
Signed in |
POST |
|
Create a Razorpay customer for the logged-in user (idempotent). |
Signed in |
POST |
|
Create a Razorpay subscription for the requested plan. |
Signed in |
GET |
|
Fetch the current user’s Razorpay subscriptions from the local database. |
Signed in |
POST |
|
Cancel the active subscription at period end ( |
Signed in |
POST |
|
Verify the Razorpay payment signature returned by Checkout. |
Signed in |
POST |
|
Initiate a refund for a given Razorpay payment ID. |
Signed in |
POST |
|
Razorpay webhook receiver (verified via |
Webhook signature |
GET |
|
Fetch invoices for the current user’s subscription and one-off payments. |
Signed in |
POST |
|
Redeem an admin-issued key for a time-limited plan upgrade. |
Signed in |
GET |
|
List the current user’s redeemed plan keys and active grants. |
Signed in |
POST |
|
Allow an admin to switch which owned plan they are currently consuming. |
Admin |
POST |
|
Create a Razorpay order for purchasing AI credits (in USD). |
Signed in |
POST |
|
Verify an AI top-up payment and credit the user’s AI wallet atomically. |
Signed in |
GET |
|
Return the current user’s AI wallet balance and recent usage receipts. |
Signed in |
GET |
|
Return user usage analytics (projects, simulations, AI spend) from the database. |
Signed in |
See also
Billing and Plans for plan capabilities and version-history retention, and Workspaces and Collaboration for workspace plan resolution.