Skip to main content

Overview

SimpleHost uses Razorpay for payment processing. You can upgrade to the Hobby plan ($5/mo) from the dashboard or directly from the terminal using the API. All billing endpoints require authentication.

Create Checkout

Creates a Razorpay subscription for the Hobby plan and returns a checkout URL. This is the terminal-friendly way to upgrade — call this endpoint and open the returned URL in your browser to complete payment.

Response

string
Open this URL in a browser to complete payment. This is the same as shortUrl.
string
The Razorpay subscription ID. Used by the dashboard for the embedded checkout popup.
After payment is completed in the browser, your plan upgrades automatically via webhook. There is no need to call any additional endpoint.

Terminal workflow


Subscription Portal

Returns your subscription management info, including a URL to manage your subscription on Razorpay.

Response

string
URL to manage your subscription (cancel, update payment method, etc.).
string
Current subscription status: "active", "halted", "cancelled", etc.
string | null
ISO 8601 timestamp of when the current billing period ends.

Errors