Skip to main content
POST
/
api
/
payments
/
razorpay
/
{environment}
/
catalog
/
plans
Create Razorpay Plan
curl --request POST \
  --url https://api.example.com/api/payments/razorpay/{environment}/catalog/plans \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "period": "monthly",
  "interval": 1,
  "item": {
    "name": "Pro monthly",
    "amount": 199900,
    "currency": "INR"
  }
}
'
{
  "plan": {
    "planId": "plan_123",
    "itemId": "item_123",
    "period": "monthly",
    "interval": 1,
    "amount": 290000,
    "unitAmount": 290000,
    "currency": "inr",
    "active": true,
    "notes": {},
    "providerCreatedAt": "2023-11-07T05:31:56Z",
    "syncedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environment
enum<string>
required

Payment provider environment.

Available options:
test,
live

Body

application/json

Notes keys starting with insforge_ are reserved and rejected.

period
enum<string>
required
Available options:
daily,
weekly,
monthly,
yearly
interval
integer
required
Required range: x >= 1
item
object
required
notes
object

Response

Razorpay plan created

plan
object
required