MedNode AI Subscription API
The Subscription API from MedNode AI — 8 operation(s) for subscription.
The Subscription API from MedNode AI — 8 operation(s) for subscription.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mednode-in:mednode-in-subscription-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MedNode AI Subscription API
version: 1.0.0
tags:
- name: Subscription
paths:
/api/subscription/status:
get:
summary: Subscription Status
description: Return current plan, usage and limits for the logged-in patient.
operationId: subscription_status_api_subscription_status_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
tags:
- Subscription
/api/subscription/plans:
get:
summary: List Plans
description: Return all plans (public, no auth needed).
operationId: list_plans_api_subscription_plans_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Subscription
/api/subscription/create-order:
post:
summary: Subscription Create Order
description: Create a Razorpay order for a plan upgrade or credit-pack purchase.
operationId: subscription_create_order_api_subscription_create_order_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SubCreateOrderRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
tags:
- Subscription
/api/subscription/create-subscription:
post:
summary: Subscription Create Subscription
description: '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).'
operationId: subscription_create_subscription_api_subscription_create_subscription_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SubCreateSubscriptionRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
tags:
- Subscription
/api/subscription/verify-subscription:
post:
summary: Subscription Verify Mandate
description: 'Called after Razorpay mandate checkout completes.
Verifies HMAC, activates plan, sends WhatsApp + email confirmation.'
operationId: subscription_verify_mandate_api_subscription_verify_subscription_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SubVerifySubscriptionRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
tags:
- Subscription
/api/subscription/verify:
post:
summary: Subscription Verify
description: Verify Razorpay payment signature and activate plan / add credits.
operationId: subscription_verify_api_subscription_verify_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SubVerifyRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
tags:
- Subscription
/api/subscription/cancel:
post:
summary: Subscription Cancel
description: 'Cancel the current subscription.
- Cancels the Razorpay mandate (if any) at cycle end.
- Access continues until plan_expires_at (no refund, per policy).
- Sets status = ''cancelled''; plan_expires_at is preserved.
- Free plan users cannot cancel (nothing to cancel).'
operationId: subscription_cancel_api_subscription_cancel_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
tags:
- Subscription
/api/subscription/reactivate:
post:
summary: Subscription Reactivate
description: Reactivate a cancelled subscription (restores status to active). For testing/support use.
operationId: subscription_reactivate_api_subscription_reactivate_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
tags:
- Subscription
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SubVerifySubscriptionRequest:
properties:
razorpay_subscription_id:
type: string
title: Razorpay Subscription Id
razorpay_payment_id:
type: string
title: Razorpay Payment Id
razorpay_signature:
type: string
title: Razorpay Signature
plan_id:
type: string
title: Plan Id
billing_period:
type: string
title: Billing Period
default: monthly
type: object
required:
- razorpay_subscription_id
- razorpay_payment_id
- razorpay_signature
- plan_id
title: SubVerifySubscriptionRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
SubVerifyRequest:
properties:
razorpay_order_id:
type: string
title: Razorpay Order Id
razorpay_payment_id:
type: string
title: Razorpay Payment Id
razorpay_signature:
type: string
title: Razorpay Signature
plan_id:
anyOf:
- type: string
- type: 'null'
title: Plan Id
credit_pack_id:
anyOf:
- type: string
- type: 'null'
title: Credit Pack Id
billing_period:
type: string
title: Billing Period
default: monthly
type: object
required:
- razorpay_order_id
- razorpay_payment_id
- razorpay_signature
title: SubVerifyRequest
SubCreateSubscriptionRequest:
properties:
plan_id:
type: string
title: Plan Id
billing_period:
type: string
title: Billing Period
default: monthly
type: object
required:
- plan_id
title: SubCreateSubscriptionRequest
SubCreateOrderRequest:
properties:
plan_id:
anyOf:
- type: string
- type: 'null'
title: Plan Id
credit_pack_id:
anyOf:
- type: string
- type: 'null'
title: Credit Pack Id
billing_period:
type: string
title: Billing Period
default: monthly
type: object
title: SubCreateOrderRequest
securitySchemes:
HTTPBearer:
type: http
scheme: bearer