OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Order → Create Shipment

AI-generated

Summary

Create a shipment record for an OnPrintShop order by sending its order ID, optional shipment ID and tracking number, and package details. Leave the shipment ID at 0 to create a new shipment; package tracking numbers override the overall tracking number for their packages.

Inputs

  • Order ID (required) — ID of the order to attach the shipment to.
  • Shipment ID — Optional shipment ID; 0 is sent when creating a new shipment.
  • Tracking Number — Overall tracking number, used as the default for packages without their own tracking number.
  • Packages — Add multiple packages with weight, length, width, and height. For each package, optionally provide a package tracking number and order products, each with an order product ID and quantity. The node sends these as package information; if no packages are added, it sends an empty package list.
  • Safe Mode — The supplied operation properties describe this as blocking mutations in the Complete API. This shipment operation uses the legacy mutation handler, where Safe Mode retains reduced-response behavior.

Output shape

One item containing the shipment mutation result.

The result includes the API's result and message fields plus _operation, _order_id, _shipment_id, and _tracking_number. A GraphQL error or unexpected response raises an operation error unless the workflow is configured to continue on failure.

Links

Discussion