Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Activity
  • Introduction
  • Activity
    • Get a Activity
      GET
    • Activities Enquiry
      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
  • Deal
    • Create Deal
      POST
    • Update Deal
      PUT
    • Deal Enquiry
      POST
    • Get Deal
      GET
    • Get Deal Board
      GET
    • Get Deal Stage
      GET
    • Get Deal Interest
      GET
    • Get DealLabel
      GET
    • Get Deal Missed Reason Categories
      GET
  • 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
  1. Activity

Activities Enquiry

POST
https://api.gofive.co.th/v1/activities/enquiry
ดึงข้อมูล 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 key ของลูกค้า
Example:
<Your-Subscription-Key>
Body Params application/json
staffCodes
array[string]
required
รายการรหัสพนักงาน
customerCodes
array[string]
required
รายการรหัสลูกค้า
dateStart
string  | null 
optional
วันที่เริ่ม
กรณีไม่ได้ใส่มาจะ default = วันที่ยิง api
dateEnd
string  | null 
optional
วันสิ้นสุด
กรณีไม่ได้ใส่มาจะ default = วันที่ยิง api
Example
{
    "staffCodes": [
        "string"
    ],
    "customerCodes": [
        "string"
    ],
    "dateStart": "string",//format "YYYY-MM-DD"
    "dateEnd": "string"//format "YYYY-MM-DD"
}

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/enquiry' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "staffCodes": [
        "string"
    ],
    "customerCodes": [
        "string"
    ],
    "dateStart": "string",//format "YYYY-MM-DD"
    "dateEnd": "string"//format "YYYY-MM-DD"
}'

Responses

🟢200OK
application/json
Body
statusCode
integer 
required

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

httpStatusCode
integer 
required
สถานะ  code ของ httpเช่น200 Ok201 Created400 BadRequest401 Unauthorized404 Record not found500 Internal Server Error
data
object 
required
value
object 
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": {
      "data": [
        {
          "activityId": 0,
          "userId": "string",
          "groupId": 0,
          "planStart": "string",
          "planEnd": "string",
          "dateStart": "string",
          "dateEnd": "string",
          "keyActivity": "string",
          "staffName": "string",
          "statusName": "string",
          "statusId": 0,
          "dateProfileModified": "string",
          "customerId": 0,
          "customerName": "string",
          "subject": "string",
          "createdBy": {
            "userId": "string",
            "username": "string",
            "companyId": 1,
            "companyName": "string",
            "teamId": 1,
            "teamName": "string",
            "staffCode": "string",
            "title": "string",
            "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",
            "hasPicture": true,
            "dateCreated": "2018-11-05T10:13:59+0700",
            "dateModified": "2023-01-19T02:11:57+0700",
            "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
          },
          "staffs": [
            {
              "userId": "string",
              "username": "string",
              "companyId": 1,
              "companyName": "string",
              "teamId": 1,
              "teamName": "string",
              "staffCode": "string",
              "title": "string",
              "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",
              "hasPicture": true,
              "dateCreated": "2018-11-05T10:13:59+0700",
              "dateModified": "2023-01-19T02:11:57+0700",
              "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
            }
          ]
        }
      ]
    },
    "statusCode": 200
  },
  "statusCode": 1000,
  "httpStatusCode": 200
}
🟠401Unauthorized
🟠403Forbidden
🟢200Bad Request
Previous
Get a Activity
Next
Authorization
Built with