Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Product
  • 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
    • Edit Case by CaseNo
    • Get Case by CaseNo
    • Get Case Categories
  • Contract
    • Get Contract By No
    • Get Contract Types
    • Get Contract Templates
    • Create or Update Contract
    • Create or Update Contract Service Agreement
    • Send Contract Document
  • 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
      POST
    • Get a Product Ticket
      GET
    • Get Products With Take & Status
      POST
    • Get a Product by ProductCode
      GET
    • Get Product Groups
      GET
    • Get Product Properties
      GET
    • Get Products By Filter
      POST
    • Verify Serial Number
      POST
    • /v3/Products/serials/status
      GET
    • Create or Update Codeguard Products
      POST
    • Update Product Stock
      PUT
    • /v1/products/units
      GET
    • /v1/products/units Copy
      GET
  • 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. Product

Create or Update Codeguard Products

POST
https://api.gofive.co.th/v3/products/serials
สร้างหรือแก้ไขข้อมูล codeguard สำหรับผูก serial number กับ product
error description (400)
product not found : product code นี้ไม่พบในระบบ
serial not found : running number นี้ไม่พบในระบบ
product code required (new codeguard) : product code required เนื่องจากเป็นการสร้าง serial ใหม่
running number required : ต้องใส่ running number
product code required : ต้องใส่ product code (กรณีไม่ส่ง status มา)
empty payload : empty payload
error description (401)
user not found

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
runningNumber
string 
required
running number จากระบบ
productCode
string 
optional
product code ที่มีในระบบ (จำเป็นต้องมี ถ้า status ไม่ได้ส่งมา)
serialNumber
string  | null 
optional
serial number ของ client ที่ต้องการระบุ
status
boolean  | null 
optional
เปิดปิด การใช้งาน serial นั้นๆ ถ้าเป็น null จะ อ้างอิงตามข้อมูลเดิม และถ้าเป็นการสร้างใหม่ จะ set true เป็น default
Example
{
    "runningNumber":"MN00001",
    "productCode":"PD001",
    "serialNumber":"IXX0010",
    "status":true
}

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/v3/products/serials' \
--header 'Content-Type: application/json' \
--data-raw '{
    "runningNumber":"MN00001",
    "productCode":"PD001",
    "serialNumber":"IXX0010",
    "status":true
}'

Responses

🟢200Success
application/json
Body
data
object 
required
runningNumber
string 
required
productCode
string 
required
serialNumber
string 
required
status
boolean 
required
productId
integer 
required
httpStatusCode
integer 
required
statusCode
integer 
required
Example
{
    "data": {
        "runningNumber": "MN00001",
        "serialNumber": "IXX0010",
        "status": true,
        "productId": 1
    },
    "httpStatusCode": 200,
    "statusCode": 1000
}
🟠400Bad Request
🟠401Unauthorized
Modified at 2024-08-02 09:36:52
Previous
/v3/Products/serials/status
Next
Update Product Stock
Built with