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

Get a Activity By No

Testing
GET
https://api.gofive.co.th/v2/activities/{no}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
no
string 
required
หมายเลขกิจกรรม
Header Params
Content-Type
string 
required
Example:
application/json
Ocp-Apim-Subscription-Key
string 
required
รหัส subscriptionของลูกค้า
Example:
<Your-Subscription-Key>

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 GET 'https://api.gofive.co.th/v2/activities/' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json'

Responses

🟢200OK
application/json
Body
statusCode
integer 
required

สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002   
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล

Example:
1000
httpStatusCode
integer 
required
สถานะ code ของ httpเช่น
200 Ok
201 Created
400 BadRequest
401 Unauthorized
404 Record not found
500 Internal Server Error
Example:
200
data
object 
required
ข้อมูลที่จะแสดง ไม่จำกัดรูปแบบว่าจะเป็นเช่นไร
ตอนเรียกออกมาสามารเป็น Array และ Object ได้
value
object (Activity) 
required
statusCode
integer 
required
สถานะ code ของ httpเช่น
200 Ok
201 Created
400 BadRequest
401 Unauthorized
404 Record not found
500 Internal Server Error
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
}
🟠403Forbidden
🟠401Unauthorized
🟠404Record Not Found
🟠400Bad Request
🟠401User authentication required V2.
Modified at 2025-06-24 14:05:44
Previous
Get a Activity By Id
Next
Get Key Activities
Built with