العودة للمرجع
POST/auth/customer/register
Authentication

تسجيل عميل محفظة

ينشئ العميل ومحفظة YER الأساسية ويعيد رمز وصول.

مستوى الوصولpublicالحدpay_apiمنع التكرارnoneالمصادقةPublic
المصدرLuxApi/Modules/LuxPayIdentity/Http/Controllers/Api/UserAuthController.php::customerRegisterLuxPayProjects @ 146e98baa44e

المعاملات

X-Request-IDheader
stringاختياري

Client correlation identifier. LuxPay may generate one when omitted.

Example: req_01J...

جسم الطلب

CustomerRegisterRequestإلزامي
full_name
string
Example: أحمد محمد
phone
string
Example: +9677XXXXXXX
email
string | null
password
string

JSON example

{
  "full_name": "أحمد محمد",
  "phone": "+9677XXXXXXX",
  "email": "string",
  "password": "string"
}

أمثلة الكود

العنوان المعروض Sandbox Placeholder حتى يتم تزويد النطاق الرسمي. لا تلصق رمز Production في متصفح عام.
curl --request POST \
  --url 'https://sandbox-api.luxpay.example/v1/auth/customer/register' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "full_name": "أحمد محمد",
  "phone": "+9677XXXXXXX",
  "email": "string",
  "password": "string"
}'

الاستجابات

201Successful response.
success
boolean
Example: true
message
string | null
token
string
customer
Customer
{
  "success": true,
  "message": "string",
  "token": "string",
  "customer": {
    "id": 1,
    "full_name": "string",
    "phone": "string"
  }
}
400
401
403
404
409
422
429
500
OpenAPI JSONOpenAPI YAMLPostman collection