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:
- Token - You can use Login API to get token displayed under Info
- These fields are mandatory while sending request body:
- Item Code
- Code
- Value
- Below are the Item Header Fields and their Code:
- Data value for Item list must be separated with semi colon (;)