---
title: "Get Get Razorpay Subscription"
method: GET
path: "/v1/subscription/{subscription_id}/razorpay_subscription"
tags: ["subscription"]
---

# Get Get Razorpay Subscription

`GET /v1/subscription/{subscription_id}/razorpay_subscription`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/subscription/{subscription_id}/razorpay_subscription`
- Auth: HTTP bearer

Get Razorpay subscription or payment object.

Returns:
    - For monthly recurring subscriptions: Razorpay subscription object with type='subscription'
    - For non-monthly plans (yearly, prepaid): Razorpay payment object with type='payment'

## Path parameters

- `subscription_id` integer, required

## Response `200`

Successful Response

- RazorpaySubscriptionOrPaymentResponse: Response model for Razorpay subscription or payment object. This model accepts the full Razorpay object (subscription or payment) and includes a type field to indicate which one it is.
  - `type` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
