GetShipmentLabels Method
Generates a shipping label using one of domestic UPS services.
Syntax
[VB.NET] Public Sub GetShipmentLabels()
[C#] public void GetShipmentLabels();
Remarks
When this method is called, the following properties must have been set:
- Server (required)
- AccessKey (required)
- Password (required)
- UserId (required)
- AccountNumber (required)
- ServiceType (required)
- AccountContact (conditional)
- AccountAddress (conditional)
- SenderContact (required)
- SenderAddress (required)
- RecipientContact (required)
- RecipientAddress (required)
- Payor (required)
- ShipmentSpecialServices (optional)
- Packages (required)
- LabelImageType (required)
- Notify (optional)
- WeightUnit (required; defaults to LB)
Upon successful response, the following fields might be populated:
- MasterTrackingNumber (if MPS)
- TrackingNumber for each package included in the shipment
- ShippingLabel for each package included in the shipment
- TotalSurcharges for each package included in the shipment
- TotalNetCharge (applicable to the whole shipment)
- TotalBaseCharge (applicable to the whole shipment)
- TotalSurcharges (applicable to the whole shipment)