Admin APIs/Pricing Plans
Create Pricing Plan
POST
/admin/pricingplansBearer token required
ADMINContent-Type:
application/jsonRequest Body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Required | 2–80 chars |
durationDays | number | Required | Min 1 |
price | number | Required | Min 0, decimal |
currency | string | Required | 3-letter ISO 4217 |
Request Example
JSON
{
"name": "Monthly Standard",
"durationDays": 30,
"price": 500,
"currency": "INR"
}Code Examples
curl -X POST 'https://<your-domain>:3001/admin/pricingplans' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Monthly Standard",
"durationDays": 30,
"price": 500,
"currency": "INR"
}'