Get one packing unit

get

/fscmRestApi/resources/11.13.18.05/packingUnits/{PackingUnitId}

Request

Path Parameters
Query Parameters
  • This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2

    Format: <attr1>=<val1>,<attr2>=<value2>
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : packingUnits-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource manages the attachments associated with the packing unit resource.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
The Contents resource manages the operations on packing unit contents.
Show Source
Nested Schema : Item Content Counts
Type: array
Title: Item Content Counts
List of items stored within the LPN in a warehouse.
Show Source
Nested Schema : Nested Packing Units
Type: array
Title: Nested Packing Units
The Nested Packing Units resources manages the operations on nested packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource gets comments, information, or instructions for packing units.
Show Source
Nested Schema : Flexfields for Packing Units
Type: array
Title: Flexfields for Packing Units
The Flexfields for Packing Units resource manages the descriptive flexfields for packing units.
Show Source
Nested Schema : Packing Unit Items
Type: array
Title: Packing Unit Items
Detailed breakdown of items stored within an LPN.
Show Source
Nested Schema : Packing Unit Quantities
Type: array
Title: Packing Unit Quantities
Quantities of items stored within an LPN.
Show Source
Nested Schema : Packing Unit Serials
Type: array
Title: Packing Unit Serials
Alphanumeric identifier assigned to an individual unit of an item in the packing unit.
Show Source
Nested Schema : packingUnits-attachments-item-response
Type: object
Show Source
Nested Schema : packingUnits-contents-item-response
Type: object
Show Source
Nested Schema : Content Inventory Attributes
Type: array
Title: Content Inventory Attributes
Set of named attributes (project, task, and country of origin) and user-configurable attributes used to track the inventory on hand.
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages the operations on serials.
Show Source
Nested Schema : packingUnits-contents-contentInventoryAttributes-item-response
Type: object
Show Source
Nested Schema : packingUnits-contents-serials-item-response
Type: object
Show Source
Nested Schema : packingUnits-itemContentCounts-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource manages the attachments associated with the packing unit resource.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
The Contents resource manages the operations on packing unit contents.
Show Source
Nested Schema : Nested Packing Units
Type: array
Title: Nested Packing Units
The Nested Packing Units resources manages the operations on nested packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource gets comments, information, or instructions for packing units.
Show Source
Nested Schema : Flexfields for Packing Units
Type: array
Title: Flexfields for Packing Units
The Flexfields for Packing Units resource manages the descriptive flexfields for packing units.
Show Source
Nested Schema : packingUnits-nestedPackingUnits-attachments-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-item-response
Type: object
Show Source
Nested Schema : Content Inventory Attributes
Type: array
Title: Content Inventory Attributes
Set of named attributes (project, task, and country of origin) and user-configurable attributes used to track the inventory on hand.
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages the operations on serials.
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-contentInventoryAttributes-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-serials-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-nestedPackingUnits-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-notes-item-response
Type: object
Show Source
  • Title: Contact Relationship ID
    Value that uniquely identifies the relationship. This attribute isn't currently used by the packingUnits resource.
  • Title: Corporate Currency Code
    Maximum Length: 15
    Abbreviation that identifies the corporate currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    User who created the note.
  • Title: Creation Date
    Read Only: true
    Date when the user created the note record.
  • Title: Creator Party ID
    Value that uniquely identifies the creator of the note.
  • Title: Currency Conversion Rate Type
    Maximum Length: 30
    Type of currency conversion rate. This attribute isn't currently used by the packingUnits resource.
  • Title: Currency
    Maximum Length: 15
    Abbreviation that identifies the currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Delete Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be deleted. If false, then the note can be deleted. The default value is true.
  • Read Only: true
    Maximum Length: 320
    The email address of the user who created the note.
  • Read Only: true
    The address of the user who created the note.
  • Read Only: true
    The phone number of the user who created the note.
  • Title: Last Update Date
    Read Only: true
    Date when the user most recently updated the note data.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    User who most recently updated the note record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    Login of the user who most recently updated the note record.
  • Links
  • Title: Note ID
    Read Only: true
    Value that uniquely identifies the note.
  • Maximum Length: 30
    The alternate unique identifier of the note. A user key that's system generated or from an external system.
  • Title: Title
    Maximum Length: 500
    The title of the note entered by the user.
  • Title: Note
    Text of the actual note.
  • Title: Type
    Maximum Length: 30
    Abbreviation that identifies the categorization of the note type.
  • Title: Parent Note ID
    Value that uniquely identifies the parent note.
  • Read Only: true
    Value that uniquely identifies the party to which the note is associated.
  • Title: Author
    Read Only: true
    Maximum Length: 360
    Name of the user who created the record.
  • Title: Related Object Type
    Maximum Length: 30
    Abbreviation that identifies the object as defined in the OBJECTS metadata which is associated with the note. The object identifier is SHIPPING_LPN for packing units.
  • Title: Related Object
    Maximum Length: 64
    Value that uniquely identifies the packing unit.
  • Title: Source System
    Maximum Length: 30
    This is the source object code for the source object as defined in OBJECTS Metadata.
  • Title: Update Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be updated. If false, then the note can't be updated. The default value is true.
  • Title: Private
    Maximum Length: 30
    Default Value: INTERNAL
    Abbreviation that identifies the visibility level of the note.
