Skip to main content
Below are the steps to integrate Subscriptions. You can also refer to our comprehensive Subscriptions Integration guide.
  1. Create a Plan
  2. Create a Subscription
  3. Checkout Integration
Fork the Razorpay Postman Public Workspace and try the Subscription APIs using your Test API Keys. About Subscriptions Integrate With Subscriptions Set Up Webhooks Webhook Payloads

Endpoints

  • post /v1/plans - Create a Plan: Creates a plan.
  • get /v1/plans - Fetch All Plans: Fetches all the plans.
  • get /v1/plans/:id - Fetch a Plan With ID: Fetches a plan by its unique identifier.
  • post /v1/subscriptions - Create a Subscription: Creates a Subscription.
  • post /v1/subscriptions - Create a Subscription Link: Creates a Subscription link.
  • get /v1/subscriptions - Fetch All Subscriptions: Fetches all the created Subscriptions.
  • get /v1/subscriptions/:id - Fetch Subscription With ID: Fetches a Subscription details using its unique identifier.
  • post /v1/subscriptions/:id/cancel - Cancel a Subscription: Cancels a Subscription.
  • patch /v1/subscriptions/:id - Update a Subscription: Updates a Subscription.
  • get /v1/subscriptions/:id/retrieve_scheduled_changes - Fetch Details of a Pending Update: Fetches details about any update of a Subscription.
  • post /v1/subscriptions/:id/cancel_scheduled_changes - Cancel an Update: Cancels an update.
  • post /v1/subscriptions/:id/pause - Pause a Subscription: Pauses an active Subscription.
  • post /v1/subscriptions/:id/resume - Resume a Subscription: Resumes a paused Subscription.
  • get /v1/subscriptions - Fetch All Invoices for a Subscription: Fetches all the generated invoices for a Subscription.
  • post /v1/subscriptions - Link an Offer to a Subscription: Links an Offer to a Subscription.
  • delete /v1/subscriptions/:sub_id/:offer_id - Delete an Offer linked to a Subscription: Deletes an Offer linked to a Subscription.