POST api/v1/inventory/virtual
Add a new virtual inventory
Request Information
URI Parameters
None.
Body Parameters
virtual item object that needs to be added
InventoryVirtual| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Gets or Sets Code |
string |
Required String length: inclusive between 0 and 20 |
| Status |
Gets or Sets Status |
StatusEnumV |
None. |
| Description |
Gets or Sets Description |
string |
String length: inclusive between 0 and 50 |
| Added |
Gets or Sets Added |
date |
None. |
| FMV |
Gets or Sets Fmv |
decimal number |
None. |
| Cost |
Gets or Sets Cost |
decimal number |
None. |
| Offer |
Gets or Sets Offer |
decimal number |
None. |
| Type |
Gets or Sets Type |
string |
String length: inclusive between 0 and 2 |
| LastUpdated |
Gets LastUpdated |
date |
None. |
| LastUpdatedBy |
Gets LastUpdatedBy |
string |
String length: inclusive between 0 and 200 |
| Created |
Gets Created |
date |
None. |
| CreatedBy |
Gets CreatedBy |
string |
String length: inclusive between 0 and 200 |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Status": "D",
"Description": "sample string 2",
"Added": "2026-02-04T01:57:33.058",
"FMV": 1.0,
"Cost": 1.0,
"Offer": 1.0,
"Type": "sample string 3",
"LastUpdated": "2026-02-04T01:57:33.058",
"LastUpdatedBy": "sample string 4",
"Created": "2026-02-04T01:57:33.058",
"CreatedBy": "sample string 5"
}
application/xml, text/xml
Sample:
<InventoryVirtual xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPCSWS.Models"> <Added>2026-02-04T01:57:33.0586994+00:00</Added> <Code>sample string 1</Code> <Cost>1</Cost> <Created>2026-02-04T01:57:33.0586994+00:00</Created> <CreatedBy>sample string 5</CreatedBy> <Description>sample string 2</Description> <FMV>1</FMV> <LastUpdated>2026-02-04T01:57:33.0586994+00:00</LastUpdated> <LastUpdatedBy>sample string 4</LastUpdatedBy> <Offer>1</Offer> <Status>DEnum</Status> <Type>sample string 3</Type> </InventoryVirtual>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.