PackageLength Property
The length of the package to be shipped.
Object Oriented Interface
public function getPackageLength($packageidx); public function setPackageLength($packageidx, $value);
Procedural Interface
inship_canadapostrates_get($res, 15 , $packageidx); inship_canadapostrates_set($res, 15, $value , $packageidx);
Default Value
0
Remarks
The length of the package to be shipped.
For FedEx, the PackageLength is optional, but recommended, if "Your Packaging" is used as PackagePackagingType. This is required if PackageWidth and PackageHeight are provided in the request. It is also required if a FedEx Express heavyweight service is selected for the shipment.
For UPS, this is the width of the package used to determine dimensional weight and therefore is recommended for all shipments. Length must be the longest dimension of the container.
It is required for GB to GB, and Poland to Poland shipments, and for 'Pallete' packaging type. For UPS packaging types: the length, width and height are defaulted.
Length + 2*(Width+Height) must be less than or equal to 130 IN or 330 CM. When PackageWidth is provided in the request, then all other dimensions (PackageLength and PackageHeight) are to be set as well.
Valid values are 0 to 108 IN and 0 to 270 CM.
For USPS, this is only required if the package is irregular and the PackagePackagingType property is set to ptNonRectangular. (In this case PackageWidth and PackageHeight must still be set).
Note: For parcels, the PackageLength is the measurement of the longest dimension and PackageWidth and PackageHeight make up the other two dimensions. PackageGirth is the measurement around the thickest part of the package, perpendicular to the length.
Except for Parcel Post, no mailpiece may measure more than 108 inches in length and girth combined. Parcel Post pieces measuring over 108 inches, but not more than 130 inches in combined length and girth are mailable at the applicable oversized rate.
Note that the PackageLength, PackageWidth, and PackageHeight are required for Priority Mail packages when the PackageSize is set to psLarge.
Note also that this applies to Endicia shipping label requests.
For Canada Post, this property should be set to the longest dimension (3.1 digits e.g. 999.9 pattern).
The size of the array is controlled by the PackageCount property.
This property is not available at design time.
Data Type
Integer