Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Product
  • 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
    • Edit Case by CaseNo
    • Get Case by CaseNo
    • Get Case Categories
  • 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
  1. Product

Get Products With Take & Status

POST
https://api.gofive.co.th/v2/Products/GetProduct
การแสดงสินค้าหลายรายการ

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Content-Type
string 
optional
Example:
application/json
Ocp-Apim-Subscription-Key
string 
optional
รหัส subscription key ลูกค้า
Example:
<Your-Subscription-key>
Body Params application/json
take
integer 
required
จำนวนรายการสินค้าที่อยากแสดง
status
array[integer]
required
สถานะของสินค้า
[0 = inactive , 1 = activite]
Example
{
    "take": 0, //จำนวน Product
    "status": [
        1
    ] //สถานะของสินค้า [0 = inactive , 1 = activite]
}

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/v2/Products/GetProduct' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "take": 0, //จำนวน Product
    "status": [
        1
    ] //สถานะของสินค้า [0 = inactive , 1 = activite]
}'

Responses

🟢200OK
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
array [object {23}] 
required
productCode
string 
required
รหัสสินค้า [ไม่ต้องกรอก ถ้าเป็น multi-SKU]
productBarcode
string 
optional
รหัสบาร์โค้ด
productName
string 
required
ชื่อสินค้า
productDescription
string 
optional
รายละเอียดสินค้า
category
string 
required
หมวดหมู่หลัก [ถ้ามีการส่งข้อมูลมาไม่ตรงกับระบบ ทางระบบจะทำการสร้าง Category ให้]
subCategory
string 
optional
 หมวดหมู่รอง [ถ้ามีการส่งข้อมูลมาไม่ตรงกับระบบ ทางระบบจะทำการสร้าง Category ให้]
sub_SubCategory
string 
optional
หมวดหมู่ย่อย [ถ้ามีการส่งข้อมูลมาไม่ตรงกับระบบ ทางระบบจะทำการสร้าง Category ให้]
cost
number  | null 
optional
ต้นทุนสินค้า [ระบบจะไม่ Required และไม่สนใจ ถ้าเป็น Multi SKU]
prices
array [object {6}] 
required
รายการราคาสินค้า
productUnitName
string 
required
หน่วยสินค้า [ถ้าใส่ค่า Unit ไม่ตรงกับระบบ จะแสดง error]
productWeight
number 
optional
น้ำหนักสินค้า
productWeightUnit
string 
optional
หน่วยน้ำหนักสินค้า [ระบบ Default ให้ มี "gram" , "kilogram"]
productTag
array[string]
optional
ป้ายกำกับสินค้า [ถ้าไม่ตรงกับในระบบ จะสร้าง productTag ให้ใหม่]
productImage
array[string]
optional
รูปสินค้า ให้ส่งเป็น PublicUrl
trackInventory
boolean 
required
จัดการข้อมูลคลังสินค้า [true = อนุญาตให้จัดการ , false = ไม่อนุญาตให้จัดการ]
qty
integer  | null 
optional
จำนวนสินค้า [เป็นจำนวนสินค้าของ Single Product]
lowStockAlert
integer  | null 
optional
แจ้งเตือนเมื่อสต็อกคงเหลือ
useWarranty
boolean  | null 
optional
การรับประกันสินค้า [true = รับประกัน , false = ไม่รับประกัน]
timeWarrantyValue
integer  | null 
optional
ระยะเวลาการรับประกันสินค้า
timeWarrantyUnit
string  | null 
optional
หน่วยเวลาการรับประกันสินค้า [y = year ,m = month ,d = day]
warrantyNote
string  | null 
optional
บันทึกการรับประกันสินค้า
visibility
boolean 
required
true = ทำรายการขายได้ , false = ทำรายการขายไม่ได้]
active
boolean 
required
สถานะสินค้า [true = ใช้งาน , false = ไม่ใช้งาน]
Example
{
  "status": {
    "code": "1000",
    "description": "Success"
  },
  "data": [
    {
      "productCode": "123123",
      "productBarcode": "",
      "productName": "Phone 2GB",
      "category": "Gorup Product",
      "cost": 50,
      "prices": [
        {
          "priceTierName": "Normal Price",
          "regularPrice": 5000,
          "salePrice": 2500,
          "pricingTierId": 112,
          "vatTaxValue": 7
        }
      ],
      "productUnitName": "เครื่อง",
      "productTag": [],
      "productImage": [],
      "trackInventory": true,
      "lowStockAlert": 0,
      "useWarranty": false,
      "timeWarrantyValue": 1,
      "timeWarrantyUnit": "Y",
      "visibility": true,
      "active": true,
      "productVariant": []
    }
  ]
}
🟠401Unauthorized
Previous
Get a Product Ticket
Next
Get a Product by ProductCode
Built with