POST api/Stock/AddStockBrandCategory
Request Information
URI Parameters
None.
Body Parameters
BrandStockModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| StockType | integer |
None. |
|
| MeetingID | string |
None. |
|
| CategoryStock | Collection of BrandStock |
None. |
|
| BusinessId | integer |
None. |
|
| LoginuserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"StockType": 2,
"MeetingID": "sample string 3",
"CategoryStock": [
{
"CategoryId": 1,
"CurrentStock": 2,
"STT": 3,
"FreshStock": 4
},
{
"CategoryId": 1,
"CurrentStock": 2,
"STT": 3,
"FreshStock": 4
}
],
"BusinessId": 4,
"LoginuserId": 5
}
application/xml, text/xml
Sample:
<BrandStockModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
<BusinessId>4</BusinessId>
<LoginuserId>5</LoginuserId>
<CategoryStock>
<BrandStock>
<CategoryId>1</CategoryId>
<CurrentStock>2</CurrentStock>
<FreshStock>4</FreshStock>
<STT>3</STT>
</BrandStock>
<BrandStock>
<CategoryId>1</CategoryId>
<CurrentStock>2</CurrentStock>
<FreshStock>4</FreshStock>
<STT>3</STT>
</BrandStock>
</CategoryStock>
<CustomerId>1</CustomerId>
<MeetingID>sample string 3</MeetingID>
<StockType>2</StockType>
</BrandStockModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | string |
None. |
|
| dateTime | string |
None. |
|
| StatusCode | integer |
None. |
|
| ErrorMessage | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Version": "1.0.0",
"dateTime": "2025/12/25 09:17:07",
"StatusCode": 1,
"ErrorMessage": "sample string 2",
"Result": {}
}
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>