sub_XXXX). They are always registered, even when subscription.enabled is false, because they operate on raw Razorpay resources rather than the plugin-managed local subscription lifecycle.
Get subscription
GET /api/auth/razorpay/subscription/get
Retrieves a single Razorpay subscription by its id.
Server API name: fetchSubscriptionClient method:
authClient.razorpay.subscription.get({ query: { subscriptionId } })
Create subscription link
POST /api/auth/razorpay/subscription-link
Creates a Razorpay subscription and returns a hosted authorization shortUrl. Use this when you want Razorpay to handle the checkout flow for a subscription.
Server API name: createSubscriptionLinkClient method:
authClient.razorpay.subscriptionLink(...)
Add-ons to include with the subscription. Each item is an object with an
item field and optional quantity. The item can be either { id: "item_XXXX" } or a new item { name, amount, currency, description }.Errors:
SUBSCRIPTION_LINK_CREATE_FAILED.Fetch pending update
GET /api/auth/razorpay/subscription/pending-update
Retrieves the pending update details for a subscription that has a scheduled change.
Server API name: fetchPendingUpdateClient method:
authClient.razorpay.subscription.pendingUpdate({ query: { subscriptionId } })
Errors:
PENDING_UPDATE_NOT_FOUND.Cancel pending update
POST /api/auth/razorpay/subscription/cancel-update
Cancels a pending update on a subscription so the scheduled change does not take effect.
Server API name: cancelPendingUpdateClient method:
authClient.razorpay.subscription.cancelUpdate(...)
Errors:
PENDING_UPDATE_CANCEL_FAILED.Fetch invoices
GET /api/auth/razorpay/subscription/invoices
Retrieves all invoices generated for a given Razorpay subscription.
Server API name: fetchInvoicesClient method:
authClient.razorpay.subscription.invoices({ query: { subscriptionId } })
Errors:
SUBSCRIPTION_INVOICE_FETCH_FAILED.Link offer
POST /api/auth/razorpay/subscription/link-offer
Links an existing Razorpay offer to a subscription.
Server API name: linkOfferClient method:
authClient.razorpay.subscription.linkOffer(...)
Errors:
OFFER_LINK_FAILED.Delete offer
POST /api/auth/razorpay/subscription/delete-offer
Removes a linked offer from a subscription.
Server API name: deleteOfferClient method:
authClient.razorpay.subscription.deleteOffer(...)
Errors:
OFFER_DELETE_FAILED.Create subscription addon
POST /api/auth/razorpay/subscription/addon
Adds an addon to an existing Razorpay subscription. The addon is billed immediately and included in subsequent invoices.
Server API name: createSubscriptionAddonClient method:
authClient.razorpay.subscription.addon(...)
The addon item. Either reference an existing item with
{ id: "item_XXXX" } or create a new item inline with { name, amount, currency, description }.Errors:
ADDON_CREATE_FAILED.