Create a plan

POST /api/v1/profiles prm_profiles_create

اعرض الصفحة بصيغة Markdown

name and type are the only required fields; everything else has a schema default. A plan created with no enforce toggles on is an unlimited plan.

A quota limit does nothing until its enforce toggle is on. Setting combined_bytes_limit while enforce_combined_bytes is false leaves the plan unlimited on data, and the number sits there looking like a cap. The two always travel together.

نظرة سريعة

المصادقة
رمز موظّف أو جلسة
تتطلب صلاحية
prm_profiles_create Create profiles
حد المعدل
t_mutate

المعاملات

المعامل الوصف
nameمطلوب body · string Display name.
typeمطلوب body · enum prepaid, postpaid, fup, extension or addon.
base_fee body · number Wholesale price to the reseller, major units.
end_user_price body · number Retail price, major units.
expiration_value body · integer Period length, paired with expiration_unit.
expiration_unit body · enum hours, days or months.

الأخطاء

الرمز متى تُرجَع
ERR_VALIDATION400 name or type missing, or an out-of-range value

جرّبه على شبكتك.

50 مشترك لمدة 7 أيام، من غير ما تدفع حاجة.