Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions documents/subscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
client.subscription.create({
"plan_id": "plan_7wAosPWtrkhqZw",
"customer_notify": True,
"customer_id":"cust_D00000000000001",
"quantity": 5,
"total_count": 6,
"start_at": 1495995837,
Expand Down Expand Up @@ -38,6 +39,7 @@ client.subscription.create({
| addons | array | All parameters listed [here](https://razorpay.com/docs/api/payments/subscriptions/#create-a-subscription) are supported |
| notes | array | Notes you can enter for the contact for future reference. |
| offer_id | string | The unique identifier of the offer that is linked to the subscription. |
| customer id | string | The unique identifier of the customer that is linked to the subscription. |

**Response:**
```json
Expand All @@ -61,6 +63,7 @@ client.subscription.create({
"total_count": 6,
"paid_count": 0,
"customer_notify": true,
"customer_id":"cust_D00000000000001",
"created_at": 1580280581,
"expire_by": 1580626111,
"short_url": "https://rzp.io/i/z3b1R61A9",
Expand All @@ -81,6 +84,7 @@ client.subscription.create({
"total_count": 12,
"quantity": 1,
"expire_by": 1633237807,
"customer_id":"cust_D00000000000001",
"customer_notify": True,
"addons": [
{
Expand Down Expand Up @@ -116,6 +120,7 @@ client.subscription.create({
| notes | array | Notes you can enter for the contact for future reference. |
| notify_info | array | All parameters listed [here](https://razorpay.com/docs/api/payments/subscriptions/#create-a-subscription-link) are supported |
| offer_id | string | The unique identifier of the offer that is linked to the subscription. |
| customer_id | string | The unique identifier of the customer that is linked to the subscription. |

**Response:**
```json
Expand All @@ -139,6 +144,7 @@ client.subscription.create({
"total_count":12,
"paid_count":0,
"customer_notify":true,
"customer_id":"cust_D00000000000001",
"created_at":1580283117,
"expire_by":1581013800,
"short_url":"https://rzp.io/i/m0y0f",
Expand Down