Webhook Setup for Order Tracking
Automatic Order Updates - Webhook Setup
Keep WooCommerce and Shaloz perfectly synced with webhooks!
__________________________________________________
Why Set Up Webhooks?
Without Webhooks:
- Delivery completes → WooCommerce still shows "Processing"
- You manually mark orders complete
- Customers don't get automatic updates
- More work for you!
With Webhooks:
- Delivery completes → WooCommerce automatically updates to "Completed"
- Order notes added for each status change
- Customers get automatic tracking updates
- Everything syncs automatically!
Highly Recommended!
__________________________________________________
What You'll Do
Simple Copy/Paste Setup:
- Copy secret code from Shaloz Portal
- Paste in WooCommerce
- Copy link from WooCommerce
- Paste in Shaloz Portal
- Test it works
- Done!
Time: 5 minutes
__________________________________________________
Step 1: Get Webhook Secret from Shaloz
In Shaloz Portal:
- Log into portal.shaloz.com
- Click "Settings"
- Scroll to "Webhook Configuration"
- Find "Webhook Secret"
- Click copy icon
- Keep this handy - you'll paste in WooCommerce
__________________________________________________
Step 2: Enter Secret in WooCommerce
In WordPress:
- WooCommerce → Settings → Shipping
- Click your zone → Click "Shaloz Shipping"
- Scroll to "Webhook Secret" field
- Paste the secret you copied
- Don't save yet - continue to next step
__________________________________________________
Step 3: Copy WooCommerce Webhook URL
Still in WooCommerce Settings:
- Find "Your Webhook URL" (shown below where you pasted secret)
- Should look like: https://yoursite.com/wp-json/shaloz/v1/webhook
- Click copy icon or select all and copy
- Keep this - you'll paste in Shaloz Portal
__________________________________________________
Step 4: Test Webhook in WooCommerce
Before Saving:
- Click "Test Webhook" button
- Plugin tests connection
- Should show: "Webhook test successful"
- If error, double-check you pasted entire secret
Now Save:
- Click "Save changes" at bottom
- Settings saved!
__________________________________________________
Step 5: Add Webhook URL to Shaloz Portal
Back in Shaloz Portal:
- Still in Settings → Webhook Configuration
- Find "Your WooCommerce Webhook URL" field
- Paste the URL you copied from WooCommerce
- Click "Save"
- Portal validates URL
- Success message appears
Done! Webhooks are configured.
__________________________________________________
Testing Webhooks
Place a Test Order:
- Create test order in WooCommerce
- Fulfill it in Shaloz Portal
- Watch for order notes in WooCommerce
Expected Order Notes:
Shaloz: Order sent for delivery
Shaloz: Driver John Smith assigned
Shaloz: Package picked up
Shaloz: Delivery completed
Order status changed to Completed
All These Auto-Added by Webhooks!
__________________________________________________
What Webhooks Sync
Shaloz → WooCommerce Updates:
Driver Assignment:
- "Driver [Name] assigned to delivery"
- Shows driver name and vehicle
Pickup:
- "Package picked up from [Location]"
- Confirms driver has package
Delivery Status:
- "Delivery completed"
- "Delivery cancelled"
- Includes timestamp
Order Status Changes:
- Processing → Completed (when delivered)
- Processing → Cancelled (if delivery cancelled)
Tracking Info:
- Adds tracking URL to order
- Customer can click to track
__________________________________________________
Troubleshooting Webhooks
Problem: No Order Notes Appearing
Check:
- Webhook secret matches in both systems
- Webhook URL correct in Shaloz Portal
- URL starts with https:// (not http://)
- Your website isn't blocking incoming requests
- Test webhook button shows success
Problem: "Invalid Webhook Signature"
Fix:
- Webhook secret doesn't match
- Re-copy secret from Portal
- Paste in WooCommerce again
- Save and test
Problem: Webhooks Sometimes Work, Sometimes Don't
Possible Causes:
- Server busy/timing out
- Network issues
- Firewall intermittently blocking
Fixes:
- Shaloz retries automatically
- Check with web host about webhook reliability
- May need to whitelist Shaloz IPs
Problem: Order Status Not Changing to Completed
Check:
- Delivery actually completed in Shaloz
- Webhook configured correctly
- WooCommerce order still exists (not deleted)
- Try manual refresh: Open order → "Refresh Status" button
__________________________________________________
Advanced: Webhook Logs
View Webhook Activity:
- Enable debug mode in plugin settings
- WooCommerce → Status → Logs
- Look for webhook-related logs
- See all incoming webhook requests
- Identify errors
Use Logs For:
- Debugging webhook issues
- Verifying webhooks received
- Checking what's being sent
__________________________________________________
Disabling Webhooks
If You Need To:
- Clear webhook secret from WooCommerce
- Or clear webhook URL from Shaloz Portal
- Save changes
- Webhooks disabled
Why Disable:
- Troubleshooting issues
- Testing without auto-updates
- Temporary fix for problems
Re-Enable: Follow setup steps again
__________________________________________________
Need Help?
Webhooks Not Working?
- Verify all 5 setup steps completed
- Test connection in WooCommerce
- Check logs for errors
- Contact help.shaloz.com
Technical Questions?
- Ask your web host about webhook support
- help.shaloz.com for Shaloz-specific issues
Comments
Please sign in to leave a comment.