inpost-vonhalsky / module-magento
VonHalsky integration module for Magento 2.4.x (PHP 8.1+)
Package info
github.com/InPost-VonHalsky/InPost-vonHalsky-Magento
Type:magento2-module
pkg:composer/inpost-vonhalsky/module-magento
Requires
- php: ^8.1
- inpostapi/inpost-vonhalsky-api-sdk-php: ^1.0
- league/oauth2-client: ^2.7
- magento/framework: 103.*
- magento/module-backend: 102.*
- magento/module-catalog: 104.*
- magento/module-config: 101.*
- magento/module-store: 101.*
- magento/module-ui: 101.*
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^1.11
- rector/rector: ^1.1
Suggests
- smartmage/inpost: Adds InPost Paczkomat/Courier shipping methods and ShipX parcel generation. When installed, accepted marketplace orders can be mapped to InPost carriers and have their ShipX shipment created automatically (see Stores > Config > InPost > Delivery Method Mapping).
This package is not auto-updated.
Last update: 2026-07-17 14:57:25 UTC
README
π΅π± Polska wersja dla merchantΓ³w: README.pl.md
The VonHalsky module connects Magento 2 stores with InPost marketplace services. It synchronises offers, categories, orders, and related events while giving merchants intuitive admin tools to manage mappings and monitor activity.
β¨ Productization β the game-changer. VonHalsky's standout feature reads product data straight from InPost's catalog by EAN (the
/hintsendpoint) and pre-fills the whole offer for you β category, attributes, brand and more. In practice this removes the need to map categories or attributes by hand: pick a product, review the pre-filled offer, and publish. Creating marketplace offers becomes genuinely fast and effortless.
π¦ Distribution. The module is published on Packagist and installed with Composer β see Installation.
Resource Menu
Requirements
- Magento Open Source / Adobe Commerce 2.4.6β2.4.8
- PHP 8.1 or newer
- Composer 2.x
- Valid VonHalsky OAuth2 credentials (Client ID & Client Secret)
- Working Magento cron and access to the Magento CLI (
bin/magento)
Installation
The module is published on Packagist as inpost-vonhalsky/module-magento, together with its InPost PHP SDK. Installation is a standard composer require β no repositories configuration is needed.
π Separate SDK repository. The InPost PHP SDK is maintained in its own repository β InPost-vonHalsky-api-sdk-php (Packagist:
inpostapi/inpost-vonhalsky-api-sdk-php). Composer pulls it in automatically as a dependency of the module; you do not install it separately.
1. Require the module
From the Magento root:
composer require inpost-vonhalsky/module-magento
Composer resolves the module and its dependencies (the InPost PHP SDK inpostapi/inpost-vonhalsky-api-sdk-php and league/oauth2-client) automatically from Packagist.
2. Enable the module and run setup
bin/magento module:enable Inpost_VonHalsky bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
bin/magento module:status Inpost_VonHalsky should now list the module as enabled.
3. Upgrading to a new release
composer update inpost-vonhalsky/module-magento bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
Documentation
The complete user guide β setup, configuration, daily operations, and troubleshooting β lives in doc/quick-start.md, with accompanying screenshots under doc/screenshots/. New merchants should start there and follow it in sequence.
Highlights
- OAuth2 Integration β Secure token handling and automatic refresh via
OAuth2Service. - Organization Management β Retrieve and cache available organizations, with manual refresh controls.
- Admin Experience β Dedicated Magento menus for Offers, Category Mapping, and Orders; attribute mapping and event tracking are managed within those sections.
- Category Search β Search box above the InPost category tree in Category Mapping; partial match, case-insensitive, with breadcrumb path and highlighted results. Backed by a shared cache β zero DB queries after first load.
- Bulk Synchronisation β CLI commands for offers, categories, events, and orders, with filtering options (and dry-run where applicable).
- Automation Ready β Cron jobs schedule critical synchronisations automatically (see table below).
- Robust Architecture β Service-oriented code with comprehensive logging, validation, and error handling (
ApiErrorHandler).
Shipping Automation (optional β Smartmage InPost)
VonHalsky integrates with the Smartmage_Inpost module (InPost Paczkomat / Courier shipping methods and ShipX parcel generation). This is a soft dependency β VonHalsky works fully on its own. When Smartmage_Inpost is installed, accepted marketplace orders can be mapped to InPost carriers and their ShipX shipments (waybills / shipping labels) generated automatically β so the entire order-to-shipment flow can run hands-free, with no manual label creation. Configure carrier mapping and automatic shipment creation under Stores β Configuration β VonHalsky β Delivery Method Mapping.
Scheduled Cron Jobs
| Job | Default Schedule | Purpose |
|---|---|---|
| Categories | 0 2 * * * (2 AM daily) |
Sync InPost categories |
| Events | */15 * * * * (every 15 min) |
Sync offer/order events |
| Orders | */10 * * * * (every 10 min) |
Sync orders from InPost |
| Updated Offers | */5 * * * * (every 5 min) |
Re-send offers flagged for API sync |
| Pending Commands | */3 * * * * (every 3 min) |
Poll async create-offer commands; finalize/retry |
All schedules are configurable in Stores β Configuration β VonHalsky β Cron Settings.
Admin & CLI Operations
- Configure credentials under Stores β Configuration β VonHalsky β Configuration. Use the provided action buttons to connect, test, and refresh organizations.
- Operate day-to-day workflows from the VonHalsky admin menu (Offers, Category Mapping, Orders).
- Run console commands such as
bin/magento inpost:categories:sync --cleanorbin/magento inpost:offer:send --allfor manual control.
See the User Guide for detailed instructions, options, and usage examples.
Support & Maintenance
- Logs are stored under
var/log, includinginpost_debug.logfor module-specific diagnostics. - Always clear Magento caches after configuration changes (
bin/magento cache:flush). - Consult the User Guide for a troubleshooting checklist before escalating issues.
Need help? If you run into problems, contact InPost API support at apiportal@inpost.pl. Include the module version, your Magento version, and relevant excerpts from var/log/inpost_debug.log.
Module namespace: Inpost_VonHalsky