attlaz/magento2-module-attlaz-order

Attlaz Magento2 Order Module

Maintainers

Package info

github.com/Attlaz-Platform/magento2-module-attlaz-order

Homepage

Type:magento2-module

pkg:composer/attlaz/magento2-module-attlaz-order

Transparency log

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

3.1.4 2026-07-21 14:25 UTC

This package is auto-updated.

Last update: 2026-07-21 14:30:58 UTC


README

Latest Stable Version

Attlaz is a cloud-based integration, automation and data management platform.

Getting started

composer require attlaz/magento2-module-attlaz-order

Requirements

How order synchronization works

The module hands Magento orders to an Attlaz flow. Four fields are stored on each order (and mirrored to the sales order grid):

  • attlaz_external_id — set once the order has been handed to Attlaz; its presence marks the order as synced
  • attlaz_sync_id — the Attlaz flow-run id used to poll status
  • attlaz_sync_status — one of requested, running, complete, failed, invalid, unknown
  • attlaz_sync_time — timestamp of the last sync attempt

Two cron jobs run every 5 minutes (default group), each handling up to 20 orders per run:

  • attlaz_order_sync_unsynced — finds orders without an attlaz_external_id and requests an Attlaz flow run for each
  • attlaz_order_sync_status — polls the flow-run status of in-progress orders and updates attlaz_sync_status

Synchronization only runs when Enable order sync is turned on (see Configuration below) and, for flow-based sync, a sync order flow is configured (Stores → Configuration → Attlaz).

You can also trigger a sync manually from the admin order view (the Sync button) or via CLI:

bin/magento attlaz:sync:orders
bin/magento attlaz:sync:order-statuses

Configuration

Stores → Configuration → Attlaz → Order sync:

  • Enable order sync — master on/off switch for the automatic (cron) sync. Disabled by default (since 3.1.0), so on upgrade the sync stays off until you turn it on. The manual per-order Sync button still works regardless.
  • Synchronize order key — the Attlaz flow that receives the orders. (Not required if the sync is driven by a custom plugin on SyncOrderCommand::sync() instead of a flow.)
  • Sync orders from date — only orders created on or after this date are synced; leave empty to sync all. Useful on first rollout to avoid re-sending your whole order history.
  • Order states to sync — restrict the sweep to selected order states (e.g. Processing, Complete); leave empty to sync all states.

Retry behaviour

A failed sync request marks the order failed and leaves it without an attlaz_external_id, so the attlaz_order_sync_unsynced cron picks it up again and retries it on the next run.

Note: there is currently no retry limit or backoff. An order that fails permanently (e.g. because of invalid data) will keep being retried indefinitely — one API request and one log line per cron run. This is intentional so that transient failures self-heal, but keep it in mind when investigating repeated failures. A future version may add a capped / backing-off retry.

Getting Help