POST api/Ship
Used to create a new shipment in CNW TMS. The method is secure and requires a UserGUID to be assigned.
Request Information
URI Parameters
None.
Body Parameters
CreateOrderParmName | Description | Type | Additional information |
---|---|---|---|
UserGUID |
Unique user GUID assigned for security purposes |
string |
Required Max length: 36 |
BillToType |
Bill to "S"hipper, "C"onsignee or "3"rd party |
string |
Required Max length: 1 |
ShipperAccountNumber |
Shippers account number |
string |
Required Max length: 20 |
ConsigneeAccountNumber |
Consignee account number |
string |
Max length: 20 |
ThirdPartyAccountNumber |
Third party account number |
string |
Max length: 20 |
ShipperName |
The name of person shipping the package. |
string |
Required Max length: 50 |
ShipperPhone |
The shippers phone number. |
string |
Max length: 25 |
ShipperFax |
The shippers fax number. |
string |
Max length: 25 |
ShipperEmail |
The shippers email address. |
string |
Max length: 100 |
PickupAddressCode |
An address code used to identify the pickup address |
string |
Max length: 15 |
PickupCompanyName |
The name of the company at the pickup location |
string |
Required Max length: 50 |
PickupAddress1 |
Address line 1 at the pickup location |
string |
Max length: 50 |
PickupAddress2 |
Address line 2 at the pickup location |
string |
Max length: 50 |
PickupAddress3 |
Address line 3 at the pickup location |
string |
Max length: 50 |
PickupCityName |
The city name at the pickup location |
string |
Required Max length: 50 |
PickupStateProvID |
The state or province at the pickup location |
string |
Max length: 3 |
PickupPostalCode |
The postal code at the pickup location |
string |
Max length: 10 |
PickupCountryID |
The country identifier at the pickup location |
string |
Required Max length: 2 |
PickupPersonToSee |
The person to see at the pickup location |
string |
Max length: 50 |
PickupPhoneNumber |
The phone number at the pickup location |
string |
Max length: 25 |
PickupFaxNumber |
The fax number at the pickup location |
string |
Max length: 25 |
PickupEmailAddress |
The email address of pickup contact |
string |
Max length: 100 |
PickupInstructions |
The pickup instructions at the pickup location |
string |
Max length: 500 |
DeliveryAddressCode |
An address code used to identify the delivery address |
string |
Max length: 15 |
DeliveryCompanyName |
The name of the company at the pickup location |
string |
Required Max length: 50 |
DeliveryAddress1 |
The address line 1 at the delivery location |
string |
Max length: 50 |
DeliveryAddress2 |
The address line 2 at the delivery location |
string |
Max length: 50 |
DeliveryAddress3 |
The address line 3 at the delivery location |
string |
Max length: 50 |
DeliveryCityName |
The name of the city at the delivery location |
string |
Required Max length: 50 |
DeliveryStateProvID |
The state or province at the delivery location |
string |
Max length: 3 |
DeliveryPostalCode |
The postal code at the delivery location |
string |
Max length: 10 |
DeliveryCountryID |
The country ID at the delivery location (ie. US) |
string |
Required Max length: 2 |
DeliveryAttention |
The attention to person at the delivery location |
string |
Max length: 50 |
DeliveryPhoneNumber |
The phone number at the delivery location |
string |
Max length: 25 |
DeliveryFaxNumber |
The fax number at the delivery location |
string |
Max length: 25 |
DeliveryEmailAddress |
The email address at the delivery location |
string |
Max length: 100 |
DeliveryInstructions |
The delivery instructions at the delivery location |
string |
Max length: 500 |
Contents |
The description of the contents at of the shipment |
string |
Max length: 100 |
Reference |
Customer specified reference value for the shipment |
string |
Max length: 50 |
Pieces |
Number of pieces in the shipment |
integer |
Required Range: inclusive between 1 and 9999 |
Weight |
Total actual weight of the shipment |
decimal number |
Required Range: inclusive between 0.5 and 99999 |
WeightUOM |
Weight unit of measure (LB,KG) |
string |
Required Max length: 2 |
Length |
Length of each piece in the shipment |
string |
Range: inclusive between 1 and 9999 |
Width |
Width of each piece in the shipment |
string |
Range: inclusive between 1 and 9999 |
Height |
Height of each piece in the shipment |
string |
Range: inclusive between 1 and 9999 |
SizeUOM |
Size unit of measure (IN,CM) |
string |
Required Max length: 2 |
ServiceCode |
Code of the service required for shipment |
string |
Required Max length: 15 |
ReadyDate |
Date shipment will be ready for pickup (YYYY-MM-dd) |
string |
Required Max length: 10 |
ReadyTime |
Time of day shipment will be ready for pickup (HH:mm) |
string |
Required Max length: 5 |
RequestedDeliveryDate |
Requested delivery Date (YYYY-MM-dd) |
string |
Max length: 10 |
RequestedDeliveryTime |
Requested delivery Time (HH:mm) |
string |
Max length: 5 |
DeclaredValue |
Declared value of shipment |
decimal number |
Range: inclusive between 1 and 999999 |
DeclaredValueCurrencyID |
Current of declared value (ie. USD) |
string |
Max length: 3 |
OtherReferenceTypeID1 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID2 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID3 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID4 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID5 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID6 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID7 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReferenceTypeID8 |
Custom reference type id (can be set in user profile) |
integer |
None. |
OtherReference1 |
Custom reference value |
string |
Max length: 50 |
OtherReference2 |
Custom reference value |
string |
Max length: 50 |
OtherReference3 |
Custom reference value |
string |
Max length: 50 |
OtherReference4 |
Custom reference value |
string |
Max length: 50 |
OtherReference5 |
Custom reference value |
string |
Max length: 50 |
OtherReference6 |
Custom reference value |
string |
Max length: 50 |
OtherReference7 |
Custom reference value |
string |
Max length: 50 |
OtherReference8 |
Custom reference value |
string |
Max length: 50 |
TrackingNumber |
Tracking number, specify only if using pre-printed airbills |
string |
Max length: 20 |
AesITN |
ITN# used by AES |
string |
Max length: 10 |
DeliveredDuty | string |
None. |
|
FreeText | string |
None. |
|
SoldToCompanyName | string |
None. |
|
SoldToAddress1 | string |
None. |
|
SoldToAddress2 | string |
None. |
|
SoldToAddress3 | string |
None. |
|
SoldToCityName | string |
None. |
|
SoldToStateProvID | string |
None. |
|
SoldToPostalCode | string |
None. |
|
SoldToCountryID | string |
None. |
|
PieceDetail |
Contains the detail information regarding a piece (use only when multiple piece shipment) |
Collection of Piece |
None. |
Notes |
Contains any miscellanous notes that should be associated with the order |
Collection of Note |
None. |
Items |
Contains the items in the shipment, used for reporting and can be used for customs |
Collection of Item |
None. |
PuMawbIdentifier |
Shipper's enterprise code (TAX ID) incl. identifier (China) |
string |
None. |
PuAeoNumber |
Shipper's AEO number (China) |
string |
None. |
DelMawbIdentifier |
Consignee's enterprise code (TAX ID) incl. identifier (China) |
string |
None. |
DelAeoNumber |
Consignee's AEO number (China) |
string |
None. |
Request Formats
application/json, text/json
{ "UserGUID": "sample string 1", "BillToType": "sample string 2", "ShipperAccountNumber": "sample string 3", "ConsigneeAccountNumber": "sample string 4", "ThirdPartyAccountNumber": "sample string 5", "ShipperName": "sample string 6", "ShipperPhone": "sample string 7", "ShipperFax": "sample string 8", "ShipperEmail": "sample string 9", "PickupAddressCode": "sample string 10", "PickupCompanyName": "sample string 11", "PickupAddress1": "sample string 12", "PickupAddress2": "sample string 13", "PickupAddress3": "sample string 14", "PickupCityName": "sample string 15", "PickupStateProvID": "sample string 16", "PickupPostalCode": "sample string 17", "PickupCountryID": "sample string 18", "PickupPersonToSee": "sample string 19", "PickupPhoneNumber": "sample string 20", "PickupFaxNumber": "sample string 21", "PickupEmailAddress": "sample string 22", "PickupInstructions": "sample string 23", "DeliveryAddressCode": "sample string 24", "DeliveryCompanyName": "sample string 25", "DeliveryAddress1": "sample string 26", "DeliveryAddress2": "sample string 27", "DeliveryAddress3": "sample string 28", "DeliveryCityName": "sample string 29", "DeliveryStateProvID": "sample string 30", "DeliveryPostalCode": "sample string 31", "DeliveryCountryID": "sample string 32", "DeliveryAttention": "sample string 33", "DeliveryPhoneNumber": "sample string 34", "DeliveryFaxNumber": "sample string 35", "DeliveryEmailAddress": "sample string 36", "DeliveryInstructions": "sample string 37", "Contents": "sample string 38", "Reference": "sample string 39", "Pieces": 40, "Weight": 41.0, "WeightUOM": "sample string 42", "Length": "sample string 43", "Width": "sample string 44", "Height": "sample string 45", "SizeUOM": "sample string 46", "ServiceCode": "sample string 47", "ReadyDate": "sample string 48", "ReadyTime": "sample string 49", "RequestedDeliveryDate": "sample string 50", "RequestedDeliveryTime": "sample string 51", "DeclaredValue": 52.0, "DeclaredValueCurrencyID": "sample string 53", "OtherReferenceTypeID1": 54, "OtherReferenceTypeID2": 55, "OtherReferenceTypeID3": 56, "OtherReferenceTypeID4": 57, "OtherReferenceTypeID5": 58, "OtherReferenceTypeID6": 59, "OtherReferenceTypeID7": 60, "OtherReferenceTypeID8": 61, "OtherReference1": "sample string 62", "OtherReference2": "sample string 63", "OtherReference3": "sample string 64", "OtherReference4": "sample string 65", "OtherReference5": "sample string 66", "OtherReference6": "sample string 67", "OtherReference7": "sample string 68", "OtherReference8": "sample string 69", "TrackingNumber": "sample string 70", "AesITN": "sample string 71", "DeliveredDuty": "sample string 72", "FreeText": "sample string 73", "SoldToCompanyName": "sample string 74", "SoldToAddress1": "sample string 75", "SoldToAddress2": "sample string 76", "SoldToAddress3": "sample string 77", "SoldToCityName": "sample string 78", "SoldToStateProvID": "sample string 79", "SoldToPostalCode": "sample string 80", "SoldToCountryID": "sample string 81", "PieceDetail": [ { "Weight": 1.0, "WeightUOM": "sample string 1", "Length": "sample string 2", "Width": "sample string 3", "Height": "sample string 4", "SizeUOM": "sample string 5", "Contents": "sample string 6", "Reference": "sample string 7", "DeclaredValue": 1.0, "DeclaredValueCurrencyID": "sample string 8", "HSCode": "sample string 9", "CountryOfOrigin": "sample string 10", "TemperatureType": "sample string 11", "IsDangerousGoods": true, "IsRadioactive": true, "DgUNNumber": "sample string 14", "DgCommodityClass": "sample string 15", "DgProperName": "sample string 16", "Quantity": 1 }, { "Weight": 1.0, "WeightUOM": "sample string 1", "Length": "sample string 2", "Width": "sample string 3", "Height": "sample string 4", "SizeUOM": "sample string 5", "Contents": "sample string 6", "Reference": "sample string 7", "DeclaredValue": 1.0, "DeclaredValueCurrencyID": "sample string 8", "HSCode": "sample string 9", "CountryOfOrigin": "sample string 10", "TemperatureType": "sample string 11", "IsDangerousGoods": true, "IsRadioactive": true, "DgUNNumber": "sample string 14", "DgCommodityClass": "sample string 15", "DgProperName": "sample string 16", "Quantity": 1 } ], "Notes": [ { "Text": "sample string 1" }, { "Text": "sample string 1" } ], "Items": [ { "SKUValue": "sample string 1", "ItemName": "sample string 2", "Quantity": 3, "HarmonizedCode": "sample string 4", "HarmonizedCodeExp": "sample string 5", "Value": 1.0, "ValueCurrencyID": "sample string 6", "CountryOfOrigin": "sample string 7", "ECCN": "sample string 8", "LicenseType": "sample string 9", "LicenseCode": "sample string 10", "NumberOfBoxes": 1, "WeightOfBoxes": 1.0, "Reference": "sample string 11" }, { "SKUValue": "sample string 1", "ItemName": "sample string 2", "Quantity": 3, "HarmonizedCode": "sample string 4", "HarmonizedCodeExp": "sample string 5", "Value": 1.0, "ValueCurrencyID": "sample string 6", "CountryOfOrigin": "sample string 7", "ECCN": "sample string 8", "LicenseType": "sample string 9", "LicenseCode": "sample string 10", "NumberOfBoxes": 1, "WeightOfBoxes": 1.0, "Reference": "sample string 11" } ], "PuMawbIdentifier": "sample string 82", "PuAeoNumber": "sample string 83", "DelMawbIdentifier": "sample string 84", "DelAeoNumber": "sample string 85" }
application/xml, text/xml
<CreateOrderParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Shipper.Models"> <AesITN>sample string 71</AesITN> <BillToType>sample string 2</BillToType> <ConsigneeAccountNumber>sample string 4</ConsigneeAccountNumber> <Contents>sample string 38</Contents> <DeclaredValue>52</DeclaredValue> <DeclaredValueCurrencyID>sample string 53</DeclaredValueCurrencyID> <DelAeoNumber>sample string 85</DelAeoNumber> <DelMawbIdentifier>sample string 84</DelMawbIdentifier> <DeliveredDuty>sample string 72</DeliveredDuty> <DeliveryAddress1>sample string 26</DeliveryAddress1> <DeliveryAddress2>sample string 27</DeliveryAddress2> <DeliveryAddress3>sample string 28</DeliveryAddress3> <DeliveryAddressCode>sample string 24</DeliveryAddressCode> <DeliveryAttention>sample string 33</DeliveryAttention> <DeliveryCityName>sample string 29</DeliveryCityName> <DeliveryCompanyName>sample string 25</DeliveryCompanyName> <DeliveryCountryID>sample string 32</DeliveryCountryID> <DeliveryEmailAddress>sample string 36</DeliveryEmailAddress> <DeliveryFaxNumber>sample string 35</DeliveryFaxNumber> <DeliveryInstructions>sample string 37</DeliveryInstructions> <DeliveryPhoneNumber>sample string 34</DeliveryPhoneNumber> <DeliveryPostalCode>sample string 31</DeliveryPostalCode> <DeliveryStateProvID>sample string 30</DeliveryStateProvID> <FreeText>sample string 73</FreeText> <Height>sample string 45</Height> <Items> <Item> <CountryOfOrigin>sample string 7</CountryOfOrigin> <ECCN>sample string 8</ECCN> <HarmonizedCode>sample string 4</HarmonizedCode> <HarmonizedCodeExp>sample string 5</HarmonizedCodeExp> <ItemName>sample string 2</ItemName> <LicenseCode>sample string 10</LicenseCode> <LicenseType>sample string 9</LicenseType> <NumberOfBoxes>1</NumberOfBoxes> <Quantity>3</Quantity> <Reference>sample string 11</Reference> <SKUValue>sample string 1</SKUValue> <Value>1</Value> <ValueCurrencyID>sample string 6</ValueCurrencyID> <WeightOfBoxes>1</WeightOfBoxes> </Item> <Item> <CountryOfOrigin>sample string 7</CountryOfOrigin> <ECCN>sample string 8</ECCN> <HarmonizedCode>sample string 4</HarmonizedCode> <HarmonizedCodeExp>sample string 5</HarmonizedCodeExp> <ItemName>sample string 2</ItemName> <LicenseCode>sample string 10</LicenseCode> <LicenseType>sample string 9</LicenseType> <NumberOfBoxes>1</NumberOfBoxes> <Quantity>3</Quantity> <Reference>sample string 11</Reference> <SKUValue>sample string 1</SKUValue> <Value>1</Value> <ValueCurrencyID>sample string 6</ValueCurrencyID> <WeightOfBoxes>1</WeightOfBoxes> </Item> </Items> <Length>sample string 43</Length> <Notes> <Note> <Text>sample string 1</Text> </Note> <Note> <Text>sample string 1</Text> </Note> </Notes> <OtherReference1>sample string 62</OtherReference1> <OtherReference2>sample string 63</OtherReference2> <OtherReference3>sample string 64</OtherReference3> <OtherReference4>sample string 65</OtherReference4> <OtherReference5>sample string 66</OtherReference5> <OtherReference6>sample string 67</OtherReference6> <OtherReference7>sample string 68</OtherReference7> <OtherReference8>sample string 69</OtherReference8> <OtherReferenceTypeID1>54</OtherReferenceTypeID1> <OtherReferenceTypeID2>55</OtherReferenceTypeID2> <OtherReferenceTypeID3>56</OtherReferenceTypeID3> <OtherReferenceTypeID4>57</OtherReferenceTypeID4> <OtherReferenceTypeID5>58</OtherReferenceTypeID5> <OtherReferenceTypeID6>59</OtherReferenceTypeID6> <OtherReferenceTypeID7>60</OtherReferenceTypeID7> <OtherReferenceTypeID8>61</OtherReferenceTypeID8> <PickupAddress1>sample string 12</PickupAddress1> <PickupAddress2>sample string 13</PickupAddress2> <PickupAddress3>sample string 14</PickupAddress3> <PickupAddressCode>sample string 10</PickupAddressCode> <PickupCityName>sample string 15</PickupCityName> <PickupCompanyName>sample string 11</PickupCompanyName> <PickupCountryID>sample string 18</PickupCountryID> <PickupEmailAddress>sample string 22</PickupEmailAddress> <PickupFaxNumber>sample string 21</PickupFaxNumber> <PickupInstructions>sample string 23</PickupInstructions> <PickupPersonToSee>sample string 19</PickupPersonToSee> <PickupPhoneNumber>sample string 20</PickupPhoneNumber> <PickupPostalCode>sample string 17</PickupPostalCode> <PickupStateProvID>sample string 16</PickupStateProvID> <PieceDetail> <Piece> <Contents>sample string 6</Contents> <CountryOfOrigin>sample string 10</CountryOfOrigin> <DeclaredValue>1</DeclaredValue> <DeclaredValueCurrencyID>sample string 8</DeclaredValueCurrencyID> <DgCommodityClass>sample string 15</DgCommodityClass> <DgProperName>sample string 16</DgProperName> <DgUNNumber>sample string 14</DgUNNumber> <HSCode>sample string 9</HSCode> <Height>sample string 4</Height> <IsDangerousGoods>true</IsDangerousGoods> <IsRadioactive>true</IsRadioactive> <Length>sample string 2</Length> <Quantity>1</Quantity> <Reference>sample string 7</Reference> <SizeUOM>sample string 5</SizeUOM> <TemperatureType>sample string 11</TemperatureType> <Weight>1</Weight> <WeightUOM>sample string 1</WeightUOM> <Width>sample string 3</Width> </Piece> <Piece> <Contents>sample string 6</Contents> <CountryOfOrigin>sample string 10</CountryOfOrigin> <DeclaredValue>1</DeclaredValue> <DeclaredValueCurrencyID>sample string 8</DeclaredValueCurrencyID> <DgCommodityClass>sample string 15</DgCommodityClass> <DgProperName>sample string 16</DgProperName> <DgUNNumber>sample string 14</DgUNNumber> <HSCode>sample string 9</HSCode> <Height>sample string 4</Height> <IsDangerousGoods>true</IsDangerousGoods> <IsRadioactive>true</IsRadioactive> <Length>sample string 2</Length> <Quantity>1</Quantity> <Reference>sample string 7</Reference> <SizeUOM>sample string 5</SizeUOM> <TemperatureType>sample string 11</TemperatureType> <Weight>1</Weight> <WeightUOM>sample string 1</WeightUOM> <Width>sample string 3</Width> </Piece> </PieceDetail> <Pieces>40</Pieces> <PuAeoNumber>sample string 83</PuAeoNumber> <PuMawbIdentifier>sample string 82</PuMawbIdentifier> <ReadyDate>sample string 48</ReadyDate> <ReadyTime>sample string 49</ReadyTime> <Reference>sample string 39</Reference> <RequestedDeliveryDate>sample string 50</RequestedDeliveryDate> <RequestedDeliveryTime>sample string 51</RequestedDeliveryTime> <ServiceCode>sample string 47</ServiceCode> <ShipperAccountNumber>sample string 3</ShipperAccountNumber> <ShipperEmail>sample string 9</ShipperEmail> <ShipperFax>sample string 8</ShipperFax> <ShipperName>sample string 6</ShipperName> <ShipperPhone>sample string 7</ShipperPhone> <SizeUOM>sample string 46</SizeUOM> <SoldToAddress1>sample string 75</SoldToAddress1> <SoldToAddress2>sample string 76</SoldToAddress2> <SoldToAddress3>sample string 77</SoldToAddress3> <SoldToCityName>sample string 78</SoldToCityName> <SoldToCompanyName>sample string 74</SoldToCompanyName> <SoldToCountryID>sample string 81</SoldToCountryID> <SoldToPostalCode>sample string 80</SoldToPostalCode> <SoldToStateProvID>sample string 79</SoldToStateProvID> <ThirdPartyAccountNumber>sample string 5</ThirdPartyAccountNumber> <TrackingNumber>sample string 70</TrackingNumber> <UserGUID>sample string 1</UserGUID> <Weight>41</Weight> <WeightUOM>sample string 42</WeightUOM> <Width>sample string 44</Width> </CreateOrderParm>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
CreateOrderResponseName | Description | Type | Additional information |
---|---|---|---|
ShipmentNumber |
Unique shipment number used to reference shipment |
integer |
None. |
IsSuccessful |
If true, then method call was successful |
boolean |
None. |
ErrorMessage |
Contains an error message is method call failed |
string |
None. |
Response Formats
application/json, text/json
{ "ShipmentNumber": 1, "IsSuccessful": true, "ErrorMessage": "sample string 3" }
application/xml, text/xml
<CreateOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Shipper.Models"> <ErrorMessage>sample string 3</ErrorMessage> <IsSuccessful>true</IsSuccessful> <ShipmentNumber>1</ShipmentNumber> </CreateOrderResponse>