POST Api/Customer
Request Information
URI Parameters
None.
Body Parameters
SaleOrderMasterVM| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
Required |
|
| FiscalYear | integer |
None. |
|
| Sale_OrderID | integer |
None. |
|
| Customer_ID | integer |
Required |
|
| Customer_Name | string |
None. |
|
| Ship_Name | string |
None. |
|
| FagencyName | string |
None. |
|
| Name | string |
None. |
|
| CustomerAddress | string |
None. |
|
| PhoneNo | string |
None. |
|
| Mobile | string |
None. |
|
| Order_Date | string |
Required |
|
| Delievery_Date | string |
Required |
|
| Voucher_No | integer |
None. |
|
| SaleMan_ID | integer |
Required |
|
| ShipToID | integer |
None. |
|
| FAgency | integer |
None. |
|
| Remarks | string |
None. |
|
| OrderTotal | integer |
None. |
|
| NetTotal | decimal number |
None. |
|
| Status | string |
Required |
|
| DetailList | Collection of SaleOrderDetailVM |
Required |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"FiscalYear": 1,
"Sale_OrderID": 1,
"Customer_ID": 1,
"Customer_Name": "sample string 2",
"Ship_Name": "sample string 3",
"FagencyName": "sample string 4",
"Name": "sample string 5",
"CustomerAddress": "sample string 6",
"PhoneNo": "sample string 7",
"Mobile": "sample string 8",
"Order_Date": "sample string 9",
"Delievery_Date": "sample string 10",
"Voucher_No": 1,
"SaleMan_ID": 1,
"ShipToID": 1,
"FAgency": 1,
"Remarks": "sample string 11",
"OrderTotal": 12,
"NetTotal": 13.0,
"Status": "sample string 14",
"DetailList": [
{
"ID": 1,
"Sale_OrderID": 1,
"ListRate": 1.0,
"Rate": 1.0,
"Item_ID": 1,
"Pack": 1,
"PPP": 1,
"PPC": 1,
"Weight": 1.0,
"Qty": 1.0,
"CBQty": 1.0,
"OListID": 1,
"StockQty": 1.0,
"Discount": 1.0
},
{
"ID": 1,
"Sale_OrderID": 1,
"ListRate": 1.0,
"Rate": 1.0,
"Item_ID": 1,
"Pack": 1,
"PPP": 1,
"PPC": 1,
"Weight": 1.0,
"Qty": 1.0,
"CBQty": 1.0,
"OListID": 1,
"StockQty": 1.0,
"Discount": 1.0
}
]
}
application/xml, text/xml
Sample:
<SaleOrderMasterVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Services.ModelView">
<CustomerAddress>sample string 6</CustomerAddress>
<Customer_ID>1</Customer_ID>
<Customer_Name>sample string 2</Customer_Name>
<Delievery_Date>sample string 10</Delievery_Date>
<DetailList>
<SaleOrderDetailVM>
<CBQty>1</CBQty>
<Discount>1</Discount>
<ID>1</ID>
<Item_ID>1</Item_ID>
<ListRate>1</ListRate>
<OListID>1</OListID>
<PPC>1</PPC>
<PPP>1</PPP>
<Pack>1</Pack>
<Qty>1</Qty>
<Rate>1</Rate>
<Sale_OrderID>1</Sale_OrderID>
<StockQty>1</StockQty>
<Weight>1</Weight>
</SaleOrderDetailVM>
<SaleOrderDetailVM>
<CBQty>1</CBQty>
<Discount>1</Discount>
<ID>1</ID>
<Item_ID>1</Item_ID>
<ListRate>1</ListRate>
<OListID>1</OListID>
<PPC>1</PPC>
<PPP>1</PPP>
<Pack>1</Pack>
<Qty>1</Qty>
<Rate>1</Rate>
<Sale_OrderID>1</Sale_OrderID>
<StockQty>1</StockQty>
<Weight>1</Weight>
</SaleOrderDetailVM>
</DetailList>
<FAgency>1</FAgency>
<FagencyName>sample string 4</FagencyName>
<FiscalYear>1</FiscalYear>
<Mobile>sample string 8</Mobile>
<Name>sample string 5</Name>
<NetTotal>13</NetTotal>
<OrderTotal>12</OrderTotal>
<Order_Date>sample string 9</Order_Date>
<PhoneNo>sample string 7</PhoneNo>
<Remarks>sample string 11</Remarks>
<SaleMan_ID>1</SaleMan_ID>
<Sale_OrderID>1</Sale_OrderID>
<ShipToID>1</ShipToID>
<Ship_Name>sample string 3</Ship_Name>
<Status>sample string 14</Status>
<UserId>1</UserId>
<Voucher_No>1</Voucher_No>
</SaleOrderMasterVM>
multipart/form-data
Sample:
<SaleOrderMasterVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Services.ModelView"><CustomerAddress>sample string 6</CustomerAddress><Customer_ID>1</Customer_ID><Customer_Name>sample string 2</Customer_Name><Delievery_Date>sample string 10</Delievery_Date><DetailList><SaleOrderDetailVM><CBQty>1</CBQty><Discount>1</Discount><ID>1</ID><Item_ID>1</Item_ID><ListRate>1</ListRate><OListID>1</OListID><PPC>1</PPC><PPP>1</PPP><Pack>1</Pack><Qty>1</Qty><Rate>1</Rate><Sale_OrderID>1</Sale_OrderID><StockQty>1</StockQty><Weight>1</Weight></SaleOrderDetailVM><SaleOrderDetailVM><CBQty>1</CBQty><Discount>1</Discount><ID>1</ID><Item_ID>1</Item_ID><ListRate>1</ListRate><OListID>1</OListID><PPC>1</PPC><PPP>1</PPP><Pack>1</Pack><Qty>1</Qty><Rate>1</Rate><Sale_OrderID>1</Sale_OrderID><StockQty>1</StockQty><Weight>1</Weight></SaleOrderDetailVM></DetailList><FAgency>1</FAgency><FagencyName>sample string 4</FagencyName><FiscalYear>1</FiscalYear><Mobile>sample string 8</Mobile><Name>sample string 5</Name><NetTotal>13</NetTotal><OrderTotal>12</OrderTotal><Order_Date>sample string 9</Order_Date><PhoneNo>sample string 7</PhoneNo><Remarks>sample string 11</Remarks><SaleMan_ID>1</SaleMan_ID><Sale_OrderID>1</Sale_OrderID><ShipToID>1</ShipToID><Ship_Name>sample string 3</Ship_Name><Status>sample string 14</Status><UserId>1</UserId><Voucher_No>1</Voucher_No></SaleOrderMasterVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.