Gofive OpenAPI
empeoVenio
eTaxGo
empeoVenio
eTaxGo
  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
    • Get customer by id
      GET
    • Get customer by code
      GET
    • GetBusinessInfoByCustomerCodeAsync
      GET
    • Create or Update customer
      POST
    • Customers Enquiry
      POST
    • Create Customer Satisfaction
      POST
    • Get customers by tax number
      GET
    • Customer Search
      POST
    • Get customer by name
      GET
    • Add Customer Event
      POST
    • Get Customer Events by Customer Code
      GET
    • Get Customer Event Types
      GET
    • Edit Customer Event
      PUT
    • Delete Customer Event
      DELETE
    • Get file categories
      GET
    • Attach files category
      POST
    • Check Customer Existence
      POST
    • Get Customer by code
      GET
  • 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
    • CreateConversationAsync
    • GetConversationAsync
  • 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
      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
    • Check Serial Verification Status
      GET
    • Create or Update Codeguard Products
      POST
    • Update Product Stock
      PUT
    • Get Units
      GET
    • Get Product Reservations
      GET
    • Get Product Stocks
      POST
  • 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
    • Complete SalesOrder
    • Cancel SalesOrder
  • Webhooks
    • Webhook Payload
  • Task
    • Task Enquiry
    • CompleteTaskAsync
    • CreateTask
  • 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
  • Venio
    • SalesOrder
    • Quotation
  1. Product

Get Product Stocks

POST
https://api.gofive.co.th/v2/products/stock
อ่านเฉพาะสต็อกแยกตามคลังของหลายสินค้าในครั้งเดียว (สูงสุด 100 รหัส) โดยไม่ต้องดึงข้อมูลสินค้าทั้งชุด
รหัสที่ไม่พบจะไม่อยู่ในผลลัพธ์ ผลลัพธ์เรียงตามลำดับที่ส่ง
สูตร (ทุก endpoint ของ Open API)
AvailableQty = Qty − AllocatedQty (ติดลบได้เมื่อจองเกินจำนวนคงเหลือ)
ShortfallQty = max(AllocatedQty − Qty, 0)
ฟิลด์ที่มีค่าเป็น 0 อาจไม่ถูกส่งมาใน response ให้ถือว่าเป็น 0

Request

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

Body Params application/jsonRequired

Example
{
    "productCodes": [
        "IOMO-BC-1000",
        "IOMO-FCA-4500"
    ]
}

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/v2/products/stock' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "productCodes": [
        "IOMO-BC-1000",
        "IOMO-FCA-4500"
    ]
}'

Responses

🟢200OK
application/json
Success
Bodyapplication/json

Example
{
    "status": {
        "code": "1000",
        "description": "Success"
    },
    "data": [
        {
            "productCode": "IOMO-BC-1000",
            "productName": "Barcode Scanner",
            "trackInventory": true,
            "asOf": "2026-10-28T09:12:00+0700",
            "warehouses": [
                {
                    "warehouseCode": "WHMAIN",
                    "qty": 4,
                    "allocatedQty": 31,
                    "availableQty": -27,
                    "shortfallQty": 27,
                    "lowStockAlert": 5
                },
                {
                    "warehouseCode": "WHGENERAL",
                    "qty": 18,
                    "allocatedQty": 7,
                    "availableQty": 11,
                    "shortfallQty": 0,
                    "lowStockAlert": 0
                }
            ]
        }
    ]
}
🟠400Bad Request
🟠403Forbidden
Modified at 2026-10-28 16:39:15
Previous
Get Product Reservations
Next
Create Update Quotation
Built with