EZCart Docs
ApiV1StoreAuthOtpVerify

Verify an OTP and receive authentication tokens

Verify an OTP and receive authentication tokens. If no customer account exists for the verified phone/email, one is created.

POST
/v1/store/auth/otp/verify

Request Body

application/json

verificationId*string
Length1 <= length
otp*string
Length6 <= length <= 6

Response Body

application/json

curl -X POST "https://api-pub.ezcart.io/v1/store/auth/otp/verify" \  -H "Content-Type: application/json" \  -d '{    "verificationId": "string",    "otp": "string"  }'
{
  "customerId": "string",
  "tokens": {
    "accessToken": "string",
    "refreshToken": "string",
    "expiresIn": 0
  }
}