Skip to content

Set Net Suite Material

Description

寫入料件資料。

Resource

POST /v1/net_suite/material

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Request Body Parameters

Name Type Description
id string 任務編號,不同任務需有不同編號
materials Material[] 料件列表

Request Body Parameters - Material

Name Type Description
Subsidiary string 公司別
Subsidiary_ID string 公司別ID
Item_Type string 料件類別
Item_Internal_ID string Netsuite內部ID
Item_Name string 料號編號
Display_Name string 料號名稱
Sale_Unit string 料號主檔上的primary sale unit
G_IM1 string 大分類
G_IM2 string 中分類
G_IM3 string 小分類
G_Store_Count string
(enum)
是否為門市盤點料號
ALLOWED VALUES:
  • Y
  • N
G_Store_Unit string 門市物料盤點單位
G_Store_Unit_Conversion_Rate string 門市單位轉換率(與sale unit轉換率)
Inactive string
(enum)
是否失效
ALLOWED VALUES:
  • Y
  • N
Created_Date string 新增日期
Last_Updated_Date string 最後修改日期
Status string
(enum)
狀態ALLOWED VALUES:
  • N:新增
  • U:修改

Request Body Example

{
  "id": "230721094511",
  "materials": [
    {
      "Subsidiary": "US02 BFYJ Foods",
      "Subsidiary_ID": "US02",
      "Item_Type": "Inventory Item",
      "Item_Internal_ID": "1215",
      "Item_Name": "US_MA0011117",
      "Display_Name": "Pudding powder",
      "Sale_Unit": "Bag",
      "G_IM1": "1 MA00 Raw Material",
      "G_IM2": "1 Normal temp.",
      "G_IM3": "1 Seasoning",
      "G_Store_Count": "Y",
      "G_Store_Unit": "G",
      "G_Store_Unit_Conversion_Rate": "600",
      "Inactive": "N",
      "Created_Date": "2023-07-13 09:15:25",
      "Last_Updated_Date": "2023-07-13 09:15:25",
      "Status": "N"
    }
  ]
}

Response

Status-Code: 204 No Content