# Employees Enquiry

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/Employees/Enquiry:
    post:
      summary: Employees Enquiry
      deprecated: false
      description: ดึงข้อมูลพนักงานหลายคน
      tags:
        - Venio/Employee
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: รหัส subscription key ลูกค้า
          required: true
          example: <Your-Subscription-Key>
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                employeeType:
                  type: integer
                  description: ประเภทพนักงาน
                  nullable: true
                teamId:
                  type: string
                  description: รหัสทีม
                  nullable: true
                skip:
                  type: integer
                  description: จำนวนรายการข้าม
                  nullable: true
                orderBy:
                  type: integer
                  description: จัดเรียงตาม
                  nullable: true
                keyWord:
                  type: string
                  description: คำสำคัญ
                  nullable: true
                status:
                  type: string
                  description: สถานะ
                  nullable: true
                pageLength:
                  type: integer
                  description: ความยาวของหน้า
                type:
                  type: integer
                  description: ประเภท
                  nullable: true
              x-apidog-orders:
                - employeeType
                - teamId
                - status
                - keyWord
                - orderBy
                - skip
                - pageLength
                - type
              required:
                - pageLength
            example:
              employeeType: 0
              teamId: string
              status: string
              keyWord: string
              orderBy: 0
              skip: 0
              pagelength: 0
              type: 0
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: "<p>สถานะของ\_Business\_Code\_ถ้า<br>Success\_=\_1000<br>Error\_1\_ตัว\_=\_4001<br>Error\_มากกว่า\_1\_ตัว\_=\_4002\_\_\_\_<br>หรือเป็น\_Subcode\_ที่ต้องการจะแสดงเพื่อสื่อความหมายของ\_Error\_โดย\_subcode\_จะเป็นตัวเดียวกับ\_business\_error\_code\_หรือไม่ก็ได้\_เพื่อความสะดวกในการแสดงผล<p>"
                  httpStatusCode:
                    type: integer
                    description: |-
                      สถานะ code ของ httpเช่น
                      200 Ok
                      201 Created
                      400 BadRequest
                      401 Unauthorized
                      404 Record not found
                      500 Internal Server Error
                  data:
                    type: object
                    properties:
                      value:
                        type: array
                        items:
                          type: object
                          properties:
                            userId:
                              type: string
                              description: รหัส userid ของพนักงาน
                            fullname:
                              type: string
                              description: ชื่อเต็ม
                            staffCode:
                              type: string
                              description: รหัสพนักงาน
                            role:
                              type: string
                              description: หน้าที่
                            teamName:
                              type: string
                              description: ชื่อทีม
                            recentlyActivity:
                              type: string
                              description: เวลากิจกรรมล่าสุด
                              nullable: true
                            dateCreateActivity:
                              type: string
                              description: เวลาสร้างกิจกรรม
                              nullable: true
                            dateCheckin:
                              type: string
                              description: เวลาทำการ checkin
                              nullable: true
                            dateCheckout:
                              type: string
                              description: เวลาทำการ chekout
                              nullable: true
                            dateCreateFeedBack:
                              type: string
                              description: เวลาสร้างข้อเสนอแนะfeedback
                              nullable: true
                            dateCreated:
                              type: string
                              description: เวลาที่สร้าง
                            uniqueName:
                              type: string
                              description: ชื่อเฉพาะ
                            pictureUrl:
                              type: string
                              description: url รูปภาพ
                          x-apidog-orders:
                            - userId
                            - fullname
                            - staffCode
                            - role
                            - teamName
                            - recentlyActivity
                            - dateCreateActivity
                            - dateCheckin
                            - dateCheckout
                            - dateCreateFeedBack
                            - dateCreated
                            - uniqueName
                            - pictureUrl
                          required:
                            - userId
                            - fullname
                            - staffCode
                            - role
                            - teamName
                            - dateCreated
                            - uniqueName
                            - pictureUrl
                      statusCode:
                        type: integer
                        description: |-
                          สถานะ code ของ httpเช่น
                          200 Ok
                          201 Created
                          400 BadRequest
                          401 Unauthorized
                          404 Record not found
                          500 Internal Server Error
                    x-apidog-orders:
                      - value
                      - statusCode
                    required:
                      - value
                      - statusCode
                x-apidog-orders:
                  - statusCode
                  - httpStatusCode
                  - data
                required:
                  - statusCode
                  - httpStatusCode
                  - data
              example:
                data:
                  value:
                    - userId: string
                      fullname: string
                      staffCode: string
                      role: string
                      teamName: string
                      recentlyActivity: 2023-01-21T00:00:00+0700
                      dateCreateActivity: 2023-01-18T21:07:26+0700
                      dateCheckin: 2023-01-13T10:23:39+0700
                      dateCheckout: 2023-01-13T10:26:26+0700
                      dateCreateFeedback: 2020-10-21T18:27:03+0700
                      dateCreated: 2018-11-05T10:13:59+0700
                      uniqueName: string
                      pictureUrl: string
                  statusCode: 200
                statusCode: 1000
                httpStatusCode: 200
          headers: {}
          x-apidog-name: OK
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: |-
                      สถานะ code ของ httpเช่น
                      200 Ok
                      201 Created
                      400 BadRequest
                      401 Unauthorized
                      404 Record not found
                      500 Internal Server Error
                  message:
                    type: string
                    description: คำบรรยาย error
                x-apidog-orders:
                  - statusCode
                  - message
                required:
                  - statusCode
                  - message
              example:
                statusCode: 401
                message: >-
                  Access denied due to invalid subscription key. Make sure to
                  provide a valid key for an active subscription.
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: "<p>สถานะของ\_Business\_Code\_ถ้า<br>Success\_=\_1000<br>Error\_1\_ตัว\_=\_4001<br>Error\_มากกว่า\_1\_ตัว\_=\_4002\_\_\_\_<br>หรือเป็น\_Subcode\_ที่ต้องการจะแสดงเพื่อสื่อความหมายของ\_Error\_โดย\_subcode\_จะเป็นตัวเดียวกับ\_business\_error\_code\_หรือไม่ก็ได้\_เพื่อความสะดวกในการแสดงผล<p>"
                  httpStatusCode:
                    type: integer
                    description: |-
                      สถานะ  code ของ httpเช่น
                      200 Ok
                      201 Created
                      400 BadRequest
                      401 Unauthorized
                      404 Record not found
                      500 Internal Server Error
                  errorMessage:
                    type: string
                    description: คำอธิบายเกี่ยวกับ error
                  hasError:
                    type: boolean
                    description: |-
                      มี error ไหม
                      true = มี
                      false = ไม่มี
                  data:
                    type: object
                    properties:
                      authenticationSchemes:
                        type: array
                        items:
                          type: string
                        description: ค่า Enum ของ authenticationSchemes
                    x-apidog-orders:
                      - authenticationSchemes
                    required:
                      - authenticationSchemes
                    description: |-
                      ข้อมูลที่จะแสดง ไม่จำกัดรูปแบบว่าจะเป็นเช่นไร 
                      ตอนเรียกออกมาสามารเป็น Array และ Object ได้
                x-apidog-orders:
                  - statusCode
                  - httpStatusCode
                  - errorMessage
                  - hasError
                  - data
                description: ' กรณีที่คนที่ดูไม่มี permission view data '
                required:
                  - statusCode
                  - httpStatusCode
                  - errorMessage
                  - hasError
                  - data
              example:
                data:
                  authenticationSchemes: []
                hasError: true
                errorMessage: Invalid access rights
                statusCode: 9503
                httpStatusCode: 403
          headers: {}
          x-apidog-name: Forbidden
        x-200:Bad Request:
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: "<p>สถานะของ\_Business\_Code\_ถ้า<br>Success\_=\_1000<br>Error\_1\_ตัว\_=\_4001<br>Error\_มากกว่า\_1\_ตัว\_=\_4002\_\_\_\_<br>หรือเป็น\_Subcode\_ที่ต้องการจะแสดงเพื่อสื่อความหมายของ\_Error\_โดย\_subcode\_จะเป็นตัวเดียวกับ\_business\_error\_code\_หรือไม่ก็ได้\_เพื่อความสะดวกในการแสดงผล<p>"
                  httpStatusCode:
                    type: integer
                    description: |-
                      สถานะ  code ของ httpเช่น
                      200 Ok
                      201 Created
                      400 BadRequest
                      401 Unauthorized
                      404 Record not found
                      500 Internal Server Error
                  errorMessage:
                    type: string
                    description: คำอธิบายเกี่ยวกับ error
                  hasError:
                    type: boolean
                    description: |-
                      มี error ไหม
                      true = มี
                      false = ไม่มี
                  validationErrors:
                    type: object
                    properties:
                      pageLength:
                        type: string
                        description: >-
                          คำบรรยายเกี่ยวกับ errorที่เกิดขึ้นกับการป้อน
                          pageLength
                        nullable: true
                    x-apidog-orders:
                      - pageLength
                    description: รายการ errror ที่เกี่ยวกับการ validation
                x-apidog-orders:
                  - statusCode
                  - httpStatusCode
                  - errorMessage
                  - hasError
                  - validationErrors
                description: ' กรณีที่การป้อน request body มีการผิดพลาด'
                required:
                  - statusCode
                  - httpStatusCode
                  - errorMessage
                  - hasError
                  - validationErrors
              example:
                hasError: true
                errorMessage: Missing required parameters
                validationErrors:
                  pagelength: The Pagelength field is required.
                statusCode: 1101
                httpStatusCode: 400
          headers: {}
          x-apidog-name: Bad Request
      security:
        - bearer: []
      x-apidog-folder: Venio/Employee
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-3605014-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
