Introduction to Inventory Shipment Timestamps
Shopify has introduced new fields to help merchants track and manage inventory shipments more effectively. These fields are accessible through the Admin GraphQL API, allowing better control and precision in handling shipment data.
New Timestamp Fields
The InventoryShipment type now includes the following fields:
- dateCreated: The date when the shipment was created.
- dateShipped: The date when the shipment was dispatched.
- dateReceived: The date when the shipment was received.
These fields enable you to monitor your shipment lifecycle seamlessly and ensure accuracy in your inventory records.
How to Use These Fields
You can incorporate these new timestamp fields in the following GraphQL mutations:
-
inventoryShipmentCreate: Use the
dateCreatedinput to specify the creation date of the shipment. -
inventoryShipmentMarkInTransit: Provide the
dateShippedargument to indicate when the shipment was dispatched. -
inventoryShipmentReceive: Supply the
dateReceivedargument to mark when the shipment was received.
Technical Details
All timestamp fields return dates in UTC format to maintain consistency across different time zones. They are currently available in the unstable version of the Admin GraphQL API and will be rolled into the stable version as of API version 2025-10.
Conclusion
By leveraging these new inventory shipment timestamps, you can enhance your inventory management efficiency and ensure that your operations run smoothly. Start exploring these fields in the Admin GraphQL API today!