POST
Authentication/auth/customer/loginدخول عميل المحفظة
يصادق عميل المحفظة بالهاتف وكلمة المرور ويعيد رمز وصول.
مستوى الوصولpublicالحدpay_apiمنع التكرارnoneالمصادقةPublic
المصدر
LuxApi/Modules/LuxPayIdentity/Http/Controllers/Api/UserAuthController.php::customerLoginLuxPayProjects @ 146e98baa44eالمعاملات
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...جسم الطلب
CustomerLoginRequestإلزامي
phonestring
Example:
+9677XXXXXXXpasswordstring
JSON example
{
"phone": "+9677XXXXXXX",
"password": "string"
}أمثلة الكود
العنوان المعروض Sandbox Placeholder حتى يتم تزويد النطاق الرسمي. لا تلصق رمز Production في متصفح عام.
curl --request POST \
--url 'https://sandbox-api.luxpay.example/v1/auth/customer/login' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"phone": "+9677XXXXXXX",
"password": "string"
}'الاستجابات
200Successful response.
successboolean
Example:
truemessagestring | null
tokenstring
customerCustomer
{
"success": true,
"message": "string",
"token": "string",
"customer": {
"id": 1,
"full_name": "string",
"phone": "string"
}
}