POST AddStock
Request Information
URI Parameters
None.
Body Parameters
Stock| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| DateCreated | date |
None. |
|
| LastModified | date |
None. |
|
| ProductName | string |
None. |
|
| UnitPrice | decimal number |
None. |
|
| Vat | decimal number |
None. |
|
| HasVat | boolean |
None. |
|
| MarkupPercentage | decimal number |
None. |
|
| MarkupValue | decimal number |
None. |
|
| VendorId | integer |
None. |
|
| SellingPrice | decimal number |
None. |
|
| Description | string |
None. |
|
| BarcodeQty | decimal number |
None. |
|
| Barcode | string |
None. |
|
| BonaMarketFee | decimal number |
None. |
|
| BonaMarketVat | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"DateCreated": "2025-12-11T12:07:32.8021091+02:00",
"LastModified": "2025-12-11T12:07:32.8021091+02:00",
"ProductName": "sample string 1",
"UnitPrice": 1.1,
"Vat": 1.1,
"HasVat": true,
"MarkupPercentage": 1.1,
"MarkupValue": 1.1,
"VendorId": 1,
"SellingPrice": 1.1,
"Description": "sample string 2",
"BarcodeQty": 1.1,
"Barcode": "sample string 3",
"BonaMarketFee": 1.1,
"BonaMarketVat": 1.1
}
application/xml, text/xml
Sample:
<Stock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BonaMarketAPI.Models"> <Barcode>sample string 3</Barcode> <BarcodeQty>1.1</BarcodeQty> <BonaMarketFee>1.1</BonaMarketFee> <BonaMarketVat>1.1</BonaMarketVat> <DateCreated>2025-12-11T12:07:32.8021091+02:00</DateCreated> <Description>sample string 2</Description> <HasVat>true</HasVat> <LastModified>2025-12-11T12:07:32.8021091+02:00</LastModified> <MarkupPercentage>1.1</MarkupPercentage> <MarkupValue>1.1</MarkupValue> <ProductName>sample string 1</ProductName> <SellingPrice>1.1</SellingPrice> <UnitPrice>1.1</UnitPrice> <Vat>1.1</Vat> <VendorId>1</VendorId> <id>1</id> </Stock>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>