Skip to main content

Upsert Shipment

POST 

/v1/api/integrations/sync/shipment

Creates or updates a shipment record from an external system (e.g. WMS). This endpoint is idempotent — if a shipment with the same shipment_key already exists for the same type and site, it will be updated rather than duplicated.

Upsert behaviour:

  • If shipment_key is provided and a matching shipment exists, it will be updated
  • order_numbers, supplier, location_id (derived from dock_door), and additional_data are patched — omitting a field preserves the existing value
  • Shipments with status completed are never modified
  • Only type is required; all other fields are optional for patch-style updates

Pallet identifiers (pallet_identifiers):

  • Any identifiers in the payload are upserted (inserted if new, ignored if already present)
  • If sync_pallet_identifiers: true is also provided, any identifiers not in the payload that have not yet been scanned (is_tracked: false) will be deleted — effectively syncing the identifier list to the payload. Identifiers that have already been tracked are always preserved regardless of this flag.

Response: Returns the full shipment record including all joined data (line items, pallet identifiers, location, etc.)

Auth Required

Required Permissions:

  • quality.inspection.shipment:write ("Quality Inspection Shipment Write")

Request​

Responses​

Shipment upserted successfully