Sign In Verify
Verifies the OTP code and completes the authentication process for customers.
HTTP Request
POST/api/shop/customers/auth/otp/signin/verify
Authorization
Authorization
- Required: No
- Permission: None (public access)
- Authentication: None
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| code | Integer | Yes | OTP verification code received via SMS |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Verify OTP code
4response = requests.post('http://www.example.com/api/shop/customers/auth/otp/signin/verify',
5 json={
6 'code': 123456
7 }
8)
9print(response.json())1# Verify OTP code
2curl -X POST "http://www.example.com/api/shop/customers/auth/otp/signin/verify" -H "Content-Type: application/json" -d '{
3 "code": 123456
4}'Status Codes
| Code | Description |
|---|---|
| 200 | OTP verified and authentication successful |
| 400 | Bad request — invalid or expired OTP code |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| token | String | Authentication token for API access |
Example Respones
{
"token": "someverylongtokenreturnedhere"
}
Notes
- Rate Limiting: OTP requests may be rate-limited to prevent abuse