Skip to main content
POST
/
v1
/
subscriptions
Create Subscription Route
curl --request POST \
  --url https://api.example.com/v1/subscriptions \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan_id": "<string>"
}
'
{
  "data": {
    "razorpay_order_id": "<string>",
    "amount": 123,
    "currency": "<string>",
    "key_id": "<string>"
  },
  "success": true
}

Body

application/json
plan_id
string
required
Required string length: 1 - 100

Response

Successful Response

data
CreateSubscriptionData · object
required
success
boolean
default:true