Returns all shipments (item fulfillments) made within a specified date range. Includes tracking numbers, package information (ship from and to addresses, weight, shipping / handles charges), and more.
-- Contributor: Tim Dietrich (timdietrich@me.com) -- Additional Info: https://timdietrich.me/blog/netsuite-suiteql-shipments/ SELECT Transaction.ID, Transaction.TranID, Transaction.TranDate, BUILTIN.DF( Transaction.Entity ) AS Customer, SalesOrder.TranID AS SONumber, SalesOrder.OtherRefNum AS PONumber, BUILTIN.DF( TransactionShipment.SourceAddress ) AS ShipFrom, BUILTIN.DF( TransactionShipment.DestinationAddress ) AS ShipTo, BUILTIN.DF( TransactionShipment.ShippingMethod ) AS ShipMethod, TransactionShipment.Weight, TransactionShipment.ShippingRate, TransactionShipment.HandlingRate, BUILTIN.DF( Transaction.TrackingNumberList ) AS TrackingNumbers FROM Transaction INNER JOIN TransactionShipment ON ( TransactionShipment.Doc = Transaction.ID ) INNER JOIN TransactionLine ON ( TransactionLine.Transaction = Transaction.ID ) AND ( TransactionLine.MainLine = 'T' ) INNER JOIN Transaction AS SalesOrder ON ( SalesOrder.ID = TransactionLine.CreatedFrom ) WHERE ( Transaction.Type = 'ItemShip' ) AND ( Transaction.TranDate >= BUILTIN.RELATIVE_RANGES( 'DAGO30', 'START' ) ) ORDER BY Transaction.TranDate DESC, Transaction.TranID DESC
Click here to return to the list of available queries.
Hello, I’m Tim Dietrich. I design and build custom software for businesses running on NetSuite — from mobile apps and Web portals to Web APIs and integrations.
I’ve created several widely used open-source solutions for the NetSuite community, including the SuiteQL Query Tool and SuiteAPI, which help developers and businesses get more out of their systems.
I’m also the founder of SuiteStep, a NetSuite development studio focused on pushing the boundaries of what’s possible on the platform. Through SuiteStep, I deliver custom software and AI-driven solutions that make NetSuite more powerful, accessible, and future-ready.
Copyright © 2025 Tim Dietrich.