POST api/NStock/PostStockQTY2

庫存量查詢(品名)


需求參數

參數名稱描述內容格式相關資訊
js_login

用戶驗證

js_login

Required

stock_no

倉庫編號;*號或空值表示查詢全部倉庫庫存

string
tda01c

產品編號(模糊查詢 or 精準查詢)

string
stock_date

庫存基準日

string

Required

tda03c

產品名稱(模糊查詢 or 精準查詢)

string
exact_match

精準查詢(為0時,針對產品編號及名稱做模糊查詢。為1時,針對產品編號及名稱做精準查詢。)

string

Required

需求格式

application/json, text/json

Sample:
{
  "js_login": {
    "cust_no": "sample string 1",
    "user_no": "sample string 2",
    "user_pass": "sample string 3",
    "sys_id": "sample string 4",
    "lang": "sample string 5",
    "app_token": "sample string 6"
  },
  "stock_no": "sample string 1",
  "tda01c": "sample string 2",
  "stock_date": "sample string 3",
  "tda03c": "sample string 4",
  "exact_match": "sample string 5"
}

回覆參數

參數名稱描述內容格式相關資訊
Message

訊息回饋

Message
trans_data

回傳庫存量

Collection of trans_data_9116

回覆格式

application/json, text/json

Sample:
{
  "Message": {
    "msgcode": 1,
    "msgdesc": "sample string 2"
  },
  "trans_data": [
    {
      "stock_no": "sample string 1",
      "prod_no": "sample string 2",
      "prod_name": "sample string 3",
      "prod_unit": "sample string 4",
      "stock_qty": "sample string 5",
      "acct_qty": "sample string 6"
    },
    {
      "stock_no": "sample string 1",
      "prod_no": "sample string 2",
      "prod_name": "sample string 3",
      "prod_unit": "sample string 4",
      "stock_qty": "sample string 5",
      "acct_qty": "sample string 6"
    }
  ]
}