Picture

Employee Enquiry

Picture

Request Header

Name
Type
Required
Description
Authorization
String
Required
OAuth token obtained after the user has provided consent and the authorized partner calls the /authorization/Connect/Token endpoint to retrieve this token
Content-Type
String
Required
Content type of request payload
Value:
- application/json
Ocp-Apim-Subscription-Key
String
Required

Request Body

Name
Type
Required
Description
employeeType
Interger
Optional
ประเภทพนักงาน
teamId
String
Optional
รหัสทีม
status
String
Optional
สถานะ
keyWord
String
Optional
คำสำคัญ
orderBy
Interger
Optional
จัดเรียงตาม
skip
Interger
Optional
จำนวนข้าม
pagelength
Interger
Required
ความยาวของหน้า
type
Interger
Optional
ประเภท

Example Request

curl --location --request POST 'https: //api.veniocrm.com/dev/v1/Employees/Enquiry' \

--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \

--header 'Authorization: Bearer <Your access_token>' \

--header 'Content-Type: application/json' \

--data-raw '{

    "employeeType": 0,

    "teamId": "string",

    "status": "string",

    "keyWord": "string",

    "orderBy": 0,

    "skip": 0,

    "pagelength": 0,

    "type": 0

}'

Download postman Collection

Response

Name
Type
Description
userId
String
รหัสผู้ใช้
fullname
String
ชื่อเต็ม
staffCode
String
รหัสพนักงาน
role
String
หน้าที่
teamName
String
ชื่อทีม
dateCreated
DateTime
เวลาที่สร้าง
uniqueName
String
ชื่อเฉพาะ
pictureUrl
String
Url รูปภาพ

Example Response

{

    "data": {

        "value": [

            {

                "userId": "string",

                "fullname": "string",

                "staffCode": "string",

                "role": "string",

                "teamName": "string",

                "dateCreated": "2021-09-17T08:29:31.613Z",

                "uniqueName": "string",

                "pictureUrl": "string"

            }

        ],

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

HTTP Status Code
Description
200
ดึงรายการข้อมูลสำเร็จ
400
ข้อมูล Request Body ไม่ถูกต้อง
401
Unauthorized
403
Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.