# Get Employee Assets

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/assets/employee:
    get:
      summary: Get Employee Assets
      deprecated: false
      description: ''
      tags:
        - empeo/Core HR/Asset
      parameters:
        - name: EmployeeRefId
          in: query
          description: ''
          required: true
          schema:
            type: string
        - name: CompanyName
          in: query
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: >-
            Bearer
            eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUhrUmVGbDFyNCJ9.eyJuYmYiOjE2OTE0MDQ1NzUsImV4cCI6MTY5MTQwODE3NSwiaXNzIjoiaHR0cHM6Ly9sb2dpbi5nb2ZpdmUuY28udGgiLCJhdWQiOlsiR09GSVZFLkFQSSIsIklNQy5BUEkiXSwiY2xpZW50X2lkIjoiRW1wZW9BdXRoZW4tT3BlbkFwaSIsInN1YiI6IjE5ZTRlZDVjLWJhNTktNDAzMi05OTUyLWYzYzQ3YWFlODUzOCIsImF1dGhfdGltZSI6MTY5MTQwNDU3NSwiaWRwIjoibG9jYWwiLCJDbGllbnRJZCI6IkVtcGVvQXV0aGVuLU9wZW5BcGkiLCJyb2xlIjoiIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiY2hhaXRoYXdhdC55YUBnbG9iYWwua29tYXRzdSIsInNpZCI6IjYzRkI4M0E5OUVGNkY3NUQ4OUFDQjc5MDIwRDc5MUI3IiwiaWF0IjoxNjkxNDA0NTc1LCJzY29wZSI6WyJHT0ZJVkUuQVBJIiwiSU1DLkFQSSIsIm9wZW5pZCIsInByb2ZpbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.VZzigCC7Znq9XGwbka1uXkKquWwuapah5GyhKZaiFFeaKW-yWYt76vodQt72RMmDQxA21MN8pYqbF2MkQlFAvP0yw9IyzpEzYsxs_0fCDWqSAQenmrJ_9o8pkX-Rc89MQvmQJBNOg0dFsYGm2W441KTK43JgP1LUIC-CPhELj3jAHNQqe6PF3j0xAl7D-fZYdbqQXI890gD0PAf8E3za4yPVsf31DV7ies3vwE8x74S5WD8sFD8R9bMC0iKmaZ_YHd4JWswF4iwiDTmifST7iKAdGizeYWXfYPC9EZD5d3GOnX_hRby2QDfuXtg1ec9esVunuYfklupTvabxiFWebw
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  message:
                    type: string
                  totals:
                    type: integer
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          description: Asset name
                        code:
                          type: string
                          description: Asset code
                        serialNo:
                          type: string
                          description: Asset serial number
                          nullable: true
                        cost:
                          type: integer
                          description: Asset cost
                        remark:
                          type: string
                          description: Asset remark
                        hasWarranty:
                          type: boolean
                          description: Indicates whether asset has a warranty
                        monthOfWarranty:
                          type: integer
                          description: Number of months the asset is under warranty
                        datePurchase:
                          type: string
                          description: Purchase date of the asset
                        isCommon:
                          type: boolean
                          description: Indicates whether asset is common
                        isActive:
                          type: boolean
                          description: Indicates whether asset is active
                        attachmentURL:
                          type: string
                          description: Asset cover picture url
                        categoryId:
                          type: integer
                          description: Asset category ID
                        categoryName:
                          type: string
                          description: Asset category name
                        categoryNameEN:
                          type: string
                          description: Asset category English name
                        branchName:
                          type: string
                          description: Asset branch name
                        branchNameEN:
                          type: string
                          description: Asset branch English name
                        ownerEmployeeRefId:
                          type: string
                          description: Asset owner employee NO.
                        ownerEmployeeName:
                          type: string
                          description: Asset owner employee name
                        ownerEmployeeNameEN:
                          type: string
                          description: Asset owner employee English name
                        dateAssigned:
                          type: string
                          description: Asset assigned date
                        statusId:
                          type: integer
                          description: >-
                            Asset status ID [60001 : Common, 60003 : Active,
                            60005 : InActive]
                        statusName:
                          type: string
                          description: Asset status name
                        statusNameEN:
                          type: string
                          description: Asset status English name
                        tagNames:
                          type: string
                          description: Asset tag names, separated by comma ( , )
                        createdBy:
                          type: string
                        dateCreated:
                          type: string
                        modifiedBy:
                          type: string
                        dateModified:
                          type: string
                      x-apidog-orders:
                        - name
                        - code
                        - serialNo
                        - cost
                        - remark
                        - hasWarranty
                        - monthOfWarranty
                        - datePurchase
                        - isCommon
                        - isActive
                        - attachmentURL
                        - categoryId
                        - categoryName
                        - categoryNameEN
                        - branchName
                        - branchNameEN
                        - ownerEmployeeRefId
                        - ownerEmployeeName
                        - ownerEmployeeNameEN
                        - dateAssigned
                        - statusId
                        - statusName
                        - statusNameEN
                        - tagNames
                        - createdBy
                        - dateCreated
                        - modifiedBy
                        - dateModified
                      required:
                        - name
                        - code
                required:
                  - statusCode
                  - message
                  - totals
                  - data
                x-apidog-orders:
                  - statusCode
                  - message
                  - totals
                  - data
              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: dev.newtest@hotmail.com
                    dateCreated: '2024-06-25T13:15:05.3364876'
                    modifiedBy: dev.newtest@hotmail.com
                    dateModified: '2024-07-27T22:46:58.16'
          headers: {}
          x-apidog-name: Success
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: uyL_cJmK7q60QJZRTi5ot
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: uyL_cJmK7q60QJZRTi5ot
            scopes:
              uyL_cJmK7q60QJZRTi5ot:
                bearerAuth: []
      x-apidog-folder: empeo/Core HR/Asset
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-9071569-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: bearer
      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: []

```
