خانه › حساب و کیفپول
ثبتنام حساب — وب سرویس پیامک فراز اس ام اس
POST https://api.iranpayamak.com/ws/v1/account/register
کاربرد: ثبتنام حساب از طریق API (برای ارسال پیامک لازم نیست).
احراز هویت
این سرویس به هدر Api-Key نیاز دارد — کلید را از پنل فراز اس ام اس بگیرید. نام هدر حساس به حروف بزرگ و کوچک است و کلید نباید در query string برود.
فیلدهای درخواست
plan_id(integer) — الزامیperson_type(string) — الزامیusername(string) — الزامیfirst_name(string) — الزامیlast_name(string) — الزامیnational_code(string) — الزامیmobile(string) — الزامیdiscount_code(string) — الزامیseller_id(integer) — الزامیshould_notify_user(boolean) — الزامیredirect_url(string) — الزامی
نکات مهم این سرویس
- ثبتنام حساب از طریق API. برای ارسال پیامک لازم نیست.
نمونه بدنه
{
"plan_id": 3,
"person_type": "personal",
"username": "test_name1",
"first_name": "test fname",
"last_name": "test lname",
"national_code": "1234567890",
"mobile": "09121234567",
"discount_code": "test_code",
"seller_id": 1,
"should_notify_user": true,
"redirect_url": "https://api.iranpayamak.com"
}
پاسخها
200— OK
سرویسهای مرتبط در دستهٔ «حساب و کیفپول»
GET /ws/v1/account/balance— موجودی و اعتبار حسابPOST /ws/v1/account/wallet/charge— شارژ کیفپولGET /ws/v1/account/profile— پروفایل حسابPOST /ws/v1/account/update— بهروزرسانی حسابGET /ws/v1/lines/accessible— خطوط فرستندهی حسابPOST /ws/v1/orders/apply-discount— اعمال کد تخفیف سفارشPOST /ws/v1/orders/cancel— لغو سفارشPOST /ws/v1/orders/pay— پرداخت سفارش