Package models used in rating and shipping API
* indicates field is required

1. PackageInfo
2. RateAndShipPackage
3. ShipPackage
4. Packaging
5. OMCustomsInfo
6. CustomsItem
7. OrderAncillaryDataItem
8. ShipLineItem
9. PackagingData
10. ShipPackageExternalData
11. ProductPacking


1. PackageInfo: (Rate)
TotalWeight*  decimal
ContentWeight decimal
WeightUnit string
WeightType  int32 - Enum: [ Default = 0, PackagingWeightAdded = 1, ProductPackagingMapping = 2, ManuallyChanged = 3, ScaleWeight = 4 ] 
Value decimal
Packaging object - Packaging model (view below)
Rates array[object] - CarrierRate model
ServiceFlags array[string] - an array of zero or more of any of the following: BPM (Bound Printed Matter),  MM (Media Mail),  MP (Marketing Parcel)
Items array[object]  - OrderAncillaryDataItem model (view below)
Customs object - OMCustomsInfo model (view below)
ResolveDangerousGoodsCode string

2. RateAndShipPackage: (RateAndShip)
PackageId* string 
WeightUnit string
ContentWeight decimal
TotalWeight* decimal
Packaging object - Packaging model (view below)
Value decimal
ServiceFlags array[string] - an array of zero or more of any of the following: BPM (Bound Printed Matter),  MM (Media Mail),  MP (Marketing Parcel)
Customs object - OMCustomsInfo model (view below)
Items* array[object] - ShipLineItem model
Reference1 string
Reference2 string
Reference3 string
ResolveDangerousGoodsCode string - ( Default value: null)

3. ShipPackage: (Ship)
PackageId* string
Weight* decimal 
Value decimal
SelectedRate object - CarrierRate model
Customs object - OMCustomsInfo model (view below)
Items* array[object]  - ShipLineItem model
ShipExternal object - ShipPackageExternalData model
Reference1 string
Reference2 string
Reference3 string
CustomMarketReference string

4. Packaging:
Id int64 
BoxID string
ClientID long
Description string
Height double
Length double
Width double
Weight double - Refers to the weight of the box/packaging ONLY, and not the weight of the entire package. 
Cost decimal
Barcode string
DryIceWeightWhenRequired decimal
MailPieceValue string
PitneyBowesMailPieceValue string
IsSystemBox boolean
Carrier string

5. OMCustomsInfo:
ContentsDescription string
OriginCountry string
Signer string
CustomsTag string
CustomsTagOtherDesc string
Items array[object]

6. CustomsItem: (Customs)
ProductRecId int64?
ItemMarketProductKey string
Sku string
ProductSku string
Description string
Qty int32
Value decimal
Weight decimal
CountryOfMfg string
HarmCode string

7. OrderAncillaryDataItem: (Order)
RecId int64 
ID int64
ProductRecId int64?
OrderRootId int64 
OrderID int64 
MarketItemId int64 
MarketProductKey string
MarketListingKey string
MarketOrderItemKey string
MarketSku string
MarketTitle string
OrderedQty int32
ShippedQty int32
UnitPrice decimal
UnitTaxPrice decimal
UnitShippingPrice decimal
UnitShippingTaxPrice decimal
GiftPrice decimal
GiftMsg string
GiftNotes string
Weight decimal
Cost decimal
OriginCountry string
HarmCode string
PackSeparately boolean - ( Default value: false)
CustomsDescription string
CustomsDeclaredValue decimal
UPC string
DangerousGoodsCode string
RequiresDryIce boolean
IsMedia boolean
IsLetter boolean
IsOversize boolean
IsBPM boolean 
IsPerishable boolean
MaxTransitDaysAllowed int32?
Length decimal
Width decimal
Height decimal
ProductSku string
PrimaryImageURL string
IsDropship boolean - ( Default value: false)
ProductIsDropship boolean - ( Default value: false)
WHLocation string
Brand string
Vendor string
Manufacturer string
ASIN string
UnitOfMeasure string - ( Default value: "EACH")
ParentItemRecId  int64?


8. ShipLineItem
QuantityToShip int32
MarketOrderItemKey string
Title string
QuantityOrdered int32
UnitPrice decimal?
UnitTaxPrice decimal?
UnitShippingPrice decimal?
UnitShippingTaxPrice decimal?
GiftMessage string
GiftNotes string
GiftPrice decimal?
WarehouseLocation string
Height double?
Length double?
Width double?
Weight double?
Sku string
Brand string
Manufacturer string
UPC string
ASIN string
HarmonizedCode string
CountryOfOrigin string
ProductImageURL string
Vendor string
DangerousGoodsCode string
CustomsDescription string
CustomsDeclaredValue decimal?
UnitOfMeasure string - (Default value: "EACH")
PackSeparateFlag boolean - (Default value: false)
ProductPacking array[object] - ProductPacking model (view below)


9. PackagingData
RecID int64
ClientId int64
BoxId int64
Length decimal
Width decimal
Height decimal
Weight double
Description string
MailPieceValue string
IsSystemBox boolean
DryIceWeightWhenRequired decimal
PitneyBowesMailPieceValue string

10. ShipPackageExternalData
ExternalSource string
TrackingNumber string
AlternateTrackingNumber string - ( Default value: null)
LabelFormat string
PackageLabelsB64 array[string]
LabelSizes array[string]

11.ProductPacking
BoxRecId int64
Sku string
Quantity int32
MappedShipmethod string
CartonWeight decimal
ResolvedCarrierCode string
ModifiedState int32 - enum {Delete = -1, Default = 0, Update = 1, New = 2}
Original object - ProductPacking model