Request
Curl
Response
Success
Parameters
id mandatory
: string The unique identifier of the plan. For example, plan_00000000000001.
Parameters
id
: string The unique identifier linked to a plan. For example, plan_00000000000001. This ID is used when creating a subscription for a customer.
entity
: string The entity being created. Here, it is plan.
interval
: integer Used together with period to define how often the customer should be charged.
period
: string Used together with interval to define how often the customer should be charged. Possible values:
dailyweeklymonthlyyearly
item
: array Details of the plan.
id
: string The unique identifier linked to an item. For example, item_00000000000001.
name
: string Name of the plan. For example, Test Plan.
amount
: integer Amount for the plan. When you use this plan to create a subscription, the customer will be charged this amount periodically.
currency
: string Currency for the payment. You can accept payment in any of the supported currencies.
description
: string Description for the plan. For example, Description for the test plan.
notes
: object Notes you can enter of the contact for future reference. This is a key-value pair. You can enter a maximum of 15 key-value pairs. For example, "note_key": "Monthly Gym".
created_at
: integer The Unix timestamp at which the plan was created.
Errors
an_id%7D is not a valid id- code: 400
- description: This error occurs when you are not passing the
plan_idin the API endpoint to fetch a plan based on the id. - solution: Ensure that you are passing the
plan_idin the API endpoint. For example,https://api.razorpay.com/v1/plans/plan_K8lVuxetc2OGR8.