Package Object
Package is a Child List of Ship Doc . Packages are used to assign ship doc items to certain boxes or pallets. Package is comprised of Package and an array of Package Items.
End Point
/package
GET, POST, DELETE
GET returns an Array of packages associated with a specific Ship Doc. Its only parameter is docNo.
DELETE's parameter is the Id of the Package.
Properties - Package
Property | Caption | Data Type | Required |
DocNo | No. | Int32 | True |
PackageNo | Package No | Int32 | False Read only, auto assigned. |
PackageCode | Code | String (50) | False |
TrackingNo | Tracking No. | String (50) | False |
Length | Length | Int32 | False |
Width | Width | Int32 | False |
Height | Height | Int32 | False |
Width | Width | Int32 | False |
PackageTypeRef | Package TypeRe | EntityRef | False |
Details | Items | Array of PackageItem | True |
CustomFields | Custom Fields | Array of CustomFieldData | False |
Properties - Package Item
Property | Caption | Data Type | Required | Read Only |
Id | Id | Int32 | False | False |
LineNo | Line No | Int16 | False | True |
ItemRef | Item | EntityRef | True | True |
LotOrSerialNo | Description | String (50) | True | False |
LineInstructions | Line Instructions | String (4000) | False | False |
SalesTaxCodeRef | Tax Code | EntityRef | False | False |
UomRef | UOM | EntityRef | False | False |
UomConversionRate | UOM Conversion Rate | Decimal | False | False |
Price | Price | Decimal | True | False |
Quantity | Quantity | Decimal | True | False |
StdCost | Std. Cost | Decimal | False | True |
StdPrice | Std. Price | Decimal | False | True |
Json Sample
{ "DocNo": 1000164, "PackageCode": "759023509", "TrackingNo": "32425352525", "Length": 1.5, "Details": [ { "ItemRef": { "Id": 1020 }, "LineNo": 1, "LotOrSerialNo": "", "Quantity": 1 }, { "ItemRef": { "Id": 1021 }, "LineNo": 2, "LotOrSerialNo": "5092347096729-0", "Quantity": 1 } ] }