Create a subscription
Creates a new subscription for a customer based on an existing plan.
Authorizations
Use your Razorpay Key ID as the username and Key Secret as the password.
Body
Unique identifier of the plan to subscribe to.
"plan_00000000000001"
Total number of billing cycles for the subscription.
6
Set to 1 to notify the customer via email and SMS, 0 to suppress notifications.
0, 1 1
Unix timestamp at which the subscription should start. Defaults to the current time if not provided.
1580453311
Number of subscriptions to be charged on a single charge.
1
List of add-ons to include with the subscription.
Key-value pairs for storing additional information. Maximum 15 pairs, each key up to 40 characters and value up to 256 characters.
Response
Subscription created successfully.
A Razorpay Subscription object.
Unique identifier of the subscription.
"sub_00000000000001"
Entity type. Always subscription.
"subscription"
Unique identifier of the plan associated with this subscription.
"plan_00000000000001"
Current status of the subscription.
created, authenticated, active, pending, halted, cancelled, completed, expired "created"
Total number of billing cycles in the subscription.
6
Number of billing cycles that have been successfully paid.
0
Number of billing cycles remaining.
6
Indicates whether the customer should be notified. 1 for yes, 0 for no.
0, 1 1
Unix timestamp at which the subscription starts billing.
1580453311
Unix timestamp at which the subscription ends.
null
Unix timestamp of the next scheduled charge.
1580453311
Unix timestamp at which the subscription was created.
1580453311