POST api/SaleOrder/SaveNewOrder
保存订单
Request Information
URI Parameters
None.
Body Parameters
MainOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| order_code | string |
None. |
|
| goods_pay_total | decimal number |
None. |
|
| freight_total | decimal number |
None. |
|
| coupon_pay | decimal number |
None. |
|
| bonus_pay | decimal number |
None. |
|
| freight_voucher_pay | decimal number |
None. |
|
| payables_total | decimal number |
None. |
|
| pay_total | decimal number |
None. |
|
| ship_type | ShipType |
None. |
|
| signer_name | string |
None. |
|
| signer_phone | string |
None. |
|
| signer_province | string |
None. |
|
| signer_city | string |
None. |
|
| signer_district | string |
None. |
|
| signer_address | string |
None. |
|
| pay_time | date |
None. |
|
| note | string |
None. |
|
| SubOrderList | Collection of SubOrder |
None. |
Request Formats
application/json, text/json
Sample:
{
"order_code": "sample string 1",
"goods_pay_total": 2.0,
"freight_total": 3.0,
"coupon_pay": 4.0,
"bonus_pay": 5.0,
"freight_voucher_pay": 6.0,
"payables_total": 7.0,
"pay_total": 8.0,
"ship_type": 0,
"signer_name": "sample string 9",
"signer_phone": "sample string 10",
"signer_province": "sample string 11",
"signer_city": "sample string 12",
"signer_district": "sample string 13",
"signer_address": "sample string 14",
"pay_time": "2025-12-06T12:20:50.9377915+08:00",
"note": "sample string 16",
"SubOrderList": [
{
"order_code": "sample string 1",
"suborders_code": "sample string 2",
"suborders_type": 0,
"suborders_status": 10,
"installation_time": "2025-12-06T12:20:50.9377915+08:00",
"is_deleted": true,
"is_lock": true,
"logistics_collect_date": "2025-12-06T12:20:50.9377915+08:00",
"send_data_date": "2025-12-06T12:20:50.9377915+08:00",
"whs_prepare_date": "2025-12-06T12:20:50.9377915+08:00",
"whs_delivery_status": 0,
"logistics_status": 0,
"sign_in_date": "2025-12-06T12:20:50.9377915+08:00",
"timestamp": "QEA=",
"SubOrderItemList": [
{
"id": 1,
"order_code": "sample string 2",
"suborders_code": "sample string 3",
"item_no": "sample string 4",
"goods_id": 5,
"goods_name_cn": "sample string 6",
"number": 7,
"pay_price": 8.0,
"payables_total": 9.0,
"coupon_pay": 10.0,
"bonus_pay": 11.0,
"pay_total": 12.0,
"adjust_type_0_qty": 13,
"inventory_allocated_qty": 14
},
{
"id": 1,
"order_code": "sample string 2",
"suborders_code": "sample string 3",
"item_no": "sample string 4",
"goods_id": 5,
"goods_name_cn": "sample string 6",
"number": 7,
"pay_price": 8.0,
"payables_total": 9.0,
"coupon_pay": 10.0,
"bonus_pay": 11.0,
"pay_total": 12.0,
"adjust_type_0_qty": 13,
"inventory_allocated_qty": 14
}
]
},
{
"order_code": "sample string 1",
"suborders_code": "sample string 2",
"suborders_type": 0,
"suborders_status": 10,
"installation_time": "2025-12-06T12:20:50.9377915+08:00",
"is_deleted": true,
"is_lock": true,
"logistics_collect_date": "2025-12-06T12:20:50.9377915+08:00",
"send_data_date": "2025-12-06T12:20:50.9377915+08:00",
"whs_prepare_date": "2025-12-06T12:20:50.9377915+08:00",
"whs_delivery_status": 0,
"logistics_status": 0,
"sign_in_date": "2025-12-06T12:20:50.9377915+08:00",
"timestamp": "QEA=",
"SubOrderItemList": [
{
"id": 1,
"order_code": "sample string 2",
"suborders_code": "sample string 3",
"item_no": "sample string 4",
"goods_id": 5,
"goods_name_cn": "sample string 6",
"number": 7,
"pay_price": 8.0,
"payables_total": 9.0,
"coupon_pay": 10.0,
"bonus_pay": 11.0,
"pay_total": 12.0,
"adjust_type_0_qty": 13,
"inventory_allocated_qty": 14
},
{
"id": 1,
"order_code": "sample string 2",
"suborders_code": "sample string 3",
"item_no": "sample string 4",
"goods_id": 5,
"goods_name_cn": "sample string 6",
"number": 7,
"pay_price": 8.0,
"payables_total": 9.0,
"coupon_pay": 10.0,
"bonus_pay": 11.0,
"pay_total": 12.0,
"adjust_type_0_qty": 13,
"inventory_allocated_qty": 14
}
]
}
]
}
application/xml, text/xml
Sample:
<MainOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JWS.Logic.Q.Entity">
<SubOrderList>
<SubOrder>
<SubOrderItemList>
<SubOrderItem>
<adjust_type_0_qty>13</adjust_type_0_qty>
<bonus_pay>11</bonus_pay>
<coupon_pay>10</coupon_pay>
<goods_id>5</goods_id>
<goods_name_cn>sample string 6</goods_name_cn>
<id>1</id>
<inventory_allocated_qty>14</inventory_allocated_qty>
<item_no>sample string 4</item_no>
<number>7</number>
<order_code>sample string 2</order_code>
<pay_price>8</pay_price>
<pay_total>12</pay_total>
<payables_total>9</payables_total>
<suborders_code>sample string 3</suborders_code>
</SubOrderItem>
<SubOrderItem>
<adjust_type_0_qty>13</adjust_type_0_qty>
<bonus_pay>11</bonus_pay>
<coupon_pay>10</coupon_pay>
<goods_id>5</goods_id>
<goods_name_cn>sample string 6</goods_name_cn>
<id>1</id>
<inventory_allocated_qty>14</inventory_allocated_qty>
<item_no>sample string 4</item_no>
<number>7</number>
<order_code>sample string 2</order_code>
<pay_price>8</pay_price>
<pay_total>12</pay_total>
<payables_total>9</payables_total>
<suborders_code>sample string 3</suborders_code>
</SubOrderItem>
</SubOrderItemList>
<installation_time>2025-12-06T12:20:50.9377915+08:00</installation_time>
<is_deleted>true</is_deleted>
<is_lock>true</is_lock>
<logistics_collect_date>2025-12-06T12:20:50.9377915+08:00</logistics_collect_date>
<logistics_status>None</logistics_status>
<order_code>sample string 1</order_code>
<send_data_date>2025-12-06T12:20:50.9377915+08:00</send_data_date>
<sign_in_date>2025-12-06T12:20:50.9377915+08:00</sign_in_date>
<suborders_code>sample string 2</suborders_code>
<suborders_status>ToBePaid</suborders_status>
<suborders_type>Spot</suborders_type>
<timestamp>QEA=</timestamp>
<whs_delivery_status>None</whs_delivery_status>
<whs_prepare_date>2025-12-06T12:20:50.9377915+08:00</whs_prepare_date>
</SubOrder>
<SubOrder>
<SubOrderItemList>
<SubOrderItem>
<adjust_type_0_qty>13</adjust_type_0_qty>
<bonus_pay>11</bonus_pay>
<coupon_pay>10</coupon_pay>
<goods_id>5</goods_id>
<goods_name_cn>sample string 6</goods_name_cn>
<id>1</id>
<inventory_allocated_qty>14</inventory_allocated_qty>
<item_no>sample string 4</item_no>
<number>7</number>
<order_code>sample string 2</order_code>
<pay_price>8</pay_price>
<pay_total>12</pay_total>
<payables_total>9</payables_total>
<suborders_code>sample string 3</suborders_code>
</SubOrderItem>
<SubOrderItem>
<adjust_type_0_qty>13</adjust_type_0_qty>
<bonus_pay>11</bonus_pay>
<coupon_pay>10</coupon_pay>
<goods_id>5</goods_id>
<goods_name_cn>sample string 6</goods_name_cn>
<id>1</id>
<inventory_allocated_qty>14</inventory_allocated_qty>
<item_no>sample string 4</item_no>
<number>7</number>
<order_code>sample string 2</order_code>
<pay_price>8</pay_price>
<pay_total>12</pay_total>
<payables_total>9</payables_total>
<suborders_code>sample string 3</suborders_code>
</SubOrderItem>
</SubOrderItemList>
<installation_time>2025-12-06T12:20:50.9377915+08:00</installation_time>
<is_deleted>true</is_deleted>
<is_lock>true</is_lock>
<logistics_collect_date>2025-12-06T12:20:50.9377915+08:00</logistics_collect_date>
<logistics_status>None</logistics_status>
<order_code>sample string 1</order_code>
<send_data_date>2025-12-06T12:20:50.9377915+08:00</send_data_date>
<sign_in_date>2025-12-06T12:20:50.9377915+08:00</sign_in_date>
<suborders_code>sample string 2</suborders_code>
<suborders_status>ToBePaid</suborders_status>
<suborders_type>Spot</suborders_type>
<timestamp>QEA=</timestamp>
<whs_delivery_status>None</whs_delivery_status>
<whs_prepare_date>2025-12-06T12:20:50.9377915+08:00</whs_prepare_date>
</SubOrder>
</SubOrderList>
<bonus_pay>5</bonus_pay>
<coupon_pay>4</coupon_pay>
<freight_total>3</freight_total>
<freight_voucher_pay>6</freight_voucher_pay>
<goods_pay_total>2</goods_pay_total>
<note>sample string 16</note>
<order_code>sample string 1</order_code>
<pay_time>2025-12-06T12:20:50.9377915+08:00</pay_time>
<pay_total>8</pay_total>
<payables_total>7</payables_total>
<ship_type>Delivery</ship_type>
<signer_address>sample string 14</signer_address>
<signer_city>sample string 12</signer_city>
<signer_district>sample string 13</signer_district>
<signer_name>sample string 9</signer_name>
<signer_phone>sample string 10</signer_phone>
<signer_province>sample string 11</signer_province>
</MainOrder>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />