POST api/Promotions/InsPromotions
Request Information
URI Parameters
None.
Body Parameters
Promotions_Models| Name | Description | Type | Additional information |
|---|---|---|---|
| prom_id | integer |
None. |
|
| prom_code | string |
None. |
|
| prom_name | string |
None. |
|
| good_id | integer |
None. |
|
| good_qty | integer |
None. |
|
| prom_start | date |
None. |
|
| prom_finished | date |
None. |
|
| prom_price | decimal number |
None. |
|
| prom_status | integer |
None. |
|
| Promotions_Detail | Collection of Promotions_Detail |
None. |
Request Formats
application/json, text/json
Sample:
{
"prom_id": 1,
"prom_code": "sample string 2",
"prom_name": "sample string 3",
"good_id": 4,
"good_qty": 5,
"prom_start": "2026-02-19T08:04:55.4423241+07:00",
"prom_finished": "2026-02-19T08:04:55.4423241+07:00",
"prom_price": 1.0,
"prom_status": 1,
"Promotions_Detail": [
{
"cusgrp_id": 1
},
{
"cusgrp_id": 1
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.