Webhooks are a mechanism where you can have us send a request to a URL of your choice, upon a certain event happening.
All webhooks will be sent as POST data with the user agent "Smartcode"
To set a webhook, visit WMS Console and go to Configuration > Webhooks which looks something like this:
You can set any url, for example:
https://www.examplewebsite.com/smartcode-has-printed
https://www.examplewebsite.com/orderImported.php?from=smartcode
Invoice Print Success
We will send json that looks like this:
{"order_id":123}
Order Import
We will send json that looks like this:
{"order_id":123}
Order Item Import
{"importIds":["Foo","Bar","Foobe"]}