AuthenticateCustomer
POST
/api/customers/authenticate/
User/Customer
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/customers/authenticate/' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone_number": "+201234567890",
"otp": "123456",
"device": {
"registration_id": "your_registration_id",
"device_id": "your_device_id",
"type": "android"
},
"language": "en"
}'
Response Response Example
200 - Example 1
{
"access": "string",
"refresh": "string",
"customer": {
"id": 0,
"phone_number": "string",
"full_name": "string",
"email": "user@example.com",
"image": "http://example.com",
"gender": "M",
"birth_date": "2019-08-24",
"primary_address": 0,
"is_profile_completed": true,
"language": "en",
"country": {
"code": "EG",
"flag": "http://example.com",
"phone_code": "stri",
"name": "string"
},
"wallet": {
"balance": "string",
"balance_currency": "string",
"is_use_wallet_in_payment": true
}
}
}
Request
Body Params application/json