Get Employee Assets
DevelopingGET
/empeo/api/v1/assets/employeeRequest
Query Params
EmployeeRefId
string
required
CompanyName
string
required
Header Params
Authorization
string
optional
Example:
Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUhrUmVGbDFyNCJ9.eyJuYmYiOjE2OTE0MDQ1NzUsImV4cCI6MTY5MTQwODE3NSwiaXNzIjoiaHR0cHM6Ly9sb2dpbi5nb2ZpdmUuY28udGgiLCJhdWQiOlsiR09GSVZFLkFQSSIsIklNQy5BUEkiXSwiY2xpZW50X2lkIjoiRW1wZW9BdXRoZW4tT3BlbkFwaSIsInN1YiI6IjE5ZTRlZDVjLWJhNTktNDAzMi05OTUyLWYzYzQ3YWFlODUzOCIsImF1dGhfdGltZSI6MTY5MTQwNDU3NSwiaWRwIjoibG9jYWwiLCJDbGllbnRJZCI6IkVtcGVvQXV0aGVuLU9wZW5BcGkiLCJyb2xlIjoiIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiY2hhaXRoYXdhdC55YUBnbG9iYWwua29tYXRzdSIsInNpZCI6IjYzRkI4M0E5OUVGNkY3NUQ4OUFDQjc5MDIwRDc5MUI3IiwiaWF0IjoxNjkxNDA0NTc1LCJzY29wZSI6WyJHT0ZJVkUuQVBJIiwiSU1DLkFQSSIsIm9wZW5pZCIsInByb2ZpbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.VZzigCC7Znq9XGwbka1uXkKquWwuapah5GyhKZaiFFeaKW-yWYt76vodQt72RMmDQxA21MN8pYqbF2MkQlFAvP0yw9IyzpEzYsxs_0fCDWqSAQenmrJ_9o8pkX-Rc89MQvmQJBNOg0dFsYGm2W441KTK43JgP1LUIC-CPhELj3jAHNQqe6PF3j0xAl7D-fZYdbqQXI890gD0PAf8E3za4yPVsf31DV7ies3vwE8x74S5WD8sFD8R9bMC0iKmaZ_YHd4JWswF4iwiDTmifST7iKAdGizeYWXfYPC9EZD5d3GOnX_hRby2QDfuXtg1ec9esVunuYfklupTvabxiFWebw
Ocp-Apim-Subscription-Key
string
optional
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
statusCode
integer
required
message
string
required
totals
integer
required
data
array [object {28}]
required
name
string
required
Asset name
code
string
required
Asset code
serialNo
string | null
optional
Asset serial number
cost
integer
optional
Asset cost
remark
string
optional
Asset remark
hasWarranty
boolean
optional
Indicates whether asset has a warranty
monthOfWarranty
integer
optional
Number of months the asset is under warranty
datePurchase
string
optional
Purchase date of the asset
isCommon
boolean
optional
Indicates whether asset is common
isActive
boolean
optional
Indicates whether asset is active
attachmentURL
string
optional
Asset cover picture url
categoryId
integer
optional
Asset category ID
categoryName
string
optional
Asset category name
categoryNameEN
string
optional
Asset category English name
branchName
string
optional
Asset branch name
branchNameEN
string
optional
Asset branch English name
ownerEmployeeRefId
string
optional
Asset owner employee NO.
ownerEmployeeName
string
optional
Asset owner employee name
ownerEmployeeNameEN
string
optional
Asset owner employee English name
dateAssigned
string
optional
Asset assigned date
statusId
integer
optional
Asset status ID [60001 : Common, 60003 : Active, 60005 : InActive]
statusName
string
optional
Asset status name
statusNameEN
string
optional
Asset status English name
tagNames
string
optional
Asset tag names, separated by comma ( , )
createdBy
string
optional
dateCreated
string
optional
modifiedBy
string
optional
dateModified
string
optional
Example
{
"statusCode": 200,
"message": "OK",
"totals": 1,
"data": [
{
"name": "Logitech mouse",
"code": "A240600037",
"serialNo": null,
"cost": 560,
"remark": "",
"hasWarranty": false,
"monthOfWarranty": null,
"datePurchase": null,
"isCommon": true,
"isActive": false,
"attachmentURL": "https://dev.tks.co.th/empeoAPI/api/Service/GenerateAttachmentUrl/?path=Tenant/28391ad0-b221-4c93-8724-d9f370a8b1ac/AssetsManagementAttachmentFile/0/a849ee14-e30c-45ca-a8c4-4ed4210a8c71.png&type=image/png&encryptionKey=3TR2ECOmHgBNkAbkpMXRCl2YK2RrwjHPQ2cC8XGzBro=",
"categoryId": 0,
"categoryName": "อุปกรณ์ไอที",
"categoryNameEN": "IT equipments",
"branchName": null,
"branchNameEN": null,
"ownerEmployeeRefId": "99999",
"ownerEmployeeName": "สมหมาย หมายปอง",
"ownerEmployeeNameEN": "User Mos ZA008",
"dateAssigned": "2024-07-01T16:00:27.1467285",
"statusId": 60001,
"statusName": "ส่วนกลาง",
"statusNameEN": "Common",
"tagNames": null,
"createdBy": "[email protected]",
"dateCreated": "2024-06-25T13:15:05.3364876",
"modifiedBy": "[email protected]",
"dateModified": "2024-07-27T22:46:58.16"
}
]
}
Last modified: 3 months ago