# Get Loan

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1.0/Payroll/Loan:
    get:
      summary: Get Loan
      deprecated: false
      description: ''
      tags:
        - empeo/Payroll
      parameters:
        - name: CompanyName
          in: query
          description: ''
          required: true
          example: Gofive
          schema:
            type: string
        - name: EmployeeRefId
          in: query
          description: ''
          required: true
          example: DR1STM2
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {Bearer}
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userID:
                  type: string
                purchaseAmount:
                  type: integer
              required:
                - userID
                - purchaseAmount
            example:
              CompanyName: โกไฟว์
              EmployeeRefId: DR1STM2
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                statusCode: 200
                message: OK
                totals: 1
                data:
                  - employeeRefId: '99999'
                    firstName: เอบีซี
                    lastName: ดีอีเอฟ
                    firstNameEN: ABC
                    lastNameEN: DEF
                    nickName: จี
                    nickNameEN: G
                    companyName: Gofive
                    financialItemName: กู้ซื้อบ้าน
                    documentNo: INV0000001
                    dateOfPayment: '2023-07-31'
                    amount: 10000
                    totalPeriod: 12
                    lastPaymentPeriod: 1000
                    paymentPaidAmount: 6000
                    remainAmount: 6000
                    status: 2
                    remark: กู้ธนาคารกับบริษัท แบ่งจ่าย 12 งวด
                    interestType: 0
                    interestRatePerYear: 0
          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/Payroll
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-3966981-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: []

```
