The Bigcity Microsite uses a two-step authentication process combining Customer ID validation and OTP verification.
Customer accesses the microsite and enters their assigned Customer Unique ID.
Customer ID: CUST12345
Microsite sends Customer ID to Client API. Client validates the Customer ID, generates OTP, and sends it to the registered mobile number.
POST /api/v1/auth/generate-otp
Authorization: Basic <base64(username:password)>
Content-Type: application/json
{
"customer_id": "CUST12345"
}
Customer enters OTP. Microsite calls Client OTP Verification API. Upon successful verification, customer is authenticated with JWT token and points information.
POST /api/v1/auth/verify-otp
Authorization: Basic <base64(username:password)>
Content-Type: application/json
{
"customer_id": "CUST12345",
"otp": "123456",
"reference_id": "REF123456"
}
Bigcity Microsite creates customer session using returned JWT token. The customer is redirected to the dashboard.
All Client API requests require Basic Authentication in the HTTP header.
Authorization: Basic <credentials>
Where <credentials> is the Base64 encoding of username:password.
Example: For username bigcity and password secret123:
Authorization: Basic YmlnY2l0eTpzZWNyZXQxMjM=
After successful OTP verification, a JWT token is returned. This token must be included in all subsequent API requests.
Authorization: Bearer <jwt-token>
All APIs must use HTTPS (TLS 1.2 or above). JWT-based authentication is used for session management.