Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Shifts
  • 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 Contact
      POST
    • Update Employee Education
      POST
    • Update Employee Experience
      POST
    • Update Employee CustomField
      POST
    • Delete Employee
      POST
    • Get Employee Role
      GET
    • Get Employee Movement Lists
      GET
  • Master
    • Get Organizations
      GET
    • Get CustomField
      GET
    • Get Holiday
      GET
    • Get MasterSetup
      GET
  • Shifts
    • Get Shift Details
      GET
    • Update Employee Shifts
      POST
    • Get Employee Shifts
      GET
    • Swap Employee Shifts
      POST
  • Authentication API
    • Authorization
  • Leave
    • Get Employee Documents
  • 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. Shifts

Swap Employee Shifts

Developing
POST
https://api.gofive.co.th/empeo/api/v1/employees/swap-shifts

Request

Header Params
Authorization
string 
optional
Authorization credential utilized in API requests
Example:
{{token}}
Ocp-Apim-Subscription-Key
string 
optional
Api subscription key get from the OpenAPI integration setting page
Example:
{{subscription_key}}
Body Params application/json
CompanyName
string 
required
Company name of employees
FromEmployeeRefId
string 
required
EmployeeNo of requester
ToEmployeeRefId
string 
required
EmployeeNo of target employee
DateSwapFrom
string 
required
Original shift date of requester to be swapped out
DateSwapTo
string 
required
Target shift date to be taken from the other employee
Description
string 
required
Example
{
    "CompanyName": "Gofive",
    "FromEmployeeRefId": "EMP001",
    "ToEmployeeRefId": "EMP002",
    "DateSwapFrom": "2025-06-12 00:00:00.000",
    "DateSwapTo": "2025-06-20 00:00:00.000",
    "Description": "Requesting shift swap due to a personal emergency."
}

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/employees/swap-shifts' \
--header 'Authorization: ' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "CompanyName": "Gofive",
    "FromEmployeeRefId": "EMP001",
    "ToEmployeeRefId": "EMP002",
    "DateSwapFrom": "2025-06-12 00:00:00.000",
    "DateSwapTo": "2025-06-20 00:00:00.000",
    "Description": "Requesting shift swap due to a personal emergency."
}'

Responses

🟢200Success
text/plain
Body
object {0}
Example
{
    "status": {
        "code": "1000",
        "description": "Success!"
    },
    "data": {
        "message": "Saved successfully.",
        "result": true
    }
}
🟠401User authentication required V2.
Modified at 2025-06-11 09:34:25
Previous
Get Employee Shifts
Next
Authorization
Built with