POST api/PerformaInvoice/CreatePromo
Create Promotion
Request Information
URI Parameters
None.
Body Parameters
m_CreatePromotion| Name | Description | Type | Additional information |
|---|---|---|---|
| PromotionName | string |
Required |
|
| Type | string |
Required |
|
| Buy | integer |
None. |
|
| GetFree | integer |
None. |
|
| Discount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromotionName": "sample string 1",
"Type": "sample string 2",
"Buy": 1,
"GetFree": 1,
"Discount": 1.1
}
application/xml, text/xml
Sample:
<m_CreatePromotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.Planning_Department.Proforma_Invoce"> <Buy>1</Buy> <Discount>1.1</Discount> <GetFree>1</GetFree> <PromotionName>sample string 1</PromotionName> <Type>sample string 2</Type> </m_CreatePromotion>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.