Get Cost Center
DevelopingPOST
/empeo/api/v1/Payroll/cost-centersRequest
Accepted value: application/json
Authorization credential utilized in API requests
Api subscription key get from the OpenAPI integration setting page
{
"CompanyName": "empeo Dev Test",
"Year": 2024,
"PeriodCalculateNo": 1
}
Request samples
Responses
Company Code
Company Name
Financial item code
Financial item name
Thai name of organization level 2 in employee financial transaction list
Cost center from the organization level 2 in the employee financial transaction list
Thai name of organization level 3 in employee financial transaction list
Cost center from the organization level 3 in the employee financial transaction list
Thai name of organization in employee financial transaction list
Cost center from the organization in the employee financial transaction list
Cost center from the organization in the employee financial transaction list
Amount of money in employee financial transaction list
Financial item account groups code
Account type text (Vendor, Ledger, Employee)
1 = Debit, 2 =Credit
{
"statusCode": 200,
"message": "OK",
"totals": 2,
"data": [
{
"companyCode": "987654927",
"companyName": "empeo Dev Test",
"code": "D12",
"financialItemName": "หัก EPP",
"orgLevelTwoName": "เทคโนโลยีสารสนเทศ",
"orgLevelTwoCostCenter": "21032",
"orgLevelThreeName": "Pegasus",
"orgLevelThreeCostCenter": "",
"orgLevelFourName": "Dev team P",
"orgLevelFourCostCenter": "",
"costCenter": "",
"amount": 120,
"accountCode": "",
"accountCodeType": "",
"debitCredit": "Credit"
},
{
"companyCode": "987654927",
"companyName": "empeo Dev Test",
"code": "I02",
"financialItemName": "ค่าล่วงเวลา",
"orgLevelTwoName": "เทคโนโลยีสารสนเทศ",
"orgLevelTwoCostCenter": "21032",
"orgLevelThreeName": "Pegasus",
"orgLevelThreeCostCenter": "",
"orgLevelFourName": "Dev team P",
"orgLevelFourCostCenter": "",
"costCenter": "",
"amount": 12330,
"accountCode": "",
"accountCodeType": "",
"debitCredit": "Debit"
}
]
}