Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Activity
  • Introduction
  • Activity
    • Activities Enquiry
      POST
    • Get a Activity By Id
      GET
    • Get a Activity By No
      GET
    • Get Key Activities
      GET
    • Create or Update Activity
      POST
  • Authentication API
    • Authorization
      POST
  • Customer
    • Create or Update customer
      POST
    • Get a Customer By CustomerCode
      GET
    • Customers Enquiry
      POST
    • Get a Customer By CustomerName
      GET
    • Create Customer Satisfaction
      POST
    • Add Customer Event
      POST
    • Get Customer Events by Customer Code
      GET
    • Edit Customer Event
      PUT
    • Delete Customer Event
      DELETE
    • Get Customer Event Types
      GET
  • Case
    • Add Case
      POST
    • Edit Case by CaseNo
      PUT
    • Get Case by CaseNo
      GET
    • Get Case Categories
      GET
  • Contract
    • Get Contract By No
      GET
    • Get Contract Types
      GET
    • Get Contract Templates
      GET
    • Create or Update Contract
      POST
    • Create or Update Contract Service Agreement
      POST
    • Send Contract Document
      POST
  • Deal
    • Create Deal
    • Update Deal
    • Deal Enquiry
    • Get Deal
    • Get Deal Board
    • Get Deal Stage
    • Get Deal Interest
    • Get DealLabel
    • Get Deal Missed Reason Categories
  • Employee
    • Employees Enquiry
    • Get a Employee
  • Expense
    • Create Expense
    • Update Expense
    • Expense Enquiry
    • Get a Expense
  • Product
    • Create Or Update Products
    • Get a Product Ticket
    • Get Products With Take & Status
    • Get a Product by ProductCode
    • Get Product Groups
    • Get Product Properties
    • Get Products By Filter
    • Verify Serial Number
    • /v3/Products/serials/status
    • Create or Update Codeguard Products
    • Update Product Stock
    • /v1/products/units
    • /v1/products/units Copy
  • Quotation
    • Create Update Quotation
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
  • SalesOrder
    • Create Or Update SalesOrder
    • Get a SalesOrders By Id
    • Get a SalesOrder By SalesOrderNo
    • Get Sale Order Attachment
    • Reject SaleOrder
    • Approve Sale Order
    • Update SalesOrder Payment
    • Update SalesOrder Tracking Number
  • Webhooks
    • Webhook Payload
  • Task
    • CreateTask
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  1. Activity

Create or Update Activity