Nested Schema : packingUnits-nestedPackingUnits-packingUnitDFFs-item-response
Type: object
Show Source
Nested Schema : packingUnits-notes-item-response
Type: object
Show Source
  • Title: Contact Relationship ID
    Value that uniquely identifies the relationship. This attribute isn't currently used by the packingUnits resource.
  • Title: Corporate Currency Code
    Maximum Length: 15
    Abbreviation that identifies the corporate currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    User who created the note.
  • Title: Creation Date
    Read Only: true
    Date when the user created the note record.
  • Title: Creator Party ID
    Value that uniquely identifies the creator of the note.
  • Title: Currency Conversion Rate Type
    Maximum Length: 30
    Type of currency conversion rate. This attribute isn't currently used by the packingUnits resource.
  • Title: Currency
    Maximum Length: 15
    Abbreviation that identifies the currency. This attribute isn't currently used by the packingUnits resource.
  • Title: Delete Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be deleted. If false, then the note can be deleted. The default value is true.
  • Read Only: true
    Maximum Length: 320
    The email address of the user who created the note.
  • Read Only: true
    The address of the user who created the note.
  • Read Only: true
    The phone number of the user who created the note.
  • Title: Last Update Date
    Read Only: true
    Date when the user most recently updated the note data.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    User who most recently updated the note record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    Login of the user who most recently updated the note record.
  • Links
  • Title: Note ID
    Read Only: true
    Value that uniquely identifies the note.
  • Maximum Length: 30
    The alternate unique identifier of the note. A user key that's system generated or from an external system.
  • Title: Title
    Maximum Length: 500
    The title of the note entered by the user.
  • Title: Note
    Text of the actual note.
  • Title: Type
    Maximum Length: 30
    Abbreviation that identifies the categorization of the note type.
  • Title: Parent Note ID
    Value that uniquely identifies the parent note.
  • Read Only: true
    Value that uniquely identifies the party to which the note is associated.
  • Title: Author
    Read Only: true
    Maximum Length: 360
    Name of the user who created the record.
  • Title: Related Object Type
    Maximum Length: 30
    Abbreviation that identifies the object as defined in the OBJECTS metadata which is associated with the note. The object identifier is SHIPPING_LPN for packing units.
  • Title: Related Object
    Maximum Length: 64
    Value that uniquely identifies the packing unit.
  • Title: Source System
    Maximum Length: 30
    This is the source object code for the source object as defined in OBJECTS Metadata.
  • Title: Update Indicator
    Read Only: true
    Contains one of the following values: true or false. If true, then the note can be updated. If false, then the note can't be updated. The default value is true.
  • Title: Private
    Maximum Length: 30
    Default Value: INTERNAL
    Abbreviation that identifies the visibility level of the note.
