POST api/Order/AddLine
Adds line to order.
Request Information
URI Parameters
None.
Body Parameters
The model.
Line| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID | integer |
None. |
|
| SupplierID | integer |
None. |
|
| ProductGroupID | integer |
None. |
|
| ProductID | integer |
None. |
|
| SlatOrFabricID | integer |
None. |
|
| ColourID | integer |
None. |
|
| Quantity | integer |
None. |
|
| Width | integer |
None. |
|
| Height | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderID": 1,
"SupplierID": 2,
"ProductGroupID": 3,
"ProductID": 4,
"SlatOrFabricID": 5,
"ColourID": 6,
"Quantity": 7,
"Width": 8,
"Height": 9
}
application/xml, text/xml
Sample:
<Line xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecorDepot.API.Models.OrderModels"> <ColourID>6</ColourID> <Height>9</Height> <OrderID>1</OrderID> <ProductGroupID>3</ProductGroupID> <ProductID>4</ProductID> <Quantity>7</Quantity> <SlatOrFabricID>5</SlatOrFabricID> <SupplierID>2</SupplierID> <Width>8</Width> </Line>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfLineDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| Model | LineDetails |
None. |
|
| Result | string |
None. |
|
| Errors | Collection of Error |
None. |
Response Formats
application/json, text/json
Sample:
{
"Model": {
"ID": 1,
"OrderID": 2,
"SupplierID": 3,
"ProductGroupID": 4,
"ProductID": 5,
"SlatOrFabricID": 6,
"ColourID": 7,
"Quantity": 8,
"Width": 9,
"Height": 10,
"UnitPrice": 11.0
},
"Result": "sample string 1",
"Errors": [
{
"Type": "sample string 1",
"Message": "sample string 2"
},
{
"Type": "sample string 1",
"Message": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<ResponseOfLineDetailscBkj8_S_S2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecorDepot.API.Models.OrderModels">
<Errors>
<Error>
<Message>sample string 2</Message>
<Type>sample string 1</Type>
</Error>
<Error>
<Message>sample string 2</Message>
<Type>sample string 1</Type>
</Error>
</Errors>
<Model>
<ColourID>7</ColourID>
<Height>10</Height>
<ID>1</ID>
<OrderID>2</OrderID>
<ProductGroupID>4</ProductGroupID>
<ProductID>5</ProductID>
<Quantity>8</Quantity>
<SlatOrFabricID>6</SlatOrFabricID>
<SupplierID>3</SupplierID>
<UnitPrice>11</UnitPrice>
<Width>9</Width>
</Model>
<Result>sample string 1</Result>
</ResponseOfLineDetailscBkj8_S_S2>