- Authentication API
- Employee
- Get EmployeeGET
- Update EmployeePUT
- Get List EmployeesGET
- Get Employees List GET
- Get Mastertypes ListGET
- Get Name PrefixesGET
- Get Document TypesGET
- Update EmployeePOST
- Add Employee AttachmentPOST
- Update Employee AddressPOST
- Update Employee FamilyPOST
- Update Employee InformationPOST
- Update Employee ShiftsPOST
- Update Employee ContactPOST
- Update Employee EducationPOST
- Update Employee ExperiencePOST
- Update Employee CustomFieldPOST
- Delete EmployeePOST
- Get Employee ShiftsGET
- Get Employee RoleGET
- Get Employee Movement ListsGET
- Leave
- Master
- Payroll
- Attendance
- Welfare
- Time
- AppMan
- Asset
- Recruitment
Get Loan (Draft)
Developing
GET
https://api.gofive.co.th/empeo/api/v1.0/Payroll/Loan
Request
Query Params
CompanyName
string
required
Example:
Gofive
EmployeeRefId
string
required
Example:
DR1STM2
Header Params
Authorization
string
required
Example:
Bearer {Bearer}
Content-Type
string
required
Example:
application/json
Body Params application/json
userID
string
required
purchaseAmount
integer
required
Example
{
"CompanyName": "โกไฟว์",
"EmployeeRefId": "DR1STM2"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.gofive.co.th/empeo/api/v1.0/Payroll/Loan?CompanyName=Gofive&EmployeeRefId=DR1STM2' \
--header 'Authorization: Bearer {Bearer}' \
--header 'Content-Type: application/json' \
--data-raw '{
"CompanyName": "โกไฟว์",
"EmployeeRefId": "DR1STM2"
}'
Responses
🟢200Success
application/json
Body
object {0}
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
}
]
}