Skip to content

Check OTP Store

Verify the OTP code sent to store's email during registration.

Endpoint

POST /v1/accounts/otp/store/

Authentication

Not required (public endpoint)

Request Body

{
  "email": "store@example.com",
  "otp": "123456"
}

Parameters

Field Type Required Description Validation
email string Yes Store's email address Valid email format
otp string Yes 6-digit OTP code Not empty

Response

Success (200 OK)

{
  "message": "OTP confirmed successfully"
}

After successful verification, the store's account is activated (is_active: true) and they can login.

Error Responses

Store Not Found (404)

{
  "error": "Store Not Found"
}

Invalid OTP (404)

{
  "error": "Store OTP Is Not Correct"
}

Example Request

curl -X POST "https://api.luxmart.site/v1/accounts/otp/store/" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "store@example.com",
    "otp": "123456"
  }'

Notes

  • OTP is a 6-digit code sent to store's email
  • OTP verification activates the store account
  • After activation, store can login using Login Store endpoint