Magento can ship one order in several parcels. Build the WhatsApp update from the shipment record and use the parent order to identify the buyer and storefront. On Magento Open Source 2 and Adobe Commerce on-premises or PaaS, a PHP observer can queue work after a shipment save commits. A later edit can save the same shipment again. Use its shipment ID to suppress repeats and an approved template that describes only the items in this shipment.
Does your Magento deployment support this recipe?
This example uses the Magento 2 PHP application and its REST routes, verified against the 2.4.8 source. It applies to Magento Open Source and the Adobe Commerce on-premises or PaaS deployment model. Adobe Commerce as a Cloud Service has its own API and extensibility model. Establish event and entity availability for that deployment before choosing a trigger. Adobe REST deployment guide
How do you read the saved shipment?
A developer can observe sales_order_shipment_save_commit_after and queue the shipment ID after the save commits. The shipment model sets its event prefix to sales_order_shipment. The framework appends _save_commit_after in its commit callback. Ask fulfillment staff whether creation means packed, dispatched or handed to a carrier. Choose the template wording for the milestone they actually record. Shipment model · Framework commit callback
- For an external worker, configure a scoped integration under System → Extensions → Integrations. Grant the reads it needs. Read the single shipment at
GET /rest/{storeCode}/V1/shipment/{id}and its order atGET /rest/{storeCode}/V1/orders/{id}using the shipment’sorder_id. The single-record shipment route uses the singular noun. Integration access · Sales routes - Use shipment item quantities and any saved tracking. Use the order’s customer-facing reference and store context. Confirm the recipient and permission for this service message. A gift’s delivery contact can be different from the buyer. If parcel two is pending, the first message must describe only parcel one. Adobe shipment example
- Reserve a unique send record for the store, shipment ID and message type. From your worker, call bitbybit’s
POST /whatsapp/open/v1/messages/send-templatewith a server-sidex-api-key, international recipient digits into,template_sourceset toCRM, the approved template ID intemplate_name, and orderedparams. Record the response. For a timeout with unknown delivery, reconcile before trying again. API authentication · Send a template
What happens if tracking is added later?
Test a two-item order. Create the first shipment without tracking and send a template that does not promise a tracking link. Edit that shipment to add the carrier number. The edit should produce no second dispatch notice. Then create a separate shipment for the second item and verify its own message. If the business wants a later tracking alert, define that as a separate message type with its own permission, template and duplicate check.
Which identifiers belong in the message?
Suppose a customer buys a roller and a mat under one order reference. The warehouse creates a shipment for the mat today and a shipment for the roller tomorrow. Keep the internal shipment entity ID for the connector. Put the customer-facing order reference and the relevant parcel contents into the approved template. If both sends look identical to the buyer, revise the template to distinguish the parcel or item. Store the message result against the matching shipment so support can answer which item the update concerned.
For a French-language store view, use a template approved for that language and a tracking link the buyer can open without an admin session. The Magento store-view guide explains how to map store context and language preferences.