Step 4: Import Packaging Links

Packaging hierarchies (e.g., Cases containing Eaches) are managed using the reserved attribute PACKAGING, the child product __ID target, the metadata field QUANTITY.

  • **Logic: **The packaging array is included on the parent record and references the child product ID.
  • **Updates: **The content of the PACKAGING array will overwrite any existing links in PDX. Sending an empty array will delete all links.

Example Packaging Payload:

{
  "products": [
    {
      "__ID": "CASE-555",
      "__NAME": "Blue Widget Case (10ct)",
      "PACKAGING": [
        {
          "target": "EACH-111",
          "metadata": {
            "QUANTITY": "10"
          }
        }
      ]
    }
  ]
}