PUT api/PerformaInvoice/UpdatePromotionLastPrice/{promotion_id}
แก้ไข promotion last price
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| promotion_id | integer |
Required |
Body Parameters
m_PromotionLastPrice| Name | Description | Type | Additional 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:08:20.6884779+07:00",
"end_date": "2026-04-07T18:08:20.6884779+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:08:20.6884779+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:08:20.6884779+07:00</start_date>
</m_PromotionLastPrice>
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.