Gofive OpenAPI
empeoVenio
eTaxGo
empeoVenio
eTaxGo
  1. Task
  • 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
    • Customer Search
      POST
    • Customers Enquiry
      POST
    • Get a Customer By CustomerId
      GET
    • Get a Customer By CustomerCode
      GET
    • Get a Customer By CustomerName
      GET
    • Get Customer By TaxID
      GET
    • Check Customer Existence
      POST
    • 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
    • Get file categories
      GET
    • Attach files category
      POST
  • Case
    • Add Case
    • Edit Case by CaseNo
    • Get Case by CaseNo
    • Get Case Categories
  • Case Management
    • Create Or Update Case
    • Case Enquiry
    • Get Case Categories
    • Get Case Stages
    • Get Case By CaseNo
  • Contract
    • Get Contract By No
    • Get Contract Types
    • Get Contract Templates
    • Create or Update Contract
    • Create or Update Contract Service Agreement
    • Send Contract Document
  • Conversation
    • Conversation Enquiry
    • Create Conversation
  • Expense
    • Create Expense
    • Update Expense
    • Expense Enquiry
    • Get a Expense
  • 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
  • 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
    • Check Serial Verification Status
    • Create or Update Codeguard Products
    • Update Product Stock
    • Get Units
  • Quotation
    • Create Update Quotation
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
    • Get Pdf By QuotationNo
  • SalesOrder
    • Create Or Update SalesOrder
    • SalesOrder Enquiry
    • Get a SalesOrder By Id
    • Get a SalesOrder By No
    • Get Sale Order Attachment by Id
    • Get Sale Order Attachment By No
    • Reject SaleOrder
    • Approve Sale Order
    • Update SalesOrder Payment
    • Get Pdf By SalesOrderNo
    • Update SalesOrder Tracking Number
  • Webhooks
    • Webhook Payload
  • Task
    • Task Enquiry
      POST
    • CompleteTaskAsync
      POST
    • CreateTask
      POST
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  • Storage
    • Upload files attachments
    • Get file attachments
    • Delete file attachments
  • Calendio
    • Create Venio Calendio Event
    • Edit Venio Calendio Event
    • Get Venio Calendio Events
    • Create empeo Calendio Event
    • Edit empeo Calendio Event
    • Get empeo Calendio Events
    • Get Venio Calendio Event by Id
    • Get empeo Calendio Event by Id
    • Create Appointment
    • Appointment Enquiry
    • Edit Appointment
    • Get Appointment By Id
    • Add Calendio Custom Field
    • Calendio Custom Field Enquiry
    • Get Calendio Custom Field by Id
    • Available slots Enquiry
    • Calendio Bookings Enquiry
    • Reschedule Calendio Booking time
    • Cancel Calendio Booking
  1. Task

CompleteTaskAsync

POST
https://api.gofive.co.th/v1/Tasks/{taskId}/Complete
Mark a task as done (ดำเนินการเสร็จสิ้น), optionally recording what was done.
This is the same action as the "ดำเนินการเสร็จสิ้น" button on the web and in the mobile app:
the task gets its done date, the note appears under "บันทึกการดำเนินการ", and the customer's
timeline shows the task as completed. The token's user is recorded as the one who closed it.
Who can close which task
Only tasks of the token's own company can be closed. A task of another company, a deleted
task, or an id that does not exist all answer 404 — the three are indistinguishable on
purpose.
The token's user needs the usual Task permissions: their own tasks need Task View; tasks
owned by someone else need Task Access All, or Access By Org over that person. Because tasks
created through POST /v1/Tasks are always assigned to someone other than the token's user,
the integration user should normally hold Task Access All.
Calling it again is safe. A task that is already done is left untouched — the note it was
closed with is kept — and the call answers 200 with alreadyDone: true. Retry freely after a
timeout.
The body is optional; sending no body, {} or a blank actionNote closes the task with no note.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "actionNote": "Called, renewed for 12 months"
}

Request Code 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 'https://api.gofive.co.th/v1/Tasks/627282/Complete' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "actionNote": "Called, renewed for 12 months"
}'

Responses

🟢200
application/json
Done — or already done (alreadyDone)
Bodyapplication/json

Examples
{
    "status": {
        "code": "1000",
        "description": "Success"
    },
    "data": {
        "taskId": 627282,
        "subject": "Follow up the renewal",
        "statusId": 1702,
        "dateDone": "2026-09-28T14:05:11+0700",
        "actionNote": "Called, renewed for 12 months",
        "customerId": 592512,
        "ownerUserId": "fdb38572-f920-49c5-b1b7-15cf480e598c",
        "alreadyDone": false
    }
}
🟠400
🟠401
🟠403
🟠404
🔴500
🔴502
Modified at 2026-09-28 07:49:03
Previous
Task Enquiry
Next
CreateTask
Built with