Testing
POST
https://api.gofive.co.th/v1/activities

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Content-Type
string 
required
Example:
application/json
Ocp-Apim-Subscription-Key
string 
required
รหัส subscriptionของลูกค้า
Example:
<Your-Subscription-Key>
Body Params application/json
activityNo
string  | null 
optional
หมายเลขกิจกรรม
subject
string 
required
หัวข้อ
keyActivity
string 
required
ประเภทกิจกรรม
activityTypeId
string  | null 
optional
รหัสประเภทกิจกรรม
activityDetails
array[string] | null 
optional
รายละเอียดกิจกรรม
activityDetailIds
array[integer] | null 
optional
รหัสรายละเอียดกิจกรรม
customerCode
string 
required
รหัสลูกค้า
contacts
array[string] | null 
optional
รายชื่อผู้ติดต่อ
note
string  | null 
optional
บันทึกเพิ่มเติม
reviseReason
string  | null 
optional
เหตุผลการเปลี่ยนแปลงกิจกรรม
dateAppointmentStart
string 
required
วันที่นัดเริ่มงาน
dateAppointmentEnd
string 
required
วันที่นัดจบงาน
assignTos
array[string]
required
มอบหมายงานให้ Staff
startLocation
string  | null 
optional
สถานที่เริ่มต้น
startLocationName
string  | null 
optional
ชื่อสถานที่เริ่มต้น
visitLocation
string  | null 
optional
สถานที่ปฏิบัติงาน
visitLocationName
string  | null 
optional
ชื่อสถานที่ปฏิบัติงาน
isAllDay
boolean 
required
เป็นกิจกรรมทั้งวันหรือไม่
isRecurringPlan
boolean 
required
สร้างกิจกรรมซ้ำหรือไม่
isEditAllSeries
boolean 
required
แก้ไขกิจกรรมทุกรายการวนซ้ำหรือไม่
recurringPlanType
integer  | null 
optional
ประเภทกิจกรรมวนซ้ำ
Weekday = 1701
Daily = 1702
Weekly = 1703
Monthly = 1704
Yearly = 1705
Custom = 1706
recurringEndDate
string  | null 
optional
วันที่สิ้นสุดการวนซ้ำ
customRecurring
object  | null 
optional
สำหรับตั้งค่ากิจกรรมวนซ้ำประเภท Custom
customRecurringNumber
integer 
required
จำนวนกิจกรรมที่ต้องการจะสร้าง
customRecurringType
integer 
required
ประเภทกิจกรรมวนซ้ำแบบปรับแต่ง
Day = 1801
Week = 1802
Month = 1803
Example
{
    "activityNo": "string",
    "subject": "string",
    "keyActivity": "string",
    "activityTypeId": 1,
    "activityDetails": [
        "string"
    ],
    "activityDetailIds": [
        1
    ],
    "customerCode": "string",
    "contacts": [
        "string"
    ],
    "note": "string",
    "reviseReason": "string",
    "dateAppointmentStart": "2025-06-17 15:00:00",
    "dateAppointmentEnd": "2025-06-17 16:00:00",
    "assignTos": [
        "string"
    ],
    "startLocation": "string",
    "startLocationName": "string",
    "visitLocation": "string",
    "visitLocationName": "string",
    "isAllDay": false,
    "isRecurringPlan": false,
    "isEditAllSeries": false,
    "recurringPlanType": 1706,
    "recurringEndDate": "2025-06-19",
    "customRecurring": {
        "customRecurringNumber": 1,
        "customRecurringType": 1801
    }
}

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/v1/activities' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "activityNo": "string",
    "subject": "string",
    "keyActivity": "string",
    "activityTypeId": 1,
    "activityDetails": [
        "string"
    ],
    "activityDetailIds": [
        1
    ],
    "customerCode": "string",
    "contacts": [
        "string"
    ],
    "note": "string",
    "reviseReason": "string",
    "dateAppointmentStart": "2025-06-17 15:00:00",
    "dateAppointmentEnd": "2025-06-17 16:00:00",
    "assignTos": [
        "string"
    ],
    "startLocation": "string",
    "startLocationName": "string",
    "visitLocation": "string",
    "visitLocationName": "string",
    "isAllDay": false,
    "isRecurringPlan": false,
    "isEditAllSeries": false,
    "recurringPlanType": 1706,
    "recurringEndDate": "2025-06-19",
    "customRecurring": {
        "customRecurringNumber": 1,
        "customRecurringType": 1801
    }
}'

Responses

