Send Magento orders to ParcelLabs

What it does

When a new order arrives in Magento, this automation routes it to ParcelLabs based on order status and website ID. The order reaches the correct ParcelLabs workflow so fulfillment tracking begins immediately.

Who it's for

Operations teams who need orders from Magento synced to ParcelLabs for shipment tracking without manual intervention.

How teams use this

Track retail orders in ParcelLabs

Retail orders from Magento are automatically routed to the dedicated retail workflow in ParcelLabs so fulfillment teams see them in the right queue from the moment the order is placed.

Separate osprey website orders

Orders from the osprey website are identified by website ID and sent to ParcelLabs through the standard workflow, keeping them distinct from retail orders in the fulfillment system.

Add routing for new websites

Extend the automation to check for additional website IDs and route them to different ParcelLabs workflows by adding conditions that filter orders based on website name or ID.

Alert teams when orders fail to route

Set up error notifications so when an order fails to route to ParcelLabs, the fulfillment team receives an alert with the order details and can investigate the issue immediately.

How it works

  1. Receive a new Magento order. A new order message arrives in the HOTECOM New Order Processing Pl Event topic in real time from Magento.
  2. Check the order status. Evaluate whether the order status equals Retail order status to determine which ParcelLabs workflow to use next.
  3. Route retail orders. If the order is a retail order, call the Post Retail Order to ParcelLabs workflow asynchronously so it processes in the background.
  4. Route other orders by website. If the order is not retail, check the website ID. If it contains osprey or is any other website, send the order to ParcelLabs using the standard Send Order to ParcelLabs workflow.
  5. Handle errors without retry. If an error occurs during routing or sending, the automation stops and does not retry so the order can be reviewed by the team.