PUT api/PerformaInvoice/UpdatePromo/{pomo_id}

Update Promotion

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pomo_id

integer

Required

Body Parameters

m_CreatePromotion
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'm_CreatePromotion'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.