🟢200Success
application/json
Body
data
object 
required
value
object (Activity) 
required
statusCode
integer 
required
statusCode
integer 
required
httpStatusCode
integer 
required
Example
{
    "data": {
        "value": {
            "activityId": 1,
            "teamId": 1,
            "activityNo": "string",
            "subject": "string",
            "groupId": 1,
            "activityTypeId": 1,
            "customerId": 1,
            "customerState": 1,
            "latitude": 0,
            "longitude": 0,
            "location": "string",
            "locationName": "string",
            "dateCheckin": "2020-11-17T18:30:09+0700",
            "dateCheckout": "2020-11-17T18:31:07+0700",
            "isActive": true,
            "statusId": 1,
            "isAdHoc": false,
            "assignToUserId": "string",
            "dateAppointmentStart": "2020-11-17T18:00:46+0700",
            "dateAppointmentEnd": "2020-11-17T20:00:46+0700",
            "startLatitude": 0,
            "startLongitude": 0,
            "startLocation": "string",
            "startLocationName": "string",
            "startPlaceId": "string",
            "visitLatitude": 0,
            "visitLongitude": 0,
            "visitLocation": "string",
            "visitLocationName": "string",
            "visitPlaceId": "string",
            "totalDistance": 0,
            "dateAppointmented": "2020-11-17T17:56:59+0700",
            "appointmentedByUserId": "string",
            "dateApproved": "2020-11-17T17:56:59+0700",
            "approvedByUserId": "string",
            "userRoleId": "string",
            "userOrgString": "string",
            "userOrgLevel": 1,
            "checkoutLatitude": 0,
            "checkoutLongitude": 0,
            "checkoutLocation": "string",
            "checkoutLocationName": "string",
            "activityReport": "string",
            "addressId": 1,
            "refActivityId": 1,
            "dateCreated": "2020-11-17T17:56:59+0700",
            "createdByUserId": "string",
            "dateModified": "2022-11-21T18:48:18+0700",
            "modifiedByUserId": "string",
            "customer": {
                "customerId": 1,
                "companyId": 1,
                "customerCode": "string",
                "customerName": "string",
                "type": 1,
                "customerType": 1,
                "branch": "string",
                "addressPart1": "string",
                "phone": "string",
                "mobile": "string",
                "fax": "string",
                "notes": "string",
                "isActive": true,
                "dateChangeToCustomer": "2022-07-06T16:26:21+0700",
                "createdByUserId": "string",
                "dateCreated": "2020-07-18T12:30:57+0700",
                "modifiedByUserId": "string",
                "dateModified": "2022-09-08T17:38:21+0700",
                "customerGroupId": 1,
                "leadStatus": 1,
                "email": "string",
                "customerStateId": 1,
                "hasOwner": true,
                "dateAcquired": "2022-07-06T16:26:21+0700",
                "uniqueName": "string",
                "isRequireSoundex": true,
                "status": 1,
                "dateFollowUp": "2022-05-17T09:00:00+0700",
                "dateLatestUpdated": "2022-12-10T21:00:00+0700",
                "pictureUrl": "string"
            },
            "activityStates": [
                {
                    "activityStateId": 1,
                    "activityId": 1,
                    "statusId": 1,
                    "createdByUserId": "string",
                    "dateCreated": "2020-11-17T18:30:09+0700",
                    "approveLevel": 1,
                    "seq": 0
                },
                {
                    "activityStateId": 1,
                    "activityId": 1,
                    "statusId": 1,
                    "createdByUserId": "string",
                    "dateCreated": "2020-11-17T17:56:59+0700",
                    "approveLevel": 1,
                    "seq": 0
                }
            ],
            "activitySubtypes": [
                {
                    "activityTypeId": 1,
                    "typeName": "string"
                }
            ],
            "createType": 3,
            "isVisibleCustomerDetail": true,
            "staffName": "string",
            "detailActivities": [
                0
            ],
            "detailActivity": "string",
            "detailActivityModels": [
                {
                    "activityTypeId": 1,
                    "activityTypeName": "string"
                }
            ],
            "assignToUser": {
                "userId": "string",
                "username": "string",
                "companyId": 1,
                "companyName": "string",
                "teamId": 1,
                "teamName": "string",
                "staffCode": "string",
                "title": "",
                "firstname": "string",
                "lastname": "string",
                "fullname": "string",
                "position": "string",
                "email": "string",
                "phoneNumber": "string",
                "orgString": "string",
                "orgLevel": 1,
                "latitude": 0,
                "longitude": 0,
                "location": "string",
                "locationName": "string",
                "isActive": true,
                "createdByUserId": "string",
                "dateCreated": "2018-11-05T10:13:59+0700",
                "modifiedByUserId": "string",
                "dateModified": "2023-01-13T10:26:26+0700",
                "hasPicture": true,
                "role": "string",
                "roleId": "string",
                "siteId": 1,
                "isAgreementPdpa": true,
                "dateAgreementPdpa": "2020-08-26T07:13:22+0700",
                "emailSubscription": 1,
                "identityUserId": "string",
                "uniqueName": "string",
                "inAppSubscription": 1,
                "userType": 1,
                "platformId": 0,
                "isActiveEmpeo": true,
                "refCompanyId": 1,
                "refClientId": 1,
                "signatureUrl": "string",
                "emailSupscriptionFlag": 1,
                "inAppSupscriptionFlag": 1,
                "pictureUrl": "string"
            },
            "assignToUsers": [
                {
                    "userId": "string",
                    "fullname": "string",
                    "dateModified": "2021-11-17T18:05:16+0700",
                    "pictureUrl": "string",
                    "statusUser": 601
                }
            ],
            "contact": "",
            "contacts": [
                {
                    "contactId": 1,
                    "contactName": "string",
                    "position": "string"
                }
            ],
            "keyActivity": "string",
            "assignTo": "string",
            "statusName": "string",
            "assignedBy": "string",
            "attachments": [
                {
                    "attachmentId": 1,
                    "refId": 1,
                    "type": 1,
                    "dateCreated": "2023-01-25T15:26:54+0700",
                    "url": "string",
                    "urlResponseUpload": "string",
                    "thumbnail": "string"
                }
            ],
            "customerName": "string",
            "pictureUrl": "string",
            "canAddMember": true
        },
        "statusCode": 200
    },
    "statusCode": 1000,
    "httpStatusCode": 200
}
🟠400Bad Request
Modified at 2025-06-26 06:55:08
Previous
Get Key Activities
Next
Authorization
Built with