Admin Create plan
Developing
POST
/admin/plans
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vidinfra.com/v1/admin/plans' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Premium Plan",
"code": "PRM_PLN",
"type": "public",
"interval": "monthly",
"currency": "USD",
"description": "This is a Premium plan.",
"amount": 20000,
"trial_period_in_days": 5,
"country": "US",
"tax_rate": 2,
"plan_matrix": "{\"Usage-based charges\":true,\"Add-ons\":true,\"Coupons\":true,\"Prepaid usage\":true, \"Tax management\":true, \"Billing webhooks\":true, \"PDF invoices\":true, \"Customer usage\":true}",
"advance_payment": false
}'
Response Response Example
200 - OK - Success
{"message":"plan created successfully","result":{"created_at":"2024-03-30T08:21:34.525711787Z","updated_at":"2024-03-30T08:21:34.525711847Z","name":"Basic Plan","code":"BSC_PLN","type":"public","interval":"monthly","currency":"USD","status":"active","external_plan_id":null,"description":"This is a basic plan.","amount":1000,"trial_period_in_days":14,"country":"US","tax_rate":5,"plan_matrix":"{\"key\":\"value\"}","deleted_at":null,"id":"dad08e78-50f9-4cb7-beb4-d75a9ccc040d","advance_payment":false},"success":true}
Request
Body Params application/json
Responses
Modified at 2025-06-19 04:59:01