OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Shipment

AI-generated

Summary

Create or update an OnPrintShop shipment for an order by sending its shipment ID, tracking number, and shipment package data to the setShipment GraphQL mutation.

Inputs

  • Order ID (required) — Order to associate with the shipment.
  • Shipment ID — Existing shipment ID to update; leave at 0 to create a new shipment. The node omits this value when it is 0.
  • Tracking Number — Shipment tracking number. The node omits it when empty.
  • Shipment Info (JSON) (required) — JSON array in the OnPrintShop shipment format, such as entries containing packageinfo with package dimensions, weight, tracking, and opdata. Sent as the mutation's shipmentinfo value.
  • Safe Mode — For Complete API operations, blocks mutations. This legacy mutation does not use Safe Mode to block the write.

Output shape

A single n8n item containing the setShipment mutation result.

The returned object includes the API's result, message, and id fields when provided. Invalid shipment JSON or GraphQL errors cause an operation error.

Links

Discussion