Authorization: Bearer ********************
curl --location --request GET 'https://api.gofive.co.th/v1/Employees/' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json'
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
{
"data": {
"value": {
"userId": "string",
"username": "string",
"companyId": 1,
"companyName": "string",
"teamId": 1,
"teamName": "string",
"staffCode": "string",
"firstname": "string",
"lastname": "string",
"fullname": "string",
"position": "string",
"email": "string",
"orgString": "string",
"orgLevel": 2,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2023-01-06T12:49:44+0700",
"modifiedByUserId": "string",
"dateModified": "2023-01-19T11:56:16+0700",
"head1": "string",
"headUserId": "string",
"role": "string",
"roleId": "string",
"emailSubscription": 1,
"identityUserId": "string",
"uniqueName": "string",
"inAppSubscription": 1,
"userType": 1,
"platformId": 1,
"isLoginSsoOnly": true,
"isActiveEmpeo": true,
"refCompanyId": 1,
"refClientId": 1,
"emailSupscriptionFlag": 1,
"inAppSupscriptionFlag": 1,
"pictureUrl": "string"
},
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}