Repository navigation
Sync Inventoros shipments and tracking to Shopify - #2
Merged
Merged
Conversation
mpge
changed the base branch from
feat/variant-warehouse-availability
to
main
October 22, 2026 02:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR: Shipped parcels and tracking in Inventoros can fulfil the matching Shopify quantities, with Shopify sending the shipping email. Historical orders are excluded.
Shipment sync is optional and off by default. Each ship-from warehouse maps to one Shopify location. Imported order lines retain exact Shopify line IDs, so partial shipments fulfil only the quantities actually shipped. Previously unstocked inventory items are activated at the destination before moving fulfilment-order lines. Reads use bounded requests and complete nested pagination. Holds, unsupported routing and invalid line mappings stop for review. Shipping does not deduct Inventoros stock again.
Shopify owns the customer shipping email while this mode is enabled, including paused connections. A persisted send claim and returned fulfilment ID prevent duplicate creation. An uncertain creation response stops for manual verification in Shopify; it is never blindly replayed. Historical orders and orders that did not commit stock cannot enter this flow.
Built on #6 so the order-history, authentication, payment and shipment features work together. Review/merge order: #3 ? #4 ? #5 ? #6 ? #2. Core main includes shipment notification ownership; optional payment imports from #6 separately require Inventoros/Inventoros#305. The release version, changelog and setup guide are updated.
Validation: the full combined suite passes 162 tests / 900 assertions on SQLite. Shipment/HTTP/lifecycle checks pass on MySQL and PostgreSQL (12 tests / 43 assertions each), following the complete database runs for the underlying import stack. The UI builds. The 1.4.0 release ZIP installs, activates, deactivates, reactivates and deletes cleanly through the real installer in an isolated database. Provider calls are faked; no live store was changed.
GitHub-hosted CI cannot start because GitHub reports failed account payments or a spending-limit restriction. No build steps ran; local checks above cover the changes.