Stock transaction

View stock transaction data by status.

API Endpoint

URL {base url}/api/StockTransfer/StockTransaction
Method POST
Authorization Bearer Token
Content-Type application/json

Request Headers

Parameter Type Required Description
APIKEY string true System key code

Request Parameters

Parameter Type Required Description
Sku string true product sku code
FromDate string true Date the data was first viewed (format: dd-mm-yyyy, Gregorian calendar)
ToDate string true Last day to view information (format: dd-mm-yyyy, Gregorian calendar)
Page interger true Page number for displaying data (default value 50 data points)
TransType string false Status of movement
  • DAYEND = Daily stock closing
  • DP = Put product into warehouse
  • INADJ = Stock adjustment (increase)
  • MV = Move product location within main warehouse
  • OUTADJ = Stock adjustment (decrease)
  • PHYSICALIN = Stock adjustment from physical stock count
  • RC = Receive product into warehouse
  • RT = Return product to warehouse
  • UNRC = Cancel receiving product
  • WD = Withdraw product from warehouse

Request JSON Example


{
    "Sku": "TH_HYB_KRT-3474637319014",
    "FromDate": "01-02-2026",
    "ToDate": "04-03-2026",
    "Page": 1,
    "TransType": "DP"
}

Response Parameters

Parameter Type Description
Id integer Error status (0 = no error)
Success boolean Status of the request
Message string Response message
RequestId string Reference ID for the request
Size integer Number of records returned
Data object Response data object

Data

Parameter Type Description
transactionitems array List of stock transaction records
meta object Pagination information
code string Response status code
message string Response message

transactionitems

Parameter Type Description
seller_sku string Seller SKU code
sku string System SKU code
mchid string Merchant ID
qty integer Quantity of transaction
trans_type string Transaction type code
trans_desc string Description of the transaction
trans_date string Date and time of transaction
ref_doc string Reference document number
order_list array Related order list (if any)

order_list

Parameter Type Description
order_id string Order number related to the stock transaction
qty integer Quantity of the product in the order

meta

Parameter Type Description
total integer Total number of records
page integer Current page number
limit integer Number of records per page
total_page integer Total number of pages

Response JSON Example


{
    "Id": 0,
    "Success": true,
    "Message": "SUCCESS",
    "RequestId": "D28CC200-8753-4A84-BDFC-1A07CC163FF1",
    "Size": 3,
    "Data": {
            "transactionitems": [
            {
                "seller_sku": "TH_HYB_KRT-3474637319014",
                "sku": "TH_HYB_KRT-3474637319014",
                "mchid": "22076",
                "qty": 318,
                "trans_type": "DP",
                "trans_desc": "นำสินค้าเข้าคลังหลัก",
                "trans_date": "2026-02-27 17:25:27",
                "ref_doc": "3522754",
                "order_list": [
                    {
                        "order_id": "7869100124",
                        "qty": 1
                    },
                    {
                        "order_id": "77812490876-1",
                        "qty": 1
                    }
                ]
            }
    ],
    "meta": {
        "total": 3,
        "page": 1,
        "limit": 50,
        "total_page": 1
    },
        "code": "0",
        "message": "success"
    }
 }