Home › Panel Login & Account
Register — FarazSMS SMS web service
POST https://api.iranpayamak.com/ws/v1/auth/register
Purpose: Registers a panel user; not needed to use the APIs.
Authentication
This endpoint requires the Api-Key header — get the key from the FarazSMS panel. The header name is case-sensitive and the key must never travel in a query string.
Request fields
plan_id(integer) — requiredperson_type(string) — requiredusername(string) — requiredfirst_name(string) — requiredlast_name(string) — requirednational_code(string) — requiredmobile(string) — requireddiscount_code(string) — requiredseller_id(integer) — requiredshould_notify_user(boolean) — requiredredirect_url(string) — required
Notes for this endpoint
- Panel user registration. Not required for the web services.
Example body
{
"plan_id": 3,
"person_type": "personal",
"username": "test_name2",
"first_name": "test fname",
"last_name": "test lname",
"national_code": "1234567890",
"mobile": "09121234567",
"discount_code": "",
"seller_id": 1,
"should_notify_user": true,
"redirect_url": "https://api.iranpayamak.com"
}
Responses
200— Success