Nested Schema : packingUnits-packingUnitDFFs-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitItems-item-response
Type: object
Show Source
  • Read Only: true
    Quantity available for transaction in the packing unit.
  • Read Only: true
    Number of distinct countries of origin associated with items in the LPN.
  • Read Only: true
    Value that uniquely identifies the item.
  • Read Only: true
    Maximum Length: 240
    Description of the content item.
  • Read Only: true
    Maximum Length: 4000
    Value that provides a reference to the item's image.
  • Read Only: true
    Maximum Length: 300
    Number or name that identifies the item.
  • Links
  • Read Only: true
    Value that uniquely identifies the item locator for the packing unit.
  • Read Only: true
    Maximum Length: 2000
    Name of the locator.
  • Read Only: true
    Value that identifies whether the item is lot-controlled. A list of accepted values is defined in the lookup type EGP_LOT_CONTROL_CODE_TYPE.
  • Read Only: true
    Value that uniquely identifies the license plate number.
  • Read Only: true
    Value that uniquely identifies the organization.
  • Read Only: true
    Maximum Length: 9
    Type of owner of the financial liability for consigned inventory. Contains one of the following values: Supplier site: The owning party is the supplier site Inventory organization: The owning party is the inventory organization.
  • LPN Lots
    Title: LPN Lots
    List of lots of an item in the LPN.
  • Read Only: true
    Maximum Length: 3
    Abbreviation that identifies the primary unit of measure of the item.
  • Read Only: true
    Maximum Length: 25
    Name of the primary unit of measure of the item.
  • Read Only: true
    Number of distinct projects associated with items in the LPN.
  • Read Only: true
    Abbreviation that identifies the revision control of the item.
  • Read Only: true
    Maximum Length: 30
    Value that indicates how the conversion between primary and secondary units of measure is handled. Valid values are Default, Fixed, and No Default. The value of Defaulting Control depends on the value of the Tracking Unit of Measure attribute. If the Tracking Unit of Measure is Primary and Secondary, then the Defaulting Control can be provided. Otherwise, the Defaulting Control can't be provided. A list of accepted values is defined in the lookup type EGP_DEFAULTING. Review the value for this attribute in the Setup and Maintenance work area, and the Manage Standard Lookups task. The default value is Fixed.
  • Read Only: true
    Maximum Length: 3
    Abbreviation that identifies the secondary unit of measure of the item.
  • Read Only: true
    Maximum Length: 25
    Name of the secondary unit of measure of the item.
  • Read Only: true
    Value that identifies if the item is serial-controlled. A list of accepted values is defined in the lookup type EGP_SERIAL_NUMBER_CONTROL_TYPE.
  • Read Only: true
    Maximum Length: 10
    Name of the subinventory.
  • Read Only: true
    Total quantity of the item.
  • Read Only: true
    Total quantity of the item in secondary unit of measure of the item.
  • Read Only: true
    Maximum Length: 30
    Unit of measure of the item.
Nested Schema : LPN Lots
Type: array
Title: LPN Lots
List of lots of an item in the LPN.
Show Source
Nested Schema : packingUnits-packingUnitItems-packingUnitItemLots-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitQuantities-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitSerials-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to get one packing unit.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password "https://servername/fscmRestApi/resources/version/packingUnits/PackingUnitId"

Example 1 cURL Command

For example, the following command gets one packing unit where packing unit identifier is 5101:

curl -u username:password "https://servername/fscmRestApi/resources/version//packingUnits?q=PackingUnitId=5101&onlyData=true"

Example 1 Response Body

The following shows an example of the response body in JSON format.

{
  "items" : [ {
    "PackingUnitId" : 5101,
    "PackingUnit" : "5061",
    "ParentPackingUnitId" : null,
    "ParentPackingUnit" : null,
    "OutermostPackingUnitId" : 5101,
    "OutermostPackingUnit" : "5061",
    "PackingUnitContextMeaning" : "Shipped",
    "PackingUnitContext" : "14",
    "OrganizationCode" : "V1",
    "OrganizationId" : 204,
    "ContainerItemNumber" : "WSH-Container1",
    "ContainerItemId" : 100000012320400,
    "GrossWeight" : 91,
    "GrossWeightUOMCode" : "Lbs",
    "GrossWeightUOMName" : "Pounds",
    "TareWeight" : 1,
    "TareWeightUOMCode" : "Lbs",
    "TareWeightUOMName" : "Pounds",
    "NetWeight" : 90,
    "NetWeightUOMCode" : "Lbs",
    "NetWeightUOMName" : "Pounds",
    "ContainerVolume" : 10,
    "ContainerVolumeUOM" : "FT3",
    "ContainerVolumeUOMName" : "Cubic foot",
    "ContentVolume" : 5.82,
    "ContentVolumeUOMCode" : "FT3",
    "ContentVolumeUOMName" : "Cubic foot",
    "SourceName" : "WSH",
    "SealCode" : null,
    "TrackingNumber" : null,
    "AllowAutoGeneration" : null
  } ],
  "count" : 1,
  "hasMore" : false,
  "limit" : 25,
  "offset" : 0,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/packingUnits",
    "name" : "packingUnits",
    "kind" : "collection"
  } ]
}

Example 2 cURL Command

For example, the following command gets one packing unit where the outermost packing unit identifier is 5101:

curl -u username:password "https://servername/fscmRestApi/resources/version/packingUnits?q=OutermostPackingUnitId=5101&onlyData=true"

Example 2 Response Body

The following shows an example of the response body in JSON format.

{
  "items" : [ {
    "PackingUnitId" : 5101,
    "PackingUnit" : "5061",
    "ParentPackingUnitId" : null,
    "ParentPackingUnit" : null,
    "OutermostPackingUnitId" : 5101,
    "OutermostPackingUnit" : "5061",
    "PackingUnitContextMeaning" : "Shipped",
    "PackingUnitContext" : "14",
    "OrganizationCode" : "V1",
    "OrganizationId" : 204,
    "ContainerItemNumber" : "WSH-Container1",
    "ContainerItemId" : 100000012320400,
    "GrossWeight" : 91,
    "GrossWeightUOMCode" : "Lbs",
    "GrossWeightUOMName" : "Pounds",
    "TareWeight" : 1,
    "TareWeightUOMCode" : "Lbs",
    "TareWeightUOMName" : "Pounds",
    "NetWeight" : 90,
    "NetWeightUOMCode" : "Lbs",
    "NetWeightUOMName" : "Pounds",
    "ContainerVolume" : 10,
    "ContainerVolumeUOM" : "FT3",
    "ContainerVolumeUOMName" : "Cubic foot",
    "ContentVolume" : 5.82,
    "ContentVolumeUOMCode" : "FT3",
    "ContentVolumeUOMName" : "Cubic foot",
    "SourceName" : "WSH",
    "SealCode" : null,
    "TrackingNumber" : null,
    "AllowAutoGeneration" : null
  } ],
  "count" : 1,
  "hasMore" : false,
  "limit" : 25,
  "offset" : 0,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/packingUnits",
    "name" : "packingUnits",
    "kind" : "collection"
  } ]
}

Example 3 cURL Command

For example, the following command gets one packing unit where the packing unit is LPTST1:

curl -u username:password "https://servername/fscmRestApi/resources/version/packingUnits?onlyData=true&q=PackingUnit=LPTST1"

Example 3 Response Body

The following shows an example of the response body in JSON format.

{    "items": [
        {
            "PackingUnitId": 8353,
            "PackingUnit": "LPTST1",
            "ParentPackingUnitId": null,
            "ParentPackingUnit": null,
            "OutermostPackingUnitId": 8353,
            "OutermostPackingUnit": "LPTST1",
            "PackingUnitContextMeaning": "Not applicable",
            "PackingUnitContext": "13",
            "OrganizationCode": "M1",
            "OrganizationId": 207,
            "ContainerItemNumber": "Pallet",
            "ContainerItemId": 4558,
            "GrossWeight": 150,
            "GrossWeightUOMCode": "Lbs",
            "GrossWeightUOMName": "Pounds",
            "TareWeight": null,
            "TareWeightUOMCode": null,
            "TareWeightUOMName": null,
            "NetWeight": 150,
            "NetWeightUOMCode": "Lbs",
            "NetWeightUOMName": "Pounds",
            "ContainerVolume": null,
            "ContainerVolumeUOM": null,
            "ContainerVolumeUOMName": null,
            "ContentVolume": 9.7,
            "ContentVolumeUOMCode": "FT3",
            "ContentVolumeUOMName": "Cubic foot",
            "SourceName": "WSH",
            "SealCode": null,
            "TrackingNumber": null,
            "AllowAutoGeneration": null
        }
    ],
    "count": 1,
    "hasMore": false,
    "limit": 25,
    "offset": 0,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/packingUnits",
            "name": "packingUnits",
            "kind": "collection"
        }
    ]
}

