إنشاء حساب عميل جديد وإرجاع Sanctum token.
| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| full_name | body | string | Required | اسم العميل الكامل. | Ahmed Zakaria |
| body | Required | بريد فريد داخل المتجر. | customer@example.com | ||
| username | body | string | Required | اسم مستخدم فريد. | ahmed_store |
| password | body | string | Required | كلمة مرور لا تقل عن 6 أحرف. | secret123 |
| country_id | body | integer | Required | معرف الدولة. | 1 |
| state_id | body | integer | Required | معرف المحافظة/المنطقة. | 10 |
| city_id | body | integer | Optional | معرف المدينة. | 24 |
| terms_conditions | body | boolean | Required | الموافقة على الشروط. | 1 |
Response
201/200 returns users + token; 422 returns validation_errors.
cURL
curl -X POST "https://rumh.net/api/tenant/v1/register" \ -H "Accept: application/json"