Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Payroll
  • Authentication API
    • Authorization
      POST
  • Employee
    • Get Employee
      GET
    • Update Employee
      PUT
    • Get List Employees
      GET
    • Get Employees List
      GET
    • Get Mastertypes List
      GET
    • Get Name Prefixes
      GET
    • Get Document Types
      GET
    • Update Employee
      POST
    • Add Employee Attachment
      POST
    • Update Employee Address
      POST
    • Update Employee Family
      POST
    • Update Employee Information
      POST
    • Update Employee Shifts
      POST
    • Update Employee Contact
      POST
    • Update Employee Education
      POST
    • Update Employee Experience
      POST
    • Update Employee CustomField
      POST
    • Delete Employee
      POST
    • Get Employee Shifts
      GET
    • Get Employee Role
      GET
    • Get Employee Movement Lists
      GET
  • Leave
    • Get Employee Documents
  • Master
    • Get Organizations
    • Get CustomField
    • Get Holiday
    • Get MasterSetup
    • Get Shift Details
  • Payroll
    • Create Loan
      POST
    • Get Loan (Draft)
      GET
    • Get Cost Center
      POST
    • Get Financial Transactions
      POST
    • Update Financial Transactions
      PUT
  • Attendance
    • Get Time Attendance
    • Get Time Attendances Lite
  • Welfare
    • Get Shuttle Buses
    • Get Passengers
  • Time
    • Workin
    • Get Employee WorkIn Site
    • Get Timestamps
    • Get TimeStamp Attachments
    • Get Workin Sites
    • Get IOMO Logs
    • Add Timestamps
  • AppMan
    • Update status criminal checker
    • Send Email Notification when completed
  • Asset
    • Get Asset list
    • Update Asset
    • Get Employee Assets
  • Recruitment
    • Get Candidate
  1. Payroll

Get Cost Center

Developing
POST
https://api.gofive.co.th/empeo/api/v1/Payroll/cost-centers

Request

Header Params
Content-Type
string 
optional
Accepted value: application/json
Example:
application/json
Authorization
string 
optional
Authorization credential utilized in API requests
Example:
Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUh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kD9QQkDQZD76z9e1QZ3W-oIEbQPtnHDAN-C4igEdymJQJ1YYZOFzlfi0ShPpb-AoNQi3ay8xMIzkxEJHLQRsRMUaQe7Emjgibb5QF9Km2k-bmc4jIvxnkw5r1Shn9apALUWMMQaLdBreb2NK-xVdQ
Ocp-Apim-Subscription-Key
string 
optional
Api subscription key get from the OpenAPI integration setting page
Example:
WPe123a9RKbcfLQNSztr45
Body Params application/json
companyName
string 
required
year
integer 
required
periodCalculateNo
integer 
required
Example
{
  "CompanyName": "empeo Dev Test",
  "Year": 2024,
  "PeriodCalculateNo": 1
}

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 POST 'https://api.gofive.co.th/empeo/api/v1/Payroll/cost-centers' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUhrUmVGbDFyNCJ9.eyJuYmYiOjE3MTYzNDg3MTYsImV4cCI6MTcxNzY0NDcxNiwiaXNzIjoiaHR0cHM6Ly9kZXYudGtzLmNvLnRoL2lkZW50aXR5c2VydmVyMiIsImF1ZCI6WyJJTUMuQVBJIiwiVmVuaW8yLkFQSSIsIkdPRklWRS5BUEkiLCJDbGllbnRQb3J0YWwuQVBJIl0sImNsaWVudF9pZCI6IklNQyIsInN1YiI6ImY3OWY2NWZlLTQ1YzctNDM2OC1hOTM1LWVhNzc3NjJmNTljZSIsImF1dGhfdGltZSI6MTcxNjM0ODcxNiwiaWRwIjoibG9jYWwiLCJlbWFpbCI6ImRldi5uZXd0ZXN0QGhvdG1haWwuY29tIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiZGV2Lm5ld3Rlc3RAaG90bWFpbC5jb20iLCJuYW1lIjoiZGV2Lm5ld3Rlc3RAaG90bWFpbC5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiQ2xpZW50SWQiOiJJTUMiLCJyb2xlIjoiIiwidXNlcm5hbWUiOiJkZXYubmV3dGVzdEBob3RtYWlsLmNvbSIsIkNvbXBhbnlJZCI6Ijk4NzY1NDkyNyIsInNpZCI6IkZFMTZGMzRFNEU0NzUzQUEyQTQ4MEZCOEFGQkJDRDdCIiwiaWF0IjoxNzE2MzQ4NzE2LCJzY29wZSI6WyJvcGVuaWQiLCJwcm9maWxlIiwiSU1DLkFQSSIsIlZlbmlvMi5BUEkiLCJHT0ZJVkUuQVBJIiwiQ2xpZW50UG9ydGFsLkFQSSIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.a_k-26pvgraJwjRoZnaXoZFwP14kRz8PAjVjQahbcZilSnad8La0MB-yZG1nnTrlgskzDzcYYci6IGl1bElfhKTRHh3Ozrym1eWuXLlKBzzrOINISdf30Vp3eNrml8o5HujynpCo1nGPJJQM2oGTDqrt0JRFQeMK23-jBsL7goP76pE65QV03TRGGPhWPvKr_kD9QQkDQZD76z9e1QZ3W-oIEbQPtnHDAN-C4igEdymJQJ1YYZOFzlfi0ShPpb-AoNQi3ay8xMIzkxEJHLQRsRMUaQe7Emjgibb5QF9Km2k-bmc4jIvxnkw5r1Shn9apALUWMMQaLdBreb2NK-xVdQ' \
--header 'Ocp-Apim-Subscription-Key: WPe123a9RKbcfLQNSztr45' \
--header 'Content-Type: application/json' \
--data-raw '{
    "CompanyName": "empeo Dev Test",
    "Year": 2024,
    "PeriodCalculateNo": 1
}'

Responses

🟢200Success
application/json
Body
statusCode
integer 
required
message
string 
optional
totals
integer 
required
data
array [object {15}] 
required
companyCode
string 
required
Company Code
companyName
string 
required
Company Name
code
string 
required
Financial item code
financialItemName
string 
required
Financial item name
orgLevelTwoName
string 
required
Thai name of organization level 2 in employee financial transaction list
orgLevelTwoCostCenter
string 
required
Cost center from the organization level 2 in the employee financial transaction list
orgLevelThreeName
string 
required
Thai name of organization level 3 in employee financial transaction list
orgLevelThreeCostCenter
string 
required
Cost center from the organization level 3 in the employee financial transaction list
orgLevelFourName
string 
required
Thai name of organization in employee financial transaction list
orgLevelFourCostCenter
string 
required
Cost center from the organization in the employee financial transaction list
costCenter
string 
required
Cost center from the organization in the employee financial transaction list
amount
number 
required
Amount of money in employee financial transaction list
accountCode
string 
required
Financial item account groups code
accountCodeType
string 
required
Account type text (Vendor, Ledger, Employee)
debitCredit
string 
required
1 = Debit, 2 =Credit
Example
{
  "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"
    }
  ]
}
🟠401User authentication required V2.
Previous
Get Loan (Draft)
Next
Get Financial Transactions
Built with