POST api/InStoreSales/Insert
Request Information
URI Parameters
None.
Body Parameters
clsInStoreSaleDTOName | Description | Type | Additional information |
---|---|---|---|
CustomerEmail | string |
None. |
|
PaymentMethod | string |
None. |
|
BranchName | string |
None. |
|
ProductsToSell | Collection of ProductWithQuantityToInStoreSellDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerEmail": "sample string 1", "PaymentMethod": "sample string 2", "BranchName": "sample string 3", "ProductsToSell": [ { "Product": { "Name": "sample string 1" }, "Quantity": 1 }, { "Product": { "Name": "sample string 1" }, "Quantity": 1 } ] }
application/xml, text/xml
Sample:
<clsInStoreSaleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eBuy.Clases.DTOS"> <BranchName>sample string 3</BranchName> <CustomerEmail>sample string 1</CustomerEmail> <PaymentMethod>sample string 2</PaymentMethod> <ProductsToSell> <ProductWithQuantityToInStoreSellDto> <Product> <Name>sample string 1</Name> </Product> <Quantity>1</Quantity> </ProductWithQuantityToInStoreSellDto> <ProductWithQuantityToInStoreSellDto> <Product> <Name>sample string 1</Name> </Product> <Quantity>1</Quantity> </ProductWithQuantityToInStoreSellDto> </ProductsToSell> </clsInStoreSaleDTO>
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>