Example 4 cURL Command

For example, the following command gets one packing unit where the packing unit is 5061:

curl -u username:password "https://servername/fscmRestApi/resources/version/packingUnits?onlyData=true&q=PackingUnit=5061&expand=contents"

Example 4 Response Body

The following shows an example of the response body in JSON format.

{
  "items" : [ {
    "PackingUnitId" : 5101,
    "PackingUnit" : "5061",
    "ParentPackingUnitId" : null,
    "ParentPackingUnit" : null,
    "OutermostPackingUnitId" : 5101,
    "OutermostPackingUnit" : "5061",
    "PackingUnitContextMeaning" : "Shipped",
    "PackingUnitContext" : "14",
    "OrganizationCode" : "V1",
    "OrganizationId" : 204,
    "ContainerItemNumber" : "WSH-Container1",
    "ContainerItemId" : 100000012320400,
    "GrossWeight" : 91,
    "GrossWeightUOMCode" : "Lbs",
    "GrossWeightUOMName" : "Pounds",
    "TareWeight" : 1,
    "TareWeightUOMCode" : "Lbs",
    "TareWeightUOMName" : "Pounds",
    "NetWeight" : 90,
    "NetWeightUOMCode" : "Lbs",
    "NetWeightUOMName" : "Pounds",
    "ContainerVolume" : 10,
    "ContainerVolumeUOM" : "FT3",
    "ContainerVolumeUOMName" : "Cubic foot",
    "ContentVolume" : 5.82,
    "ContentVolumeUOMCode" : "FT3",
    "ContentVolumeUOMName" : "Cubic foot",
    "SourceName" : "WSH",
    "SealCode" : null,
    "TrackingNumber" : null,
    "AllowAutoGeneration" : null,
    "contents" : [ {
      "PackingUnitContentId" : 5061,
      "OrganizationId" : 204,
      "OrganizationCode" : "V1",
      "InventoryItemId" : 149,
      "ItemNumber" : "AS54888",
      "ItemDescription" : null,
      "Revision" : null,
      "LotNumber" : null,
      "Quantity" : 3,
      "UOMCode" : "Ea",
      "UOMName" : "Each"
    } ]
  } ],
  "count" : 1,
  "hasMore" : false,
  "limit" : 25,
  "offset" : 0,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/packingUnits",
    "name" : "packingUnits",
    "kind" : "collection"
  } ]
}

Example 5 cURL Command

For example, the following command gets one packing unit where the packing unit is LPN24_01 with all levels expanded:

curl -u username:password "https://servername/fscmRestApi/resources/version/packingUnits?onlyData=true&q=PackingUnit=LPN24_01&onlyData=true&expand=contents,packingUnitDFFs,nestedPackingUnits,contents.serials,nestedPackingUnits.contents,nestedPackingUnits.nestedPackingUnits"

Example 5 Response Body

The following shows an example of the response body in JSON format.

