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_keyis provided and a matching shipment exists, it will be updated order_numbers,supplier,location_id(derived fromdock_door), andadditional_dataare patched — omitting a field preserves the existing value- Shipments with status
completedare never modified - Only
typeis 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: trueis 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
- 200
- 400
- 401
- 403
- 500
Shipment upserted successfully
Bad Request. The request was invalid or cannot be otherwise served.
Unauthorized. User is not authenticated or session is invalid.
Forbidden. User does not have the required permissions.
Internal Server Error