POST api/Ship

Used to create a new shipment in ShipSameday. The method is secure and requires a UserGUID to be assigned.

Request Information

URI Parameters

None.

Body Parameters

CreateOrderParm
NameDescriptionTypeAdditional 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

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

Required

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

integer

Range: inclusive between 1 and 9999

Width

Width of each piece in the shipment

integer

Range: inclusive between 1 and 9999

Height

Height of each piece in the shipment

integer

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

Request Formats

application/json, text/json

Sample:
{
  "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",
  "PickupInstructions": "sample string 22",
  "DeliveryAddressCode": "sample string 23",
  "DeliveryCompanyName": "sample string 24",
  "DeliveryAddress1": "sample string 25",
  "DeliveryAddress2": "sample string 26",
  "DeliveryAddress3": "sample string 27",
  "DeliveryCityName": "sample string 28",
  "DeliveryStateProvID": "sample string 29",
  "DeliveryPostalCode": "sample string 30",
  "DeliveryCountryID": "sample string 31",
  "DeliveryAttention": "sample string 32",
  "DeliveryPhoneNumber": "sample string 33",
  "DeliveryFaxNumber": "sample string 34",
  "DeliveryEmailAddress": "sample string 35",
  "DeliveryInstructions": "sample string 36",
  "Contents": "sample string 37",
  "Reference": "sample string 38",
  "Pieces": 39,
  "Weight": 40.0,
  "WeightUOM": "sample string 41",
  "Length": 42,
  "Width": 43,
  "Height": 44,
  "SizeUOM": "sample string 45",
  "ServiceCode": "sample string 46",
  "ReadyDate": "sample string 47",
  "ReadyTime": "sample string 48",
  "RequestedDeliveryDate": "sample string 49",
  "RequestedDeliveryTime": "sample string 50",
  "DeclaredValue": 51.0,
  "DeclaredValueCurrencyID": "sample string 52",
  "OtherReferenceTypeID1": 53,
  "OtherReferenceTypeID2": 54,
  "OtherReferenceTypeID3": 55,
  "OtherReferenceTypeID4": 56,
  "OtherReferenceTypeID5": 57,
  "OtherReferenceTypeID6": 58,
  "OtherReferenceTypeID7": 59,
  "OtherReferenceTypeID8": 60,
  "OtherReference1": "sample string 61",
  "OtherReference2": "sample string 62",
  "OtherReference3": "sample string 63",
  "OtherReference4": "sample string 64",
  "OtherReference5": "sample string 65",
  "OtherReference6": "sample string 66",
  "OtherReference7": "sample string 67",
  "OtherReference8": "sample string 68",
  "TrackingNumber": "sample string 69",
  "AesITN": "sample string 70"
}

application/xml, text/xml

Sample:
<CreateOrderParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Shipper1.Models">
  <AesITN>sample string 70</AesITN>
  <BillToType>sample string 2</BillToType>
  <ConsigneeAccountNumber>sample string 4</ConsigneeAccountNumber>
  <Contents>sample string 37</Contents>
  <DeclaredValue>51</DeclaredValue>
  <DeclaredValueCurrencyID>sample string 52</DeclaredValueCurrencyID>
  <DeliveryAddress1>sample string 25</DeliveryAddress1>
  <DeliveryAddress2>sample string 26</DeliveryAddress2>
  <DeliveryAddress3>sample string 27</DeliveryAddress3>
  <DeliveryAddressCode>sample string 23</DeliveryAddressCode>
  <DeliveryAttention>sample string 32</DeliveryAttention>
  <DeliveryCityName>sample string 28</DeliveryCityName>
  <DeliveryCompanyName>sample string 24</DeliveryCompanyName>
  <DeliveryCountryID>sample string 31</DeliveryCountryID>
  <DeliveryEmailAddress>sample string 35</DeliveryEmailAddress>
  <DeliveryFaxNumber>sample string 34</DeliveryFaxNumber>
  <DeliveryInstructions>sample string 36</DeliveryInstructions>
  <DeliveryPhoneNumber>sample string 33</DeliveryPhoneNumber>
  <DeliveryPostalCode>sample string 30</DeliveryPostalCode>
  <DeliveryStateProvID>sample string 29</DeliveryStateProvID>
  <Height>44</Height>
  <Length>42</Length>
  <OtherReference1>sample string 61</OtherReference1>
  <OtherReference2>sample string 62</OtherReference2>
  <OtherReference3>sample string 63</OtherReference3>
  <OtherReference4>sample string 64</OtherReference4>
  <OtherReference5>sample string 65</OtherReference5>
  <OtherReference6>sample string 66</OtherReference6>
  <OtherReference7>sample string 67</OtherReference7>
  <OtherReference8>sample string 68</OtherReference8>
  <OtherReferenceTypeID1>53</OtherReferenceTypeID1>
  <OtherReferenceTypeID2>54</OtherReferenceTypeID2>
  <OtherReferenceTypeID3>55</OtherReferenceTypeID3>
  <OtherReferenceTypeID4>56</OtherReferenceTypeID4>
  <OtherReferenceTypeID5>57</OtherReferenceTypeID5>
  <OtherReferenceTypeID6>58</OtherReferenceTypeID6>
  <OtherReferenceTypeID7>59</OtherReferenceTypeID7>
  <OtherReferenceTypeID8>60</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>
  <PickupFaxNumber>sample string 21</PickupFaxNumber>
  <PickupInstructions>sample string 22</PickupInstructions>
  <PickupPersonToSee>sample string 19</PickupPersonToSee>
  <PickupPhoneNumber>sample string 20</PickupPhoneNumber>
  <PickupPostalCode>sample string 17</PickupPostalCode>
  <PickupStateProvID>sample string 16</PickupStateProvID>
  <Pieces>39</Pieces>
  <ReadyDate>sample string 47</ReadyDate>
  <ReadyTime>sample string 48</ReadyTime>
  <Reference>sample string 38</Reference>
  <RequestedDeliveryDate>sample string 49</RequestedDeliveryDate>
  <RequestedDeliveryTime>sample string 50</RequestedDeliveryTime>
  <ServiceCode>sample string 46</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 45</SizeUOM>
  <ThirdPartyAccountNumber>sample string 5</ThirdPartyAccountNumber>
  <TrackingNumber>sample string 69</TrackingNumber>
  <UserGUID>sample string 1</UserGUID>
  <Weight>40</Weight>
  <WeightUOM>sample string 41</WeightUOM>
  <Width>43</Width>
</CreateOrderParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateOrderResponse
NameDescriptionTypeAdditional 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

Sample:
{
  "ShipmentNumber": 1,
  "IsSuccessful": true,
  "ErrorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<CreateOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Shipper1.Models">
  <ErrorMessage>sample string 3</ErrorMessage>
  <IsSuccessful>true</IsSuccessful>
  <ShipmentNumber>1</ShipmentNumber>
</CreateOrderResponse>