v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Razorpay Payments

Create Razorpay Plan

Create a Razorpay Plan with its amount-bearing item definition, then mirror it locally after Razorpay succeeds.

post/api/payments/razorpay/{environment}/catalog/plans

Path parameters

environment'test' | 'live' required

Payment provider environment.

Request body

period'daily' | 'weekly' | 'monthly' | 'yearly' required
intervalinteger required
notesMetadata

Example request

{
  "item": {
    "currency": "INR"
  }
}

Response

Razorpay plan created

Example response

{
  "plan": {
    "planId": "plan_123",
    "itemId": "item_123",
    "period": "monthly",
    "interval": 1,
    "amount": 290000,
    "unitAmount": 290000,
    "currency": "inr"
  }
}