Subscription
NovyPay Subscriptions API
Overview
NovyPay allows merchants to create subscription plans (daily, weekly, monthly, or yearly) and accept recurring payments from users using their NovyPay Tokens.
Step 1: Create a Subscription Plan
Endpoint
POST https://burntpay-u44m.onrender.com/subscription/plans/Request Body
{
"name": "Basic",
"price": "3",
"billing_interval": "daily"
}name
string
Name of the subscription plan
price
string
Amount to be charged per interval (in USDC)
billing_interval
string
One of: daily, weekly, monthly, yearly
Step 2: View All Your Subscription Plans
Endpoint
Returns all subscription plans created by the authenticated developer or merchant.
Step 3: Get or Edit a Specific Plan
Endpoint
Use
GETto retrieve plan details.Use
PUTorPATCHto update an existing plan.
Example
Step 4: Authorize a Subscription (User Action)
Once a plan is created, the user must authorize the subscription using their NovyPay Token.
Endpoint
Example
After authorization, NovyPay will automatically deduct the subscription amount based on the interval.
How It Works
Merchant creates a subscription plan.
User authorizes the subscription using their NovyPay Token.
NovyPay handles recurring billing in USDC.
Merchant receives payments automatically at each interval.
Last updated