Tours & Events

Billing

Subscriptions, checkout, plan changes, invoices, and payments

Billing endpoints wrap our payment processor (Razorpay). All amount fields are strings in major units to avoid floating-point loss.

Resource overview

GET/api/billing/subscription/meAPI key · Session
GET/api/billing/subscriptionAPI key · SessionRole: Super Admin
GET/api/billing/subscription/{id}API key · SessionRole: Super Admin
PATCH/api/billing/subscription/{id}API key · SessionRole: Super Admin
POST/api/billing/checkoutAPI key · SessionRole: Owner · Admin
POST/api/billing/checkout/confirmAPI key · SessionRole: Owner · Admin
POST/api/billing/plan-changeAPI key · SessionRole: Owner · Admin
POST/api/billing/cancelAPI key · SessionRole: Owner · Admin
POST/api/billing/resumeAPI key · SessionRole: Owner · Admin
GET/api/billing/invoices/{id}/pdfAPI key · SessionRole: Owner · Admin
GET/api/billing/payments/exportAPI key · SessionRole: Owner · Admin

Current subscription

GET/api/billing/subscription/meAPI key · Session

Returns the calling org's active subscription.

Checkout

POST/api/billing/checkoutAPI key · SessionRole: Owner · Admin

Creates a Razorpay order and returns the parameters the client SDK needs.

NameTypeRequiredDescription
planIdstringRequiredPlan to subscribe to.
billingCyclestringRequired`monthly` or `yearly`.
couponCodestringOptionalApply a coupon at checkout.
POST/api/billing/checkout/confirmAPI key · SessionRole: Owner · Admin

Confirms the payment after the client-side flow completes. Pass the Razorpay-returned paymentId, orderId, signature.

Plan change

POST/api/billing/plan-changeAPI key · SessionRole: Owner · Admin

Switch the active subscription to another plan. Proration is applied automatically.

Cancel & resume

POST/api/billing/cancelAPI key · SessionRole: Owner · Admin
POST/api/billing/resumeAPI key · SessionRole: Owner · Admin

Cancellation is deferred to period end by default; resume re-activates within the same period.

Invoices & payments

GET/api/billing/invoices/{id}/pdfAPI key · SessionRole: Owner · Admin

Returns a application/pdf stream. Cache headers are set for 1 hour.

GET/api/billing/payments/exportAPI key · SessionRole: Owner · Admin

CSV export of historical payments. Standard from / to query params.

On this page