POST api/Helper/ORDER_ADD_AND_SEND_TRANSPORT
Request Information
URI Parameters
None.
Body Parameters
ZOrderAddRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| EMSOneCode | string |
None. |
|
| OrderCode | string |
None. |
|
| OrderedProducts | Collection of ZOrderAddItemRequest |
None. |
|
| WareHouseID | integer |
None. |
|
| CustomerID | integer |
None. |
|
| ShipmentDetails | ZOrderAddShipmentInfoRequest |
None. |
|
| TotalAmount | integer |
None. |
|
| ProductNumber | integer |
None. |
|
| TotalDiscount | integer |
None. |
|
| TransportFee | integer |
None. |
|
| TotalOrderValue | integer |
None. |
|
| TotalCOD | integer |
None. |
|
| TotalPHU | integer |
None. |
|
| PaymentStatus | string |
None. |
|
| PaymentMethod | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| ShopID | integer |
None. |
|
| Transport | string |
None. |
|
| Channel | string |
None. |
|
| isRequestOrder | string |
None. |
|
| isUpdatedCustomer | string |
None. |
|
| isSendTransport | string |
None. |
|
| Status | string |
None. |
|
| Note | string |
None. |
|
| Message | string |
None. |
|
| RequestOrderID | integer |
None. |
|
| ProductSKU | string |
None. |
|
| ListInventoryDetail | Collection of ZInventoryDetailAddRequest |
None. |
|
| TransportOrderName | string |
None. |
|
| TransportWeight | decimal number |
None. |
|
| TransportSizeLength | decimal number |
None. |
|
| TransportSizeWidth | decimal number |
None. |
|
| TransportSizeHeight | decimal number |
None. |
|
| TransportSize | string |
None. |
|
| TransportQuantity | integer |
None. |
|
| TransportOrderValue | integer |
None. |
|
| TransportMainService | integer |
None. |
|
| TransportPayer | integer |
None. |
|
| TransportExtraService | string |
None. |
|
| DeliveryNoteID | integer |
None. |
|
| DeliveryNoteCode | string |
None. |
|
| CollectionType | integer |
None. |
|
| DeviceName | string |
None. |
|
| PromoCode | string |
None. |
|
| CreateTime | string |
None. |
|
| ExpectedDeliveryDate | string |
None. |
|
| CollectionPostOfficeRecentID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"EMSOneCode": "sample string 1",
"OrderCode": "sample string 2",
"OrderedProducts": [
{
"OrderID": 1,
"ProductID": 2,
"VariantID": 3,
"NumberOfProduct": 4,
"Price": 5,
"Discount": 6
},
{
"OrderID": 1,
"ProductID": 2,
"VariantID": 3,
"NumberOfProduct": 4,
"Price": 5,
"Discount": 6
}
],
"WareHouseID": 3,
"CustomerID": 4,
"ShipmentDetails": {
"ReceiverName": "sample string 1",
"MobileNumber": "sample string 2",
"Channel": "sample string 3",
"Email": "sample string 4",
"ProvinceID": 5,
"ProvinceName": "sample string 6",
"DistrictID": 7,
"DistrictName": "sample string 8",
"WardID": 9,
"WardName": "sample string 10",
"Address": "sample string 11",
"FullAddress": "sample string 12",
"PickUpAddressID": 13,
"IsReceiverNewAddress": "sample string 14",
"PickupFullName": "sample string 15",
"PickupMobileNumber": "sample string 16",
"PickupProvinceID": 17,
"PickupProvinceName": "sample string 18",
"PickupDistrictID": 19,
"PickupDistrictName": "sample string 20",
"PickupWardID": 21,
"PickupWardName": "sample string 22",
"PickupStreet": "sample string 23",
"PickupFullAddress": "sample string 24"
},
"TotalAmount": 5,
"ProductNumber": 6,
"TotalDiscount": 7,
"TransportFee": 8,
"TotalOrderValue": 9,
"TotalCOD": 10,
"TotalPHU": 11,
"PaymentStatus": "sample string 12",
"PaymentMethod": 13,
"CreatedBy": 14,
"ShopID": 15,
"Transport": "sample string 16",
"Channel": "sample string 17",
"isRequestOrder": "sample string 18",
"isUpdatedCustomer": "sample string 19",
"isSendTransport": "sample string 20",
"Status": "sample string 21",
"Note": "sample string 22",
"Message": "sample string 23",
"RequestOrderID": 24,
"ProductSKU": "sample string 25",
"ListInventoryDetail": [
{
"ShopID": 1,
"InventoryID": 2,
"ProductVariantID": 3,
"Quantity": 4,
"Price": 5,
"TotalAmount": 6,
"CreatedBy": 7,
"NumberOfDateInWareHouse": 8,
"TermInWareHouse": "sample string 9"
},
{
"ShopID": 1,
"InventoryID": 2,
"ProductVariantID": 3,
"Quantity": 4,
"Price": 5,
"TotalAmount": 6,
"CreatedBy": 7,
"NumberOfDateInWareHouse": 8,
"TermInWareHouse": "sample string 9"
}
],
"TransportOrderName": "sample string 26",
"TransportWeight": 27.1,
"TransportSizeLength": 28.1,
"TransportSizeWidth": 29.1,
"TransportSizeHeight": 30.1,
"TransportSize": "sample string 31",
"TransportQuantity": 32,
"TransportOrderValue": 33,
"TransportMainService": 34,
"TransportPayer": 35,
"TransportExtraService": "sample string 36",
"DeliveryNoteID": 37,
"DeliveryNoteCode": "sample string 38",
"CollectionType": 39,
"DeviceName": "sample string 40",
"PromoCode": "sample string 41",
"CreateTime": "sample string 42",
"ExpectedDeliveryDate": "sample string 43",
"CollectionPostOfficeRecentID": 44
}
application/xml, text/xml
Sample:
<ZOrderAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EMS.Entity">
<Channel>sample string 17</Channel>
<CollectionPostOfficeRecentID>44</CollectionPostOfficeRecentID>
<CollectionType>39</CollectionType>
<CreateTime>sample string 42</CreateTime>
<CreatedBy>14</CreatedBy>
<CustomerID>4</CustomerID>
<DeliveryNoteCode>sample string 38</DeliveryNoteCode>
<DeliveryNoteID>37</DeliveryNoteID>
<DeviceName>sample string 40</DeviceName>
<EMSOneCode>sample string 1</EMSOneCode>
<ExpectedDeliveryDate>sample string 43</ExpectedDeliveryDate>
<ListInventoryDetail>
<ZInventoryDetailAddRequest>
<CreatedBy>7</CreatedBy>
<InventoryID>2</InventoryID>
<NumberOfDateInWareHouse>8</NumberOfDateInWareHouse>
<Price>5</Price>
<ProductVariantID>3</ProductVariantID>
<Quantity>4</Quantity>
<ShopID>1</ShopID>
<TermInWareHouse>sample string 9</TermInWareHouse>
<TotalAmount>6</TotalAmount>
</ZInventoryDetailAddRequest>
<ZInventoryDetailAddRequest>
<CreatedBy>7</CreatedBy>
<InventoryID>2</InventoryID>
<NumberOfDateInWareHouse>8</NumberOfDateInWareHouse>
<Price>5</Price>
<ProductVariantID>3</ProductVariantID>
<Quantity>4</Quantity>
<ShopID>1</ShopID>
<TermInWareHouse>sample string 9</TermInWareHouse>
<TotalAmount>6</TotalAmount>
</ZInventoryDetailAddRequest>
</ListInventoryDetail>
<Message>sample string 23</Message>
<Note>sample string 22</Note>
<OrderCode>sample string 2</OrderCode>
<OrderedProducts>
<ZOrderAddItemRequest>
<Discount>6</Discount>
<NumberOfProduct>4</NumberOfProduct>
<OrderID>1</OrderID>
<Price>5</Price>
<ProductID>2</ProductID>
<VariantID>3</VariantID>
</ZOrderAddItemRequest>
<ZOrderAddItemRequest>
<Discount>6</Discount>
<NumberOfProduct>4</NumberOfProduct>
<OrderID>1</OrderID>
<Price>5</Price>
<ProductID>2</ProductID>
<VariantID>3</VariantID>
</ZOrderAddItemRequest>
</OrderedProducts>
<PaymentMethod>13</PaymentMethod>
<PaymentStatus>sample string 12</PaymentStatus>
<ProductNumber>6</ProductNumber>
<ProductSKU>sample string 25</ProductSKU>
<PromoCode>sample string 41</PromoCode>
<RequestOrderID>24</RequestOrderID>
<ShipmentDetails>
<Address>sample string 11</Address>
<Channel>sample string 3</Channel>
<DistrictID>7</DistrictID>
<DistrictName>sample string 8</DistrictName>
<Email>sample string 4</Email>
<FullAddress>sample string 12</FullAddress>
<IsReceiverNewAddress>sample string 14</IsReceiverNewAddress>
<MobileNumber>sample string 2</MobileNumber>
<PickUpAddressID>13</PickUpAddressID>
<PickupDistrictID>19</PickupDistrictID>
<PickupDistrictName>sample string 20</PickupDistrictName>
<PickupFullAddress>sample string 24</PickupFullAddress>
<PickupFullName>sample string 15</PickupFullName>
<PickupMobileNumber>sample string 16</PickupMobileNumber>
<PickupProvinceID>17</PickupProvinceID>
<PickupProvinceName>sample string 18</PickupProvinceName>
<PickupStreet>sample string 23</PickupStreet>
<PickupWardID>21</PickupWardID>
<PickupWardName>sample string 22</PickupWardName>
<ProvinceID>5</ProvinceID>
<ProvinceName>sample string 6</ProvinceName>
<ReceiverName>sample string 1</ReceiverName>
<WardID>9</WardID>
<WardName>sample string 10</WardName>
</ShipmentDetails>
<ShopID>15</ShopID>
<Status>sample string 21</Status>
<TotalAmount>5</TotalAmount>
<TotalCOD>10</TotalCOD>
<TotalDiscount>7</TotalDiscount>
<TotalOrderValue>9</TotalOrderValue>
<TotalPHU>11</TotalPHU>
<Transport>sample string 16</Transport>
<TransportExtraService>sample string 36</TransportExtraService>
<TransportFee>8</TransportFee>
<TransportMainService>34</TransportMainService>
<TransportOrderName>sample string 26</TransportOrderName>
<TransportOrderValue>33</TransportOrderValue>
<TransportPayer>35</TransportPayer>
<TransportQuantity>32</TransportQuantity>
<TransportSize>sample string 31</TransportSize>
<TransportSizeHeight>30.1</TransportSizeHeight>
<TransportSizeLength>28.1</TransportSizeLength>
<TransportSizeWidth>29.1</TransportSizeWidth>
<TransportWeight>27.1</TransportWeight>
<WareHouseID>3</WareHouseID>
<isRequestOrder>sample string 18</isRequestOrder>
<isSendTransport>sample string 20</isSendTransport>
<isUpdatedCustomer>sample string 19</isUpdatedCustomer>
</ZOrderAddRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>