GetPackageLabel Method
Generates a shipping label for the specified package.
Syntax
public void getPackageLabel(int index);
Remarks
When this method is called, the following properties must have been set:
- Server (required)
- DeveloperKey (required)
- Password (required)
- AccountNumber (required)
- MeterNumber (required)
- ShipDate (required)
- ShipTime (optional)
- ServiceType (required)
- PackagingType (required)
- DropoffType (optional)
- TotalWeight (optional; applicable to international shipments only)
- WeightUnit (required; defaults to LB)
- SizeUnit (required; defaults to IN)
- InsuredValue (optional)
- SenderContact (required)
- SenderAddress (required)
- RecipientContact (required)
- RecipientAddress (required)
- Payor (required)
- ShipmentSpecialServices (optional)
- Packages (required)
- LabelImageType (required)
- DeliveryInstructions (optional; applicable to Home Delivery and Freight services only)
- BlockVisibility (optional)
When shipping via FedEx Ground then the PackagingType should be set to ptYourPackaging.
This method fills in the following fields:
- TrackingNumber for each package included in the shipment;
- ShippingLabel for each package included in the shipment;
- NetCharge for each package included in the shipment;
- BaseCharge for each package included in the shipment;
- TotalDiscount for each package included in the shipment;
- TotalSurcharges for each package included in the shipment;
- DeliveryDate (applicable to the whole shipment);
- TotalNetCharge (applicable to the whole shipment);