POST api/PerformaInvoice/CreatePromotionLastPrice

สร้าง promotion last price

Request Information

URI Parameters

None.

Body Parameters

m_PromotionLastPrice
NameDescriptionTypeAdditional information
promotion_name

string

Required

start_date

date

Required

end_date

date

Required

model

Collection of m_ModelPromotionLastPrice

Required

Request Formats

application/json, text/json

Sample:
{
  "promotion_name": "sample string 1",
  "start_date": "2026-04-07T18:02:35.2119854+07:00",
  "end_date": "2026-04-07T18:02:35.2119854+07:00",
  "model": [
    {
      "model": "sample string 1",
      "promotion_price": 2.0
    },
    {
      "model": "sample string 1",
      "promotion_price": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<m_PromotionLastPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.Planning_Department.Proforma_Invoce">
  <end_date>2026-04-07T18:02:35.2119854+07:00</end_date>
  <model>
    <m_ModelPromotionLastPrice>
      <model>sample string 1</model>
      <promotion_price>2</promotion_price>
    </m_ModelPromotionLastPrice>
    <m_ModelPromotionLastPrice>
      <model>sample string 1</model>
      <promotion_price>2</promotion_price>
    </m_ModelPromotionLastPrice>
  </model>
  <promotion_name>sample string 1</promotion_name>
  <start_date>2026-04-07T18:02:35.2119854+07:00</start_date>
</m_PromotionLastPrice>

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_PromotionLastPrice'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.