---
title: "Subscription Create Subscription"
method: POST
path: "/api/subscription/create-subscription"
---

# Subscription Create Subscription

`POST /api/subscription/create-subscription`

## Request

- Base URL: `https://api.mednode.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mednode.in/api/subscription/create-subscription`
- Auth: HTTP bearer

Create a Razorpay Subscription (mandate/autopay flow).
Returns subscription_id for the frontend Razorpay.js checkout.
If the user is on a free trial that hasn't expired, the first charge
is deferred to after the trial ends (start_at = trial_end_date).

## Request body

- SubCreateSubscriptionRequest
  - `plan_id` string, required
  - `billing_period` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mednode/apis/mednode-ai-api.md) · [All operations](https://skmtc.dev/mednode/apis/mednode-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mednode/apis/mednode-ai-api/revisions/7e0b84effd6e?raw)
