12. TrakIT API‎ > ‎Item Master‎ > ‎

Update Item Data

The below API is used to update an item header and data fields in Item Master


Request: POST 

Signature: /api/mobile/UpdateItemData?Token={Login_Token}


Body:

{
"ItemCode":"ITEM_CODE", 
"Field":
[
 { 
  "Code":"ITEM_HEADER_CODE", 
  "Value":"ITEM_HEADER_VALUE"
 }
],
"Data":
[
   
 {
  "Code":"ITEM_CODE_DATE",
  "Value":"ITEM_VALUE",
  "Remarks":"ITEM_REMARKS"
 }
]
}


Sample: /api/mobile/UpdateItemData?Token=VomYEMiECFFyAQ3==


Body:

"ItemCode":"Boxes", 
"Field":
[
 { 
   "Code":"HSCODE", 
   "Value":"JKDFH23434"
 },
 { 
   "Code":"WEIGHT", 
   "Value":12
 }
],
"Data":
 { 
    "Code":"BRAND", 
    "Value":"Nike", 
    "Remarks":"This is remarks" 
 }

Response: 

{
"Code": 1,
"Info": "Item data updated successfully",
"RowsAffected": 1,
"Scalar": null,
"Identity": 0,
"RetInfo": null
}


Things to know about this API: 
  1. Token - You can use Login API to get token displayed under Info

  2. These fields are mandatory while sending request body:

    • Item Code
    • Code
    • Value 

  3. Below are the Item Header Fields and their Code:

    Header Field Code
    Item Code ITEMCODE
    Item Name NAME
    Unit UNIT
    Item Weight WEIGHT
    Item Volume VOLUME
    Item HS Code HSCODE
    Item GTIN GTIN
    Shelf Life SHELFLIFE
    Description DESCRIPTION

  4. Data value for Item list must be separated with semi colon (;)
Comments