Get every new order in your system (webhooks)

Souqly sends a signed message to your server for new, confirmed, shipped, delivered, cancelled and paid orders.

Get every new order in your system (webhooks)
Team, shipping, payments & API4 steps
Short answer

Souqly sends a signed message to your server for new, confirmed, shipped, delivered, cancelled and paid orders.

Step by step

  1. 1

    Dashboard → Developer API → Webhooks → paste your https address.

  2. 2

    Tick the events you want → Add webhook.

  3. 3

    Press "Test" to send the latest order.

  4. 4

    On your server check the X-Souqly-Signature header with the secret shown under the webhook.

Copy this code

CSS
$ok = hash_equals('sha256=' . hash_hmac('sha256', file_get_contents('php://input'), $secret), $_SERVER['HTTP_X_SOUQLY_SIGNATURE']);
Did this guide help?

Related guides