POST api/Orders/InsSaleOrder
Request Information
URI Parameters
None.
Body Parameters
SaleOrder_Models| Name | Description | Type | Additional information |
|---|---|---|---|
| SO_Header | Header |
None. |
|
| SO_Detail | Collection of SO_Detail |
None. |
|
| PromDetail | Collection of PromDetail |
None. |
|
| keyRequestDiscount | Collection of keyRequestDiscount |
None. |
Request Formats
application/json, text/json
Sample:
{
"SO_Header": {
"so_id": 1,
"cust_id": 1,
"cus_discount": 1.0,
"so_doc": "sample string 1",
"cr_credit": 1.0,
"bl_credit": 1.0,
"tr_priority": 1,
"so_date": "2026-02-19T08:05:46.1768051+07:00",
"prom_id": 1,
"prom_discount": 1.0,
"so_balance": 1.0,
"so_vat": 1.0,
"so_discount": 1.0,
"so_total": 1.0,
"so_shipping": "2026-02-19T08:05:46.1768051+07:00",
"so_weight": 1.0,
"so_remark1": "sample string 4",
"so_remark2": "sample string 5",
"so_remark3": "sample string 6",
"so_status": 1,
"so_stage": 1,
"emp_id": 1,
"so_images": "sample string 7"
},
"SO_Detail": [
{
"so_id": 1,
"good_id": 1,
"good_price": 1.0,
"good_qty": 1,
"good_discount": 1.0,
"has_spprice": 1,
"good_spdiscount": 1.0,
"good_total": 1.0,
"so_taglist": 1,
"good_discount_flag": 1,
"good_unit_id": 1.0,
"edit_Price": true,
"edit_newPrice": 1.0
},
{
"so_id": 1,
"good_id": 1,
"good_price": 1.0,
"good_qty": 1,
"good_discount": 1.0,
"has_spprice": 1,
"good_spdiscount": 1.0,
"good_total": 1.0,
"so_taglist": 1,
"good_discount_flag": 1,
"good_unit_id": 1.0,
"edit_Price": true,
"edit_newPrice": 1.0
}
],
"PromDetail": [
{
"so_id": 1,
"prom_id": 1,
"prom_disc": 1.0
},
{
"so_id": 1,
"prom_id": 1,
"prom_disc": 1.0
}
],
"keyRequestDiscount": [
{
"key": "sample string 1"
},
{
"key": "sample string 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.