Skip to content

Set metafields for customer shipment

Writes several metafield values on a Fulfil customer shipment in one step. It does the same as Set customer shipment metafield, but saves you a chain of steps when you have more than one value to write.

This action works with Fulfil only.

Inputs

  • Customer shipment ID (required): the Fulfil customer shipment to update. Take it from Get all customer shipments.
  • Metafields (required): a JSON array. Each entry has a field (the metafield ID from Get metafield) and a value.
[
  { "field": 42, "value": "Express" },
  { "field": 57, "value": "2026-07-30" }
]

Every metafield in the list must be one Packwork has loaded with Get metafield at least once. Choice metafields accept the option’s name, code or ID, the same as the single action.

What it returns

  • ID: the customer shipment ID

When it fails

  • The field isn’t a JSON array, the array is empty, or an entry misses field or value: “The metafields payload must be a valid JSON array of objects with a “field” and a “value”.”
  • One of the metafields isn’t loaded yet, or a choice value doesn’t match an option: the step fails with the same errors as Set customer shipment metafield.

Packwork checks every entry before it writes anything. One bad entry means none of the values are written, so you never end up with half an update.

Typical use

Copy a handful of order attributes, like gift wrap, delivery window and campaign code, onto the shipment in one step.