Actions57
- Batch Actions
- Mutation Actions
- Order Actions
- Order Detail Actions
- Order Product Actions
- Order Shipment Actions
- Quote Actions
- Quote Product Actions
- Ship To Multiple Actions
- Status Actions
- Complete API Actions
- Get Batch
- Get Quote
- Order Billing Details
- Order Blind Details
- Order Delivery Details
- Order Products
- Order Shipment Details
- Order Status
- Order Summary
- Orders
- Quoteproduct
- Ship To Multiple Address
- Modify Order Product
- Set Batch
- Set Batch Job
- Set Order
- Set Order Product
- Set Order Product Image
- Set Order Product Image From URL
- Set Product Design
- Set Quote
- Set Shipment
- Update Order Status
Mutation → Set Shipment
AI-generatedSummary
Creates or updates a shipment for an OnPrintShop order, using the supplied order and shipment details. A shipment ID of 0 indicates a new shipment.
Inputs
- Safe Mode — Defaults to false. In Complete API mode, blocks mutations; in legacy actions, retains reduced-response behavior.
- Order ID (required) — Numeric ID of the order to update.
- Shipment ID — Numeric shipment ID; use 0 for a new shipment. Defaults to 0.
- Tracking Number — Tracking number for the shipment. Defaults to an empty string.
- Shipment Info (JSON) (required) — JSON array of shipment data matching the current OnPrintShop API collection. The default includes package information fields for weight, dimensions, tracking, and opdata.
Output shape
A single response from the OnPrintShop mutation.
The source pack contains only the node wrapper, so the exact response fields are not shown. Safe Mode blocks mutations in Complete API mode and reduces nested response fields in legacy actions.