Register   |  Login             

SCP API DETAILS

User


put : /user/changePassword/{userId}

put

Description

Change password

Response Model
                            {
   errorCode (integer): Error code,
   errorDesc (string): Error description
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
password Password query String
delete : /user/deleteUser/{userId}/{userDeletedId}

delete

Description

Delete a user

Response Model
                            {
   errorCode (integer): Error code,
   errorDesc (string): Error description
}
                        
Parameters
Parameter Description Parameter Type Data Type
userDeletedId Id of account to delete path Long
userId User id path Long
get : /user/getUserDetail/{userId}/{id}

get

Description

Get user information by user Id

Response Model
                            {  
	errorCode (integer): Error code,
	errorDesc (string): Error description,
    id (long): User id,
    firstname (string): First name,
    lastname (string): Last name,
    email (string): Email,
    password (string): Password,
    phonenumber (string): Phone,
    usertype (byte): Type the user,
    status (short): Status,
    createdate (string): Status,
	parentid (long): Parent id,
	listRole : [
		{
			id (long): Id role,
			nameEng (string): Name english,
			nameVni (string): Name vietnamese,
			description (string): Description,
			status (integer): Status
		}
	]
}
                        
Parameters
Parameter Description Parameter Type Data Type
id Id of account response path Long
userId User id path Long
get : /user/getUserList/{userId}

get

Description

Get user list by Id or by search keyword

Response Model
                            {
	total (integer): Total,
    errorCode (integer): Error code,
	errorDesc (string): Error description,
    userList: List of users [
		{
			id (long): User Id,
			firstname (string): First name,
			lastname (string): Last name,
			email (string): Email,
			phonenumber (string): Phone,
			usertype (byte): Type of users,
			status (short): Status,
			createdate (string): Date Created,
			lastmodifydate (string): Date of last change,
			listRole : [
				{
					id (long): Id role,
					nameEng (string): Name english,
					nameVni (string): Name vietnamese,
					description (string): Description,
					status (integer): Status
				}
			]
		}
  ]
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
email Users email query String
start Records began query Integer
total Get the number of records query Integer
userType User Type query Integer
put : /user/updateUser/{userId}

put

Description

Update user information

Response Model
                            {
   errorCode (integer): Error code,
   errorDesc (string): Error description
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
account For users who need to update body
                                                {  
   id (long): User id,
   firstname (string): First name,
   lastname (string): Last name,
   phonenumber (string): Phone number,
   numberOfIUA (long): Number of IUA,
   usertype (byte): User type
}
                                            
put : /user/upgradeUser/{userId}

put

Description

Upgrade user

Response Model
                            {
   errorCode (integer): Error code,
   errorDesc (string): Error description
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
account For users who need to update body
                                                {  
	id (long): User id,
    firstname (string): First name,
    lastname (string): Last name,
    email (string): Email,
    phonenumber (string): Phone number,
    parentid (long): Id parent account,
    password (string): Password,
    status (short): Status account,
    usertype (byte): User type,
    numberOfIUA (long): Number of IUA,
    roleid (long[]): Array id role [ , ,]
}
                                            
Contact Information

Vietnam Post and Telecommunication Industry Technology (VNPT Technology)

Tel
Fax
Address
(+84) 4 3748 0922
(+84) 4 3748 0925
No. 124 Hoang Quoc Viet Street, Nghia Tan Ward, Cau Giay District, Hanoi
Introduction

•      VNPT Technology Introduction
•      SCP Introduction

Partners

•      Introduction
•      Certification process

Developers

•      SCP Discovery
•      APIs
•      Guideline Documents
•      Libraries

Legal

•      Terms of use
•      Privacy Policy
•      License Agreement

Copyright © 2017 VNPT Technology. All rights reserved.