Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Case
  • 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. Case

Edit Case by CaseNo

PUT
https://api.gofive.co.th/v1/case/{caseNo}
การแก้ไขรายละเอียดของ case ผ่าน caseNo

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
caseNo
string 
required
หมายเลขของ case
Example:
T250200010
Header Params
Content-Type
string 
required
Example:
application/json
Ocp-Apim-Subscription-Key
string 
required
รหัส subscription key ลูกค้า
Example:
<Your Subscriptin-key>
Body Params application/json
subject
string 
required
หัวข้อของ case
customerNo
string 
optional
รหัสของลูกค้า
categoryId
integer 
required
หรือ feedbackCategoryId คือเลขหมวดหมู่ของ case (สามารถดูข้อมูลของ feedbackCategoryId ทั้งหมดได้จาก Endpoint Get Case Categories)
dateCase
string 
required
วันที่เริ่มของ case
dateDue
string 
required
วันสิ้นสุด case
activityNos
array[string]
optional
รหัสของกิจกรรมที่เชื่อมต่อ
dealNos
array[string]
optional
รหัสของดีลที่เชื่อมต่อ
note
string 
optional
คำอธิบาย
assignedToUserId
string 
required
ID ของ user ที่ต้องการมอบหมาย case ให้
Example
{
  "subject": "Update Case",
  "customerCode": "C000154",
  "categoryId": 2140016585,
  "dateCase": "2025-02-05T17:35:53.693+0700",
  "dateDue": "2025-02-05T17:35:53.693+0700",
  "activityNos": [
    "A20250200028",
    "A20250200029"
  ],
  "dealNos": [
    "D241200044",
    "D241200047"
  ],
  "note": "description",
  "assignedToUserId": "6d473b8f-a6b3-4536-b1e6-f4b7688414e2"
}

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 PUT 'https://api.gofive.co.th/v1/case/T250200010' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscriptin-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "subject": "Update Case",
    "customerCode": "C000154",
    "categoryId": 2140016585,
    "dateCase": "2025-02-05T17:35:53.693+0700",
    "dateDue": "2025-02-05T17:35:53.693+0700",
    "activityNos": [
        "A20250200028",
        "A20250200029"
    ],
    "dealNos": [
        "D241200044",
        "D241200047"
    ],
    "note": "description",
    "assignedToUserId": "6d473b8f-a6b3-4536-b1e6-f4b7688414e2"
}'

Responses

🟢200Success
application/json
Body
status
object 
required
code
string 
required

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

description
string 
required
คำอธิบายข้อความที่จะแสดง
data
object 
required
data
object 
required
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 Ok
400 BadRequest
401 Unauthorized
404 Record not found
500 Internal Server Error
Example
{
  "status": {
    "code": "1000",
    "description": "Success"
  },
  "data": {
    "data": {
      "feedbackId": 67941,
      "companyId": 507,
      "customerId": 705693,
      "feedbackNo": "T250200010",
      "subject": "Create new case (Edit)",
      "statusId": 201,
      "feedbackTypeId": 592,
      "feedbackFromId": 50642,
      "feedbackFromName": "𝗢𝗮𝘀𝗶𝘀 𝗦𝗽𝗮 Thailand",
      "note": "Bff description",
      "assignedToUserId": "6d473b8f-a6b3-4536-b1e6-f4b7688414e2",
      "dateAssigned": "2025-02-06T09:41:33+0700",
      "dateCase": "2025-02-05T17:35:53+0700",
      "dateDue": "2025-02-05T17:35:53+0700",
      "createdByUserId": "23108b99-ee24-43c4-b9e7-58dc6a4e16a2",
      "dateCreated": "2025-02-06T09:41:33+0700",
      "updatedByUserId": "23108b99-ee24-43c4-b9e7-58dc6a4e16a2",
      "dateUpdated": "2025-02-06T09:55:04+0700",
      "dateLatestAnswer": "2025-02-06T09:41:33+0700"
    },
    "statusCode": 1000,
    "httpStatusCode": 200
  }
}
🟠400Bad Request
🟠401Unauthorized
🟠401User authentication required V2.
Previous
Add Case
Next
Get Case by CaseNo
Built with