Table of Contents

Attach Packaging Features to Orders

Kevin Updated by Kevin

Aside from assigning Packaging Features to specific products with the "Other Special Features" product attribute and the "Always/Never Apply to Goods Type" attribute of Packaging Features, Packaging Features can also be attached to individual orders with more custom or advanced logic.

Some examples of when you would want to attach a Packaging Feature to a specific order would be:

  • An Order shipping to a remote location needs extra padding for safer Product arrival
  • Certain orders need a special promotional flier added to them, but not all orders
  • Combinations of products require a Packaging Features but the individual products alone do not

Therefore, Packaging Features may be attached to an order using the "Other Shipping Options" field in the ways described below.

Admin or Client UI

During Order creation you can add properly formatted JSON to the Other Shipping Options form field.

API order.create

You can attach Packaging Features to an order using the order.create or order.edit API endpoints using the other_shipping_options field.

Scripts

Before Create Order scripts can set the order.options.other_shipping_options object property.

JSON Format

Whether set through the UI or the API the "Other Shipping Options" field must contain a packaging key which has details about which Packaging Features to apply to the order. Either the sku or product_id may be used to specify the Packaging Features you wish to attach.

If an items key is specified it is an array of SKUs to which the Packaging Feature will be applied.

  • A Packaging Feature with One Scan Per: "Order" or "Package" must not have an items key
  • A Packaging Feature with One Scan Per: "Item" or "Each" must have an items key

The example JSON text below is specifying three different Packaging Features in the same order:

  • a Packaging Feature referenced by its product_id — this Packaging Feature is either a one scan per Order or Package
  • a Packaging Feature referenced by its SKU — this Packaging Feature is also either a one scan per Order or Package
  • a Packaging Feature by its SKU that is attached to specific Order Items — this Packaging Feature is either a one scan per Item or Each
{  
"packaging": [
{ "product_id": 62},
{ "sku": "TapeLid"},
{ "sku": "BubbleWrap", "items": ["34-737-8757", "29-329-5002"]}
]
}

How did we do?

Packaging Features

Containers

Contact