# External Users API ## `SendOTP` Endpoint Request Body ```json { "userCode": 10001, // int "OTP": "string" // 6 digits string } ``` Response Body ```json { "status": 0, // represent success, error codes "errorMessage": "string" } ``` ## `AuthenticateUser` Endpoint Request Body ```json { "username": "string", "hasedPassword": "string" // password after being hashed not plain text } ``` Response Body ```json { "status": 0, // represent success, error codes "errorMessage": "string", "userInfo": { "username": "string", "userCode": 1001, // int "mobile": "string", "email": "string", "name": "string", // user full name "lastUpdateDate": "2023-03-21T11:47:01.469Z", // DateTime } } ``` ## `UserInfo` Endpoint Request Body ```json { "username": "string", } ``` Response Body ```json { "status": 0, // represent success, error codes "errorMessage": "string", "userInfo": { "username": "string", "userCode": 1001, // int "mobile": "string", "email": "string", "name": "string", // user full name "lastUpdateDate": "2023-03-21T11:47:01.469Z", // DateTime } } ``` ## `HashPassword` Endpoint Request Body ```json { "password": "string", } ``` Response Body ```json { "status": 0, // represent success, error codes "errorMessage": "string", "hashedPassword": "string" } ```