POST api/OnlineSales/Insert
Request Information
URI Parameters
None.
Body Parameters
clsOnlineSaleDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| IdCustomer | integer |
None. |
|
| ShippingAddress | string |
None. |
|
| PaymentMethod | string |
None. |
|
| ProductsToSell | Collection of ProductWithQuantityToSellDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdCustomer": 1,
"ShippingAddress": "sample string 2",
"PaymentMethod": "sample string 3",
"ProductsToSell": [
{
"Product": {
"Name": "sample string 1"
},
"Quantity": 1,
"BranchName": "sample string 2"
},
{
"Product": {
"Name": "sample string 1"
},
"Quantity": 1,
"BranchName": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<clsOnlineSaleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eBuy.Clases.DTOS">
<IdCustomer>1</IdCustomer>
<PaymentMethod>sample string 3</PaymentMethod>
<ProductsToSell>
<ProductWithQuantityToSellDto>
<BranchName>sample string 2</BranchName>
<Product>
<Name>sample string 1</Name>
</Product>
<Quantity>1</Quantity>
</ProductWithQuantityToSellDto>
<ProductWithQuantityToSellDto>
<BranchName>sample string 2</BranchName>
<Product>
<Name>sample string 1</Name>
</Product>
<Quantity>1</Quantity>
</ProductWithQuantityToSellDto>
</ProductsToSell>
<ShippingAddress>sample string 2</ShippingAddress>
</clsOnlineSaleDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>