← Notes

How to send PrestaShop shipping updates on WhatsApp

Connect a PrestaShop shipping status to an approved WhatsApp template in bitbybit. Follow the event, map the order reference and check for duplicate updates.

You can build a shipping notification without copying your whole PrestaShop catalog into bitbybit. Have a developer connect one store event to one approved WhatsApp message. PrestaShop reports the change, the connector checks whether this customer should receive it, and bitbybit sends the template. The example below is a design for a PrestaShop 9 module. PrestaShop order-status hook · bitbybit template API

Which store event should trigger the message?

Choose the order state your fulfillment team actually uses when it dispatches a parcel. Register the module for actionOrderStatusPostUpdate. The hook supplies the order ID and previous and new states. Compare the configured state IDs and queue work only when the order enters the selected state. This keeps a change of address or an unrelated status correction from sending a shipping alert. Hook parameters

What goes into the WhatsApp request?

Connect the sending number and prepare an approved order-update template in bitCRM. For a template whose only body placeholder is the order reference, the worker would send the following JSON to POST https://api.bitbybit.studio/whatsapp/open/v1/messages/send-template. Replace the example values. Keep the scoped x-api-key on the server. The field named template_name takes the bitCRM template ID. Authentication · Template parameters

{
  "to": "<recipient digits including country code>",
  "template_name": "<approved bitCRM template ID>",
  "template_source": "CRM",
  "params": ["PS-EXAMPLE"]
}

Read the order reference and recipient number from the intended order. Check permission for this type of update and any opt-out before sending. Store a dispatch record keyed to the shop, order and notification so processing the same event twice does not create a second job. Keep the returned message identifier. If a request times out after submission, reconcile its status before resending. bitbybit Open API · WhatsApp messaging policy

What should your developer demonstrate?

Use a test order addressed to your own opted-in phone. Move it through an unrelated status, then the dispatch status. Confirm that one message arrives, with the same reference you see in the PrestaShop back office. Replay the event and check that the count stays at one. Repeat with an opted-out test record and expect zero messages. Save the order reference and received message so your team can trace the next shipping enquiry.

If your marketing team needs to edit conditions inside bitCRM, there is another design. Have the module post a mapped event to a bitCRM Custom webhook trigger, then configure and test the scenario’s recipient and message step. Choose one sending path for each notification. Custom webhook triggers

For customer-record sync, follow the PrestaShop API integration guide.

Explore all PrestaShop integration options.