Sign In
Initiates OTP-based authentication by sending a verification code to the customer's mobile number.
HTTP Request
POST/api/shop/customers/auth/otp/signin
Authorization
Authorization
- Required: No
- Permission: None (public access)
- Authentication: None
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| mobile_number | String | Yes | Customer's mobile number (max 11 chars) |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Request OTP code
4response = requests.post('http://www.example.com/api/shop/customers/auth/otp/signin',
5 json={
6 'mobile_number': '09123456789'
7 }
8)
9print(response.status_code) # Should be 200 for successful OTP request1# Request OTP code
2curl -X POST "http://www.example.com/api/shop/customers/auth/otp/signin" -H "Content-Type: application/json" -d '{
3 "mobile_number": "09123456789"
4}'Status Codes
| Code | Description |
|---|---|
| 200 | OTP sent successfully |
| 400 | Bad request — invalid mobile number format |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| none | None | No response body returned |
Notes
- Mobile Number: Must be valid and properly formatted
- Rate Limiting: OTP requests may be rate-limited to prevent abuse