POST api/Product/UploadProductData
Request Information
URI Parameters
None.
Body Parameters
UploadProductRequestViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| fileuploadmasterid | integer |
None. |
|
| filename | string |
None. |
|
| categorytype | string |
None. |
|
| companyid | integer |
None. |
|
| financialyearid | integer |
None. |
|
| productdata | Collection of ExcelProductDataViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"fileuploadmasterid": 1,
"filename": "sample string 2",
"categorytype": "sample string 3",
"companyid": 4,
"financialyearid": 5,
"productdata": [
{
"productname": "sample string 1",
"manufacturername": "sample string 2",
"hsncode": "sample string 3",
"sellingprice": 4.1,
"producttypecode": "sample string 5",
"productpurchaseprice": 6.1,
"producttaxpercent": 7.1,
"unitcode": "sample string 8"
},
{
"productname": "sample string 1",
"manufacturername": "sample string 2",
"hsncode": "sample string 3",
"sellingprice": 4.1,
"producttypecode": "sample string 5",
"productpurchaseprice": 6.1,
"producttaxpercent": 7.1,
"unitcode": "sample string 8"
}
]
}
application/xml, text/xml
Sample:
<UploadProductRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kantaserp.Models">
<categorytype>sample string 3</categorytype>
<companyid>4</companyid>
<filename>sample string 2</filename>
<fileuploadmasterid>1</fileuploadmasterid>
<financialyearid>5</financialyearid>
<productdata>
<ExcelProductDataViewModel>
<hsncode>sample string 3</hsncode>
<manufacturername>sample string 2</manufacturername>
<productname>sample string 1</productname>
<productpurchaseprice>6.1</productpurchaseprice>
<producttaxpercent>7.1</producttaxpercent>
<producttypecode>sample string 5</producttypecode>
<sellingprice>4.1</sellingprice>
<unitcode>sample string 8</unitcode>
</ExcelProductDataViewModel>
<ExcelProductDataViewModel>
<hsncode>sample string 3</hsncode>
<manufacturername>sample string 2</manufacturername>
<productname>sample string 1</productname>
<productpurchaseprice>6.1</productpurchaseprice>
<producttaxpercent>7.1</producttaxpercent>
<producttypecode>sample string 5</producttypecode>
<sellingprice>4.1</sellingprice>
<unitcode>sample string 8</unitcode>
</ExcelProductDataViewModel>
</productdata>
</UploadProductRequestViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResultViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| status | boolean |
None. |
|
| message | string |
None. |
|
| data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"data": {}
}
application/xml, text/xml
Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kantaserp.Models"> <data /> <message>sample string 2</message> <status>true</status> </HttpResultViewModel>