Generate Plan

POST https://api.razorpay.com/v1/plans

A plan must be set up before you can generate a subscription through Checkout or utilize the Subscription Link option.

Learn more about the Create a Plan API.

Request Body


{"period"=>"weekly", "interval"=>1, "item"=>{"name"=>"Test plan - Weekly", "amount"=>69900, "currency"=>"INR", "description"=>"Description for the test plan - Weekly"}, "notes"=>{"notes_key_1"=>"Tea, Earl Grey, Hot", "notes_key_2"=>"Tea, Earl Grey… decaf."}}

HEADERS

| Key | Datatype | Required | Description |

| -------------- | -------- | -------- | ----------- |

| Content-Type | string | | |