{
 "items": [
 {
 "PackingUnitId": 40354,
 "PackingUnit": "LPN24_01",
 "ParentPackingUnitId": null,
 "ParentPackingUnit": null,
 "OutermostPackingUnitId": 40354,
 "OutermostPackingUnit": "LPN24_01",
 "PackingUnitContext": "14",
 "PackingUnitContextMeaning": "Shipped",
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "ContainerItemId": null,
 "ContainerItemNumber": null,
 "GrossWeight": 40,
 "GrossWeightUOMCode": "Lbs",
 "GrossWeightUOMName": "Pounds",
 "TareWeight": null,
 "TareWeightUOMCode": null,
 "TareWeightUOMName": null,
 "NetWeight": null,
 "NetWeightUOMCode": null,
 "NetWeightUOMName": null, 
 "ContainerVolume": null,
 "ContainerVolumeUOM": null,
 "ContainerVolumeUOMName": null,
 "ContentVolume": 4,
 "ContentVolumeUOMCode": "FT3",
 "ContentVolumeUOMName": "Cubic foot",
 "SourceName":"WSH",
 "SealCode": null,
 "TrackingNumber": null,
 "AllowAutoGeneration": null,
 "nestedPackingUnits": [
 {
 "PackingUnitId": 40353,
 "PackingUnit": "LPN24_03",
 "ParentPackingUnitId": 40354,
 "ParentPackingUnit": "LPN24_01",
 "OutermostPackingUnitId": 40354,
 "OutermostPackingUnit": "LPN24_01",
 "PackingUnitContext": "14",
 "PackingUnitContextMeaning": "Shipped",
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "ContainerItemId": null,
 "ContainerItemNumber": null,
 "GrossWeight": 10,
 "GrossWeightUOMCode": "Lbs",
 "GrossWeightUOMName": "Pounds",
 "TareWeight": null,
 "TareWeightUOMCode": null,
 "TareWeightUOMName": null,
 "NetWeight": null,
 "NetWeightUOMCode": null,
 "NetWeightUOMName": null, 
 "ContainerVolume": null,
 "ContainerVolumeUOM": null,
 "ContainerVolumeUOMName": null,
 "ContentVolume": 1,
 "ContentVolumeUOMCode": "FT3",
 "ContentVolumeUOMName": "Cubic foot",
 "SourceName": "WSH",
 "SealCode": null,
 "TrackingNumber": null, 
 "AllowAutoGeneration": null,
 "nestedPackingUnits": [],
 "contents": [
 {
 "PackingUnitContentId": 40313,
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "InventoryItemId": 663838,
 "ItemNumber": "CYC01-100",
 "ItemDescription": "Plain Item",
 "Revision": null,
 "LotNumber": null,
 "Quantity": 1,
 "UOMCode": "Ea",
 "UOMName": "Each"
 }
 ]
 },
 {
 "PackingUnitId": 40355,
 "PackingUnit": "LPN24_02",
 "ParentPackingUnitId": 40354,
 "ParentPackingUnit": "LPN24_01",
 "OutermostPackingUnitId": 40354,
 "OutermostPackingUnit": "LPN24_01",
 "PackingUnitContext": "14",
 "PackingUnitContextMeaning": "Shipped",
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "ContainerItemId": null,
 "ContainerItemNumber": null,
 "GrossWeight": 10,
 "GrossWeightUOMCode": "Lbs",
 "GrossWeightUOMName": "Pounds",
 "TareWeight": null,
 "TareWeightUOMCode": null,
 "TareWeightUOMName": null,
 "ContentVolume": 1,
 "ContentVolumeUOMCode": "FT3",
 "ContentVolumeUOMName": "Cubic foot",
 "ContainerVolume": null,
 "ContainerVolumeUOM": null,
 "ContainerVolumeUOMName": null,
 "NetWeight": null,
 "NetWeightUOMCode": null,
 "NetWeightUOMName": null,
 "SourceName": "WSH",
 "SealCode": null,
 "TrackingNumber": null,
 "AllowAutoGeneration":null,
 "nestedPackingUnits": [],
 "contents": [
 {
 "PackingUnitContentId": 40315,
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "InventoryItemId": 663908,
 "ItemNumber": "RCV-101",
 "ItemDescription": "Lot Item",
 "Revision": null,
 "LotNumber": "Lot01",
 "Quantity": 1,
 "UOMCode": "Ea",
 "UOMName": "Each"
 }
 ]
 },
 {
 "PackingUnitId": 40358,
 "PackingUnit": "LPN24_04",
 "ParentPackingUnitId": 40354,
 "ParentPackingUnit": "LPN24_01",
 "OutermostPackingUnitId": 40354,
 "OutermostPackingUnit": "LPN24_01",
 "PackingUnitContext": "14",
 "PackingUnitContextMeaning": "Shipped",
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "ContainerItemId": null,
 "ContainerItemNumber": null,
 "Revision": null,
 "LotNumber": null,
 "SerialNumber": null,
 "GrossWeight": 10,
 "GrossWeightUOMCode": "Lbs",
 "GrossWeightUOMName": "Pounds",
 "TareWeight": null,
 "TareWeightUOMCode": null,
 "TareWeightUOMName": null,
 "ContentVolume": 1,
 "ContentVolumeUOMCode": "FT3",
 "ContentVolumeUOMName": "Cubic foot",
 "ContainerVolume": null,
 "ContainerVolumeUOM": null,
 "ContainerVolumeUOMName": null,
 "NetWeight": null,
 "NetWeightUOMCode": null,
 "NetWeightUOMName": null,
 "SourceName": "WSH",
 "SealCode": null,
 "TrackingNumber": null,
 "AllowAutoGeneration": null,
 "nestedPackingUnits": [
 {
 "PackingUnitId": 40357,
 "PackingUnit": "LPN24_05",
 "ParentPackingUnitId": 40358,
 "ParentPackingUnit": "LPN24_04",
 "OutermostPackingUnitId": 40354,
 "OutermostPackingUnit": "LPN24_01",
 "PackingUnitContext": "14",
 "PackingUnitContextMeaning": "Shipped",
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "ContainerItemId": null,
 "ContainerItemNumber": null,
 "GrossWeight": 10,
 "GrossWeightUOMCode": "Lbs",
 "GrossWeightUOMName": "Pounds",
 "TareWeight": null,
 "TareWeightUOMCode": null,
 "TareWeightUOMName": null,
 "ContentVolume": 1,
 "ContentVolumeUOMCode": "FT3",
 "ContentVolumeUOMName": "Cubic foot",
 "ContainerVolume": null,
 "ContainerVolumeUOM": null,
 "ContainerVolumeUOMName": null,
 "NetWeight": null,
 "NetWeightUOMCode": null,
 "NetWeightUOMName": null,
 "SourceName": "WSH",
 "SealCode": null,
 "TrackingNumber": null,
 "AllowAutoGeneration": null,
 }
 ],
 "contents": []
 }
 ],
 "contents": [
 {
 "PackingUnitContentId": 40314,
 "OrganizationId": 207,
 "OrganizationCode": "M1",
 "InventoryItemId": 663909,
 "ItemNumber": "RCV-102",
 "ItemDescription": "Serial @ Receipt Item",
 "Revision": null,
 "LotNumber": null,
 "Quantity": 1,
 "UOMCode": "Ea",
 "UOMName": "Each",
 "serials": [
 {
 "SerialNumber": "Test01_01",
 "CurrentStatus": "5",
 "CurrentStatusMeaning": "Resides in in-transit inventory"
 }
 ]
 }
 ],
 "descriptiveFlexFields": [
 {
 "__FLEX_Context": null
 }+A1:H42
 ]
 }
 ],
 "count": 1,
 "hasMore": false,
 "limit": 25,
 "offset": 0,
 "links": [
 {
 "rel": "self",
 "href": "http://slc04lwv.us.ora+A1:H6cle.com:7101/logisticsApi/resources/11.13.18.08/packingUnits",
 "name": "packingUnits",
 "kind": "collection"
 }
 ]
}

Example 6 cURL Command

For example, the following command gets one packing unit where the packing unit is 5061 with DFF level expanded:

curl -u username:password "https://servername/fscmRestApi/resources/version//packingUnits?q=PackingUnit=5061&onlyData=true&expand=packingUnitDFFs"

Example 6 Response Body

The following shows an example of the response body in JSON format.

{
  "items" : [ {
    "PackingUnitId" : 5101,
    "PackingUnit" : "5061",
    "ParentPackingUnitId" : null,
    "ParentPackingUnit" : null,
    "OutermostPackingUnitId" : 5101,
    "OutermostPackingUnit" : "5061",
    "PackingUnitContextMeaning" : "Shipped",
    "PackingUnitContext" : "14",
    "OrganizationCode" : "V1",
    "OrganizationId" : 204,
    "ContainerItemNumber" : "WSH-Container1",
    "ContainerItemId" : 100000012320400,
    "GrossWeight" : 91,
    "GrossWeightUOMCode" : "Lbs",
    "GrossWeightUOMName" : "Pounds",
    "TareWeight" : 1,
    "TareWeightUOMCode" : "Lbs",
    "TareWeightUOMName" : "Pounds",
    "NetWeight" : 90,
    "NetWeightUOMCode" : "Lbs",
    "NetWeightUOMName" : "Pounds",
    "ContainerVolume" : 10,
    "ContainerVolumeUOM" : "FT3",
    "ContainerVolumeUOMName" : "Cubic foot",
    "ContentVolume" : 5.82,
    "ContentVolumeUOMCode" : "FT3",
    "ContentVolumeUOMName" : "Cubic foot",
    "SourceName" : "WSH",
    "SealCode" : null,
    "TrackingNumber" : null,
    "AllowAutoGeneration" : null,
    "packingUnitDFFs" : [ {
      "LPNId" : 5101,
      "__FLEX_Context" : null,
      "__FLEX_Context_DisplayValue" : null
    } ]
  } ],
  "count" : 1,
  "hasMore" : false,
  "limit" : 25,
  "offset" : 0,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/packingUnits",
    "name" : "packingUnits",
    "kind" : "collection"
  } ]
}

Example 7 cURL Command

For example, the following command gets one packing unit where the packing unit is 5061 with DFF and contents level expanded:

curl -u username:password "https://servername/fscmRestApi/resources/version//packingUnits?q=PackingUnit=5061&onlyData=true&expand=contents,packingUnitDFFs"

Example 7 Response Body

The following shows an example of the response body in JSON format.

{
  "items" : [ {
    "PackingUnitId" : 5101,
    "PackingUnit" : "5061",
    "ParentPackingUnitId" : null,
    "ParentPackingUnit" : null,
    "OutermostPackingUnitId" : 5101,
    "OutermostPackingUnit" : "5061",
    "PackingUnitContextMeaning" : "Shipped",
    "PackingUnitContext" : "14",
    "OrganizationCode" : "V1",
    "OrganizationId" : 204,
    "ContainerItemNumber" : "WSH-Container1",
    "ContainerItemId" : 100000012320400,
    "GrossWeight" : 91,
    "GrossWeightUOMCode" : "Lbs",
    "GrossWeightUOMName" : "Pounds",
    "TareWeight" : 1,
    "TareWeightUOMCode" : "Lbs",
    "TareWeightUOMName" : "Pounds",
    "NetWeight" : 90,
    "NetWeightUOMCode" : "Lbs",
    "NetWeightUOMName" : "Pounds",
    "ContainerVolume" : 10,
    "ContainerVolumeUOM" : "FT3",
    "ContainerVolumeUOMName" : "Cubic foot",
    "ContentVolume" : 5.82,
    "ContentVolumeUOMCode" : "FT3",
    "ContentVolumeUOMName" : "Cubic foot",
    "SourceName" : "WSH",
    "SealCode" : null,
    "TrackingNumber" : null,
    "AllowAutoGeneration" : null,
    "contents" : [ {
      "PackingUnitContentId" : 5061,
      "OrganizationId" : 204,
      "OrganizationCode" : "V1",
      "InventoryItemId" : 149,
      "ItemNumber" : "AS54888",
      "ItemDescription" : null,
      "Revision" : null,
      "LotNumber" : null,
      "Quantity" : 3,
      "UOMCode" : "Ea",
      "UOMName" : "Each"
    } ],
    "packingUnitDFFs" : [ {
      "LPNId" : 5101,
      "__FLEX_Context" : null,
      "__FLEX_Context_DisplayValue" : null
    } ]
  } ],
  "count" : 1,
  "hasMore" : false,
  "limit" : 25,
  "offset" : 0,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/packingUnits",
    "name" : "packingUnits",
    "kind" : "collection"
  } ]
}

Back to Top