Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Task
  • 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
      POST
  • Setting
    • Get HeaderTemplate
  1. Task

CreateTask

POST
https://api.gofive.co.th/v1/tasks

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
subject
string 
required
ชื่อ Task
dateDue
string 
required
วันที่แจ้งเตือน
note
string 
required
Note เพิ่มเติม
customerId
integer 
required
รหัสลูกค้า
contactIds
array[integer]
optional
AssignStaffCodes
array[string]
required
checkList
array [object {2}] 
optional
subject
string 
required
isCheck
boolean 
required
Example
{
  "subject": "task test 4",
  "dateDue": "2023-09-12 15:00",
  "note": "api test bff",
  "customerId": 142056,
  "assignStaffCodes": [
    "00003"
  ],
  "checkList": [
    {
      "subject": "1. XXXXX",
      "isCheck": false
    },
    {
      "subject": "2. SSSS",
      "isCheck": false
    }
  ]
}

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/tasks' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "subject":"task test 4",
    "dateDue":"2023-09-12 15:00",
    "note":"api test bff",
    "customerId":142056,
    "assignStaffCodes":["00003"],
    "checkList": [
        {
            "subject": "1. XXXXX",
            "isCheck": false
        },
        {
            "subject": "2. SSSS",
            "isCheck": false
        }
    ]
}'

Responses

🟢200Success
application/json
Body
data
array [object {12}] 
required
ownerUserId
string 
optional
dateCreated
string 
optional
createdByUserId
string 
optional
isActive
boolean 
optional
checkList
array[string]
optional
taskId
integer 
optional
statusId
integer 
optional
subject
string 
optional
dateDue
string 
optional
customerId
integer 
optional
assignType
integer 
optional
note
string 
optional
hasError
boolean 
required
statusCode
integer 
required
totalRecords
integer 
required
httpStatusCode
integer 
required
Example
{
  "data": [
    {
      "ownerUserId": "7eab0d54-57a8-4206-86f9-57b4822d8640",
      "dateCreated": "2023-08-31T15:36:47.7944+07:00",
      "createdByUserId": "7eab0d54-57a8-4206-86f9-57b4822d8640",
      "isActive": true,
      "checkList": [],
      "taskId": 12632,
      "statusId": 1701,
      "subject": "Test Task",
      "dateDue": "2023-09-01T09:00:00+07:00",
      "customerId": 142394,
      "assignType": 1,
      "note": "Test"
    }
  ],
  "hasError": false,
  "statusCode": 1000,
  "totalRecords": 0,
  "httpStatusCode": 201
}
Previous
Webhook Payload
Next
Get HeaderTemplate
Built with