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": "f8445d48-7886-4822-90bb-5784ccf2d835",
"DealerCmpWwn": "d18c8e9d-5664-412a-b26d-4e6c1156a9c1",
"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>d18c8e9d-5664-412a-b26d-4e6c1156a9c1</DealerCmpWwn> <DealerCntId>f8445d48-7886-4822-90bb-5784ccf2d835</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": "e2d6d0cc-27c8-439c-9d75-cec79f6bfa8e",
"DealerCmpWwn": "3ba3d46f-ffb3-46e2-a134-f7cbebeb4f7e",
"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>3ba3d46f-ffb3-46e2-a134-f7cbebeb4f7e</DealerCmpWwn> <DealerCntId>e2d6d0cc-27c8-439c-9d75-cec79f6bfa8e</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>