POST api/ShipConsolidationUnit_V1
Ship Consolidation Unit by ID
Request Information
URI Parameters
None.
Body Parameters
The request is presented below!
WS_Repository.Models.Requests.ConsolidationUnit.ShipConsolidationUnitRequestName | Description | Type | Additional information |
---|---|---|---|
WS_Key |
(Mandatory) Webservice Key provided by 2ship support |
string |
None. |
ConsolidationUnitId |
(Mandatory) The Id of the consolidation Unit |
integer |
None. |
RetrieveBase64StringDocuments |
(Optional) Use to get in the responso also the documents in Base64String format |
boolean |
None. |
ShipDetails |
(Optional) Other ship details that can override existing details in the ConsolidationUnit |
WS_Repository.Models.Requests.ConsolidationUnit.CUShipDetails |
None. |
Request Formats
application/json, text/json
{ "WS_Key": "sample string 1", "ConsolidationUnitId": 2, "RetrieveBase64StringDocuments": true, "ShipDetails": { "CarrierId": 1, "ServiceCode": "sample string 2" } }
application/xml, text/xml
<ShipConsolidationUnitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WS_Repository.Models.Requests.ConsolidationUnit"> <ConsolidationUnitId>2</ConsolidationUnitId> <RetrieveBase64StringDocuments>true</RetrieveBase64StringDocuments> <ShipDetails> <CarrierId>1</CarrierId> <ServiceCode>sample string 2</ServiceCode> </ShipDetails> <WS_Key>sample string 1</WS_Key> </ShipConsolidationUnitRequest>
application/x-www-form-urlencoded
Response Information
Resource Description
WS_Repository.Models.Responses.Ship.CarrierShipResponseName | Description | Type | Additional information |
---|---|---|---|
ShipDocuments |
Array of Ship Documents |
Collection of WS_Repository.Models.Responses.Ship.ShipDocument |
None. |
ShipId |
Internal 2ship Shipment Id |
integer |
None. |
OrderNumber |
Order number, optional, assigned by callers on the request |
string |
None. |
CloseAggregationId |
Specify if the shipment is aggregated with other shipments at close transaction - the close aggregation id represent the firstshipment id from the group of aggregated shipments - Used on GetShipments transaction |
integer |
None. |
Service |
Rate Service |
WS_Repository.Models.Responses.Rate.RateService |
None. |
Carrier |
Rate Service |
WS_Repository.Models.Responses.Rate.Carrier |
None. |
LocationId |
2Ship Location Id |
integer |
None. |
LocationName |
2Ship Location Name |
string |
None. |
ProNumber |
Pro Number - will be populated when the carrier is LTL and was shipped with a Pro Number |
string |
None. |
TrackingNumber |
Carrier Master TrackingNumber of the shipment |
string |
None. |
TrackingUrl |
2Ship Tracking Url |
string |
None. |
AirwayBillNumber |
Carrier Airway Bill Number of the shipment (not used by all carriers) |
string |
None. |
PackageTrackingNumbers |
Carrier Package TrackingNumbers of the shipment |
Collection of string |
None. |
ShipmentDetails |
Details of the shipment |
WS_Repository.Models.Responses.Ship.ShipmentDetails |
None. |
ExchangeRate |
Exchange Rate object available if the RateCurrencySelect is specify on the ship request |
WS_Repository.Models.Responses.Ship.ExchangeRate |
None. |
MycarrierDetails |
when the carrier is My Carrier(999) here are populated your carrier info |
WS_Repository.Models.Responses.Ship.MyCarrierDetails |
None. |
Status |
The current status of the shipment (returned only from GetChanges ws call): Shipped, Deleted, Closed, DeletedOnHold, Imported |
string |
None. |
StatusTimestamp |
The timestamp when the shipment changed to the given status (returned only from GetChanges ws call) |
string |
None. |
QRCodeValue |
QR Code Value |
string |
None. |
QRCodeImageURL |
QR Code Image URL |
string |
None. |
ClientId |
ClientId of Client created the shipment |
integer |
None. |
ExternalClientID |
External client ID |
string |
None. |
UserId |
UserId of user created the shipment |
integer |
None. |
UserName |
User name of user created the shipment |
string |
None. |
WebsiteUrl |
(Only available on ShipmentStatusChange webhooks at ship/delete) WebsiteUrl |
string |
None. |
OriginHubCode |
Origin Hub/Airport Code |
string |
None. |
DestinationHubCode |
Origin Hub/Airport Code |
string |
None. |
InternalNotes |
Internal notes |
string |
None. |
ShipWithoutPrinterMessage |
(Optional) Use this filter to find the Carrier services that allow you to ship without the need for a printed label |
string |
None. |
WebhookType |
Webhook Type |
string |
None. |