Skip to main content

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

FieldTypeRequiredDescription
mobile_numberStringYesCustomer's mobile number (max 11 chars)

Example Requests

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 request

Status Codes

CodeDescription
200OTP sent successfully
400Bad request — invalid mobile number format
500Internal server error

Response Fields

FieldTypeDescription
noneNoneNo response body returned

Notes

    • Mobile Number: Must be valid and properly formatted
    • Rate Limiting: OTP requests may be rate-limited to prevent abuse