PluginPlugin planned for launch

An automatic SMS at every step of your WooCommerce orders.

The Sendimo plugin for WooCommerce, planned for launch, will send your order SMS with no code. Meanwhile, a few lines in functions.php send an SMS for every order through the API.

What it does

  • Automatic SMS when an order is confirmed, shipped and delivered.
  • Link confirmation: customers confirm or cancel by SMS, and the status updates in WooCommerce.
  • Message templates with first name, order number, total and tracking link.
  • Sent with your approved Sender ID (for example MYSHOP).

Setup

  1. 1Add your API key to wp-config.php (SENDIMO_API_KEY constant).
  2. 2Paste the woocommerce_order_status_processing hook into functions.php or a plugin.
  3. 3Place a test order: the SMS arrives within seconds.
  4. 4At launch, swap this code for the Sendimo plugin, with the same key.
ConfigurationPHP
// wp-config.php
define( 'SENDIMO_API_KEY', 'sk_live_...' );
SMS for every orderPHP
// functions.php or a plugin: SMS when an order moves to Processing
add_action( 'woocommerce_order_status_processing', function ( $order_id ) {
    $order = wc_get_order( $order_id );

    wp_remote_post( 'https://api.sendimo.tn/v1/messages', [
        'headers' => [
            'Authorization'   => 'Bearer ' . SENDIMO_API_KEY,
            'Content-Type'    => 'application/json',
            'Idempotency-Key' => 'wc-' . $order_id . '-processing',
        ],
        'body'    => wp_json_encode( [
            'to'        => $order->get_billing_phone(),
            'from'      => 'MYSHOP',
            'text'      => sprintf( 'Hi %s, your order #%s is confirmed.', $order->get_billing_first_name(), $order->get_order_number() ),
            'reference' => 'wc-' . $order_id,
        ] ),
        'timeout' => 10,
    ] );
} );
Response 202 AcceptedJSON
{
  "id": "msg_01HF8Z3K9QX2",
  "status": "queued",
  "to": "+21620123456",
  "from": "SENDIMO",
  "text": "Your code is 482913. It expires in 5 minutes.",
  "encoding": "GSM-7",
  "segments": 1,
  "network": "ooredoo",
  "cost": { "amount": "0.140", "currency": "TND" },
  "reference": "order-4821",
  "scheduled_at": null,
  "created_at": "2026-10-30T09:15:00Z"
}

Next steps

Other integrations

Ready to send your SMS?

Launching soon in Tunisia. Join early access.