Verifycustomerotp
Gift Card Customers
Verifycustomerotp
Verify OTP and Login Customer
Verify the OTP code sent to the customer’s email or phone. On success, finds or creates a GiftCardCustomer record and returns a session token.
Flow:
- Verify the OTP code against Redis
- Find or create a GiftCardCustomer document in MongoDB
- Update customer’s trust level and login metadata
- Create a Redis-backed session (24-hour TTL)
- Return session token and customer identity
Request Body:
target: Email or phone the OTP was sent tocode: 6-digit OTP codename: Optional customer name (used during first registration)
Status Codes:
- 200: OTP verified, session created
- 400: Invalid code, expired, or too many attempts
POST
Verifycustomerotp
Authorizations
JWT access token obtained from POST /v2/token.
Body
application/json
