To use this webhook and send email messages you need to create a Sendgrid account and create an API key.
This example sends a Purchase order with payload in HTML to your suppliers emailaddress with your own Sendgrid account.
Method: Post
URL: https://api.clougistic.com/eu/version/email
Events:
warehouse.supplier.purchase.status.confirm.after
warehouse.supplier.purchase.status.processing.after
Headers:
Content-Type: text/html
Authorization: Your Sendgrid API Key
Mail-From: Your e-mail address
Mail-From-Name: Your Company name
Mail-To: {{$supplier.email}}
Mail-To-Name: {{$supplier.name}}
Subject: {{$getTypeText()}} Order {{$id}}
Payload: