POST api/SaleOrder/Split

拆单

Request Information

URI Parameters

None.

Body Parameters

SplitInfo
NameDescriptionTypeAdditional information
order_new

新订单(主订单)

MainOrder

None.

splitInfoList

拆单信息

Collection of SplitOrderAdjustInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "order_new": {
    "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:52.4374777+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:52.4374777+08:00",
        "is_deleted": true,
        "is_lock": true,
        "logistics_collect_date": "2025-12-06T12:20:52.4374777+08:00",
        "send_data_date": "2025-12-06T12:20:52.4374777+08:00",
        "whs_prepare_date": "2025-12-06T12:20:52.4374777+08:00",
        "whs_delivery_status": 0,
        "logistics_status": 0,
        "sign_in_date": "2025-12-06T12:20:52.4374777+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:52.4374777+08:00",
        "is_deleted": true,
        "is_lock": true,
        "logistics_collect_date": "2025-12-06T12:20:52.4374777+08:00",
        "send_data_date": "2025-12-06T12:20:52.4374777+08:00",
        "whs_prepare_date": "2025-12-06T12:20:52.4374777+08:00",
        "whs_delivery_status": 0,
        "logistics_status": 0,
        "sign_in_date": "2025-12-06T12:20:52.4374777+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
          }
        ]
      }
    ]
  },
  "splitInfoList": [
    {
      "adjust_code": "sample string 1",
      "old_suborders_code": "sample string 2",
      "new_suborders_code": "sample string 3"
    },
    {
      "adjust_code": "sample string 1",
      "old_suborders_code": "sample string 2",
      "new_suborders_code": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<SplitInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JWS.Controllers.Q">
  <order_new xmlns:d2p1="http://schemas.datacontract.org/2004/07/JWS.Logic.Q.Entity">
    <d2p1:SubOrderList>
      <d2p1:SubOrder>
        <d2p1:SubOrderItemList>
          <d2p1:SubOrderItem>
            <d2p1:adjust_type_0_qty>13</d2p1:adjust_type_0_qty>
            <d2p1:bonus_pay>11</d2p1:bonus_pay>
            <d2p1:coupon_pay>10</d2p1:coupon_pay>
            <d2p1:goods_id>5</d2p1:goods_id>
            <d2p1:goods_name_cn>sample string 6</d2p1:goods_name_cn>
            <d2p1:id>1</d2p1:id>
            <d2p1:inventory_allocated_qty>14</d2p1:inventory_allocated_qty>
            <d2p1:item_no>sample string 4</d2p1:item_no>
            <d2p1:number>7</d2p1:number>
            <d2p1:order_code>sample string 2</d2p1:order_code>
            <d2p1:pay_price>8</d2p1:pay_price>
            <d2p1:pay_total>12</d2p1:pay_total>
            <d2p1:payables_total>9</d2p1:payables_total>
            <d2p1:suborders_code>sample string 3</d2p1:suborders_code>
          </d2p1:SubOrderItem>
          <d2p1:SubOrderItem>
            <d2p1:adjust_type_0_qty>13</d2p1:adjust_type_0_qty>
            <d2p1:bonus_pay>11</d2p1:bonus_pay>
            <d2p1:coupon_pay>10</d2p1:coupon_pay>
            <d2p1:goods_id>5</d2p1:goods_id>
            <d2p1:goods_name_cn>sample string 6</d2p1:goods_name_cn>
            <d2p1:id>1</d2p1:id>
            <d2p1:inventory_allocated_qty>14</d2p1:inventory_allocated_qty>
            <d2p1:item_no>sample string 4</d2p1:item_no>
            <d2p1:number>7</d2p1:number>
            <d2p1:order_code>sample string 2</d2p1:order_code>
            <d2p1:pay_price>8</d2p1:pay_price>
            <d2p1:pay_total>12</d2p1:pay_total>
            <d2p1:payables_total>9</d2p1:payables_total>
            <d2p1:suborders_code>sample string 3</d2p1:suborders_code>
          </d2p1:SubOrderItem>
        </d2p1:SubOrderItemList>
        <d2p1:installation_time>2025-12-06T12:20:52.4374777+08:00</d2p1:installation_time>
        <d2p1:is_deleted>true</d2p1:is_deleted>
        <d2p1:is_lock>true</d2p1:is_lock>
        <d2p1:logistics_collect_date>2025-12-06T12:20:52.4374777+08:00</d2p1:logistics_collect_date>
        <d2p1:logistics_status>None</d2p1:logistics_status>
        <d2p1:order_code>sample string 1</d2p1:order_code>
        <d2p1:send_data_date>2025-12-06T12:20:52.4374777+08:00</d2p1:send_data_date>
        <d2p1:sign_in_date>2025-12-06T12:20:52.4374777+08:00</d2p1:sign_in_date>
        <d2p1:suborders_code>sample string 2</d2p1:suborders_code>
        <d2p1:suborders_status>ToBePaid</d2p1:suborders_status>
        <d2p1:suborders_type>Spot</d2p1:suborders_type>
        <d2p1:timestamp>QEA=</d2p1:timestamp>
        <d2p1:whs_delivery_status>None</d2p1:whs_delivery_status>
        <d2p1:whs_prepare_date>2025-12-06T12:20:52.4374777+08:00</d2p1:whs_prepare_date>
      </d2p1:SubOrder>
      <d2p1:SubOrder>
        <d2p1:SubOrderItemList>
          <d2p1:SubOrderItem>
            <d2p1:adjust_type_0_qty>13</d2p1:adjust_type_0_qty>
            <d2p1:bonus_pay>11</d2p1:bonus_pay>
            <d2p1:coupon_pay>10</d2p1:coupon_pay>
            <d2p1:goods_id>5</d2p1:goods_id>
            <d2p1:goods_name_cn>sample string 6</d2p1:goods_name_cn>
            <d2p1:id>1</d2p1:id>
            <d2p1:inventory_allocated_qty>14</d2p1:inventory_allocated_qty>
            <d2p1:item_no>sample string 4</d2p1:item_no>
            <d2p1:number>7</d2p1:number>
            <d2p1:order_code>sample string 2</d2p1:order_code>
            <d2p1:pay_price>8</d2p1:pay_price>
            <d2p1:pay_total>12</d2p1:pay_total>
            <d2p1:payables_total>9</d2p1:payables_total>
            <d2p1:suborders_code>sample string 3</d2p1:suborders_code>
          </d2p1:SubOrderItem>
          <d2p1:SubOrderItem>
            <d2p1:adjust_type_0_qty>13</d2p1:adjust_type_0_qty>
            <d2p1:bonus_pay>11</d2p1:bonus_pay>
            <d2p1:coupon_pay>10</d2p1:coupon_pay>
            <d2p1:goods_id>5</d2p1:goods_id>
            <d2p1:goods_name_cn>sample string 6</d2p1:goods_name_cn>
            <d2p1:id>1</d2p1:id>
            <d2p1:inventory_allocated_qty>14</d2p1:inventory_allocated_qty>
            <d2p1:item_no>sample string 4</d2p1:item_no>
            <d2p1:number>7</d2p1:number>
            <d2p1:order_code>sample string 2</d2p1:order_code>
            <d2p1:pay_price>8</d2p1:pay_price>
            <d2p1:pay_total>12</d2p1:pay_total>
            <d2p1:payables_total>9</d2p1:payables_total>
            <d2p1:suborders_code>sample string 3</d2p1:suborders_code>
          </d2p1:SubOrderItem>
        </d2p1:SubOrderItemList>
        <d2p1:installation_time>2025-12-06T12:20:52.4374777+08:00</d2p1:installation_time>
        <d2p1:is_deleted>true</d2p1:is_deleted>
        <d2p1:is_lock>true</d2p1:is_lock>
        <d2p1:logistics_collect_date>2025-12-06T12:20:52.4374777+08:00</d2p1:logistics_collect_date>
        <d2p1:logistics_status>None</d2p1:logistics_status>
        <d2p1:order_code>sample string 1</d2p1:order_code>
        <d2p1:send_data_date>2025-12-06T12:20:52.4374777+08:00</d2p1:send_data_date>
        <d2p1:sign_in_date>2025-12-06T12:20:52.4374777+08:00</d2p1:sign_in_date>
        <d2p1:suborders_code>sample string 2</d2p1:suborders_code>
        <d2p1:suborders_status>ToBePaid</d2p1:suborders_status>
        <d2p1:suborders_type>Spot</d2p1:suborders_type>
        <d2p1:timestamp>QEA=</d2p1:timestamp>
        <d2p1:whs_delivery_status>None</d2p1:whs_delivery_status>
        <d2p1:whs_prepare_date>2025-12-06T12:20:52.4374777+08:00</d2p1:whs_prepare_date>
      </d2p1:SubOrder>
    </d2p1:SubOrderList>
    <d2p1:bonus_pay>5</d2p1:bonus_pay>
    <d2p1:coupon_pay>4</d2p1:coupon_pay>
    <d2p1:freight_total>3</d2p1:freight_total>
    <d2p1:freight_voucher_pay>6</d2p1:freight_voucher_pay>
    <d2p1:goods_pay_total>2</d2p1:goods_pay_total>
    <d2p1:note>sample string 16</d2p1:note>
    <d2p1:order_code>sample string 1</d2p1:order_code>
    <d2p1:pay_time>2025-12-06T12:20:52.4374777+08:00</d2p1:pay_time>
    <d2p1:pay_total>8</d2p1:pay_total>
    <d2p1:payables_total>7</d2p1:payables_total>
    <d2p1:ship_type>Delivery</d2p1:ship_type>
    <d2p1:signer_address>sample string 14</d2p1:signer_address>
    <d2p1:signer_city>sample string 12</d2p1:signer_city>
    <d2p1:signer_district>sample string 13</d2p1:signer_district>
    <d2p1:signer_name>sample string 9</d2p1:signer_name>
    <d2p1:signer_phone>sample string 10</d2p1:signer_phone>
    <d2p1:signer_province>sample string 11</d2p1:signer_province>
  </order_new>
  <splitInfoList xmlns:d2p1="http://schemas.datacontract.org/2004/07/JWS.Logic.Q.Entity">
    <d2p1:SplitOrderAdjustInfo>
      <d2p1:adjust_code>sample string 1</d2p1:adjust_code>
      <d2p1:new_suborders_code>sample string 3</d2p1:new_suborders_code>
      <d2p1:old_suborders_code>sample string 2</d2p1:old_suborders_code>
    </d2p1:SplitOrderAdjustInfo>
    <d2p1:SplitOrderAdjustInfo>
      <d2p1:adjust_code>sample string 1</d2p1:adjust_code>
      <d2p1:new_suborders_code>sample string 3</d2p1:new_suborders_code>
      <d2p1:old_suborders_code>sample string 2</d2p1:old_suborders_code>
    </d2p1:SplitOrderAdjustInfo>
  </splitInfoList>
</SplitInfo>

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

Response Information

Resource Description

Object

None.

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/" />