Customer Login
Overview
Authenticate customers using email/username and password with two-factor authentication support.
Endpoint
POST /api/BPMSelfService/commands/SelfLoginCommand
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Customer username or email |
password | string | Yes | Customer password |
verificationMethodType | integer | No | 2FA method: 0=Default, 1=Email, 2=SMS, 3=Authenticator (default: 0) |
otpCode | string | Conditional | OTP code for email/SMS verification |
setupVerificationCode | string | Conditional | TOTP code for authenticator setup verification |
Response
Similar to Admin Login with customer-specific data.
Implementation
The customer login flow follows the same pattern as admin login but targets regular customers instead of administrators.