Shipping Integrator V5 - Online Help
Shipping Integrator V5
Questions / Feedback?

CommodityQuantityUnit Property

Unit of measure used to express the Quantity of this commodity line item.

Syntax

 fedexfreightship.getCommodityQuantityUnit(index, [callback])
 fedexfreightship.setCommodityQuantityUnit(index,  commodityQuantityUnit, [callback])

Default Value

"EA"


Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getCommodityQuantityUnit([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setCommodityQuantityUnit([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Unit of measure used to express the CommodityQuantity of this commodity line item.

If the shipment contains non-documents item(s) (i.e., the Documents is set to False), the CommodityQuantityUnit is required to be entered for each commodity line item included in shipment. At least one commodity occurrence is required for international dutiable (non-documents) shipments.

Here is a list of possible values for FedEx:

Value Description
AR Carat
CG Centigram
CM Centimeters
CM3 Cubic Centimeters
CFT Cubic Feet
M3 Cubic Meters
DOZ Dozen
DPR Dozen Pair
EA Each
GAL Gallon
G Grams
GR Gross
KGM Kilogram
KG Kilograms
LFT Linear Foot
LNM Linear Meters
LYD Linear Yard
L Liter
LTR Liters
M Meters
MG Milligram
ML Milliliter
NO Number
OZ Ounces
PR Pair
PRS Pairs
PCS Pieces
LB Pound
CM2 Square centimeters
SFT Square feet
SQI Square inches
M2 Square meters
SYD Square yards
YD Yard

The size of the array is controlled by the CommodityCount property.

This property is not available at design time.

Data Type

String

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0