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

 fedexshipintl.getCommodityQuantityUnit(index, [callback])
 fedexshipintl.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.

For FedEx, 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

For UPS, this is required and applicable only to Invoice and Partial Invoice forms.

Here is a list of possible values for CommodityQuantityUnit:

Value Description
BA Barrel
BE Bundle
BG Bag
BH Bunch
BOX Box
BT Bolt
BU Butt
CI Canister
CM Centimeter
CON Container
CR Crate
CS Case
CT Carton
CY Cylinder
DOZ Dozen
EA Each
EN Envelope
FT Feet
KG Kilogram
KGS Kilograms
LB Pound
LBS Pounds
L Liter
M Meter
NMB Number
PA Packet
PAL Pallet
PC Piece
PCS Pieces
PF Proof Liters
PKG Package
PR Pair
PRS Pairs
RL Roll
SET Set
SME Square Meters
SYD Square Yards
TU Tube
YD Yard
OTH Other

This is not available for USPS.

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