Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Authentication API
  • 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
      POST
  • Master
    • Get Organizations
      GET
    • Get CustomField
      GET
    • Get Holiday
      GET
    • Get MasterSetup
      GET
    • Get Shift Details
      GET
  • Payroll
    • Create Loan
    • Get Loan (Draft)
    • Get Cost Center
    • Get Financial Transactions
    • Update Financial Transactions
  • 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. Authentication API

Authorization

POST
https://api.gofive.co.th/authorization/connect/token
สำหรับขอ access token

Request

Header Params
Content-Type
string 
required
Content type of request payload Value: - application/x-www-form-urlencoded
Example:
application/x-www-form-urlencoded
Ocp-Apim-Subscription-Key
string 
required
รหัส subscription ของลูกค้า
Example:
<Your-Subscription-Key>
Body Params application/x-www-form-urlencoded
grant_type
string 
required
ประเภทของ Grant Types ใน OAuth 2.0 (client_credentials เท่านั้น)
Example:
client_credentials
client_id
string 
required
API client_id respective to each partner obtained from partner onboarding process :api cliend_id ที่เกี่ยวข้องตามแต่ละpartnerที่ได้รับในขั้นตอนเริ่มต้น onboarding
client_secret
string 
required
API client_secret obtained from partner onboarding process: api cliend_secret ที่ได้รับจาก partnerในขั้นตอนเริ่มต้น onboarding

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/authorization/connect/token' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret='

Responses

🟢200OK
application/json
Body
access_token
string 
required
access token
token_type
string 
required
ประเภท token
expires_in
integer 
required
ระยะเวลาของ token
scope
string 
required
ขอบเขต
Example
{
  "access_token": "string",
  "expires_in": 1,
  "token_type": "Bearer",
  "scope": "string"
}
🟠401Unauthorized
🟠400Bad Request
Next
Get Employee
Built with