POST v1/UsedItems
Request Information
URI Parameters
None.
Body Parameters
UsedItemViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ItemCode | string |
None. |
|
| MPItemDescription | string |
None. |
|
| AskingPrice | decimal number |
None. |
|
| Amount | integer |
None. |
|
| Condition | integer |
None. |
|
| Remarks | string |
None. |
|
| ContactPersonCicntpId | integer |
None. |
|
| DealerCntId | globally unique identifier |
None. |
|
| DealerCmpWwn | globally unique identifier |
None. |
|
| DealerResId | integer |
None. |
|
| DealerName | string |
None. |
|
| Phone | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ItemCode": "sample string 2",
"MPItemDescription": "sample string 3",
"AskingPrice": 4.1,
"Amount": 5,
"Condition": 6,
"Remarks": "sample string 7",
"ContactPersonCicntpId": 1,
"DealerCntId": "2cb992d5-1f54-4fe4-96fe-bbcc1efe33c3",
"DealerCmpWwn": "87ed3863-25dd-4312-88e0-7409b1245d98",
"DealerResId": 1,
"DealerName": "sample string 8",
"Phone": "sample string 9"
}
application/xml, text/xml
Sample:
<UsedItemViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.ViewModels.v1.UsedItem"> <Amount>5</Amount> <AskingPrice>4.1</AskingPrice> <Condition>6</Condition> <ContactPersonCicntpId>1</ContactPersonCicntpId> <DealerCmpWwn>87ed3863-25dd-4312-88e0-7409b1245d98</DealerCmpWwn> <DealerCntId>2cb992d5-1f54-4fe4-96fe-bbcc1efe33c3</DealerCntId> <DealerName>sample string 8</DealerName> <DealerResId>1</DealerResId> <Id>1</Id> <ItemCode>sample string 2</ItemCode> <MPItemDescription>sample string 3</MPItemDescription> <Phone>sample string 9</Phone> <Remarks>sample string 7</Remarks> </UsedItemViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UsedItemViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ItemCode | string |
None. |
|
| MPItemDescription | string |
None. |
|
| AskingPrice | decimal number |
None. |
|
| Amount | integer |
None. |
|
| Condition | integer |
None. |
|
| Remarks | string |
None. |
|
| ContactPersonCicntpId | integer |
None. |
|
| DealerCntId | globally unique identifier |
None. |
|
| DealerCmpWwn | globally unique identifier |
None. |
|
| DealerResId | integer |
None. |
|
| DealerName | string |
None. |
|
| Phone | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"ItemCode": "sample string 2",
"MPItemDescription": "sample string 3",
"AskingPrice": 4.1,
"Amount": 5,
"Condition": 6,
"Remarks": "sample string 7",
"ContactPersonCicntpId": 1,
"DealerCntId": "f10d8def-3497-4b60-a62d-0a24aee9e921",
"DealerCmpWwn": "0586b6a4-bb8b-4f79-8778-e06bfa4c87c2",
"DealerResId": 1,
"DealerName": "sample string 8",
"Phone": "sample string 9"
}
application/xml, text/xml
Sample:
<UsedItemViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.ViewModels.v1.UsedItem"> <Amount>5</Amount> <AskingPrice>4.1</AskingPrice> <Condition>6</Condition> <ContactPersonCicntpId>1</ContactPersonCicntpId> <DealerCmpWwn>0586b6a4-bb8b-4f79-8778-e06bfa4c87c2</DealerCmpWwn> <DealerCntId>f10d8def-3497-4b60-a62d-0a24aee9e921</DealerCntId> <DealerName>sample string 8</DealerName> <DealerResId>1</DealerResId> <Id>1</Id> <ItemCode>sample string 2</ItemCode> <MPItemDescription>sample string 3</MPItemDescription> <Phone>sample string 9</Phone> <Remarks>sample string 7</Remarks> </UsedItemViewModel>