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": "8986f139-1c40-481b-ae71-01c37d7331c3",
"DealerCmpWwn": "77548fe6-9f3c-4d3f-964e-e9f49fba22cd",
"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>77548fe6-9f3c-4d3f-964e-e9f49fba22cd</DealerCmpWwn> <DealerCntId>8986f139-1c40-481b-ae71-01c37d7331c3</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": "203e7355-0d64-4c3a-b337-a40849ea4c14",
"DealerCmpWwn": "7202af65-86f3-4cf5-8681-8637f2b89e87",
"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>7202af65-86f3-4cf5-8681-8637f2b89e87</DealerCmpWwn> <DealerCntId>203e7355-0d64-4c3a-b337-a40849ea4c14</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>