{
"CompanyName": "โกไฟว์",
"EmployeeRefId": "DR1STM2"
}
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"
}'
{
"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
}
]
}