To use this webhook and print PDF's you need Printnode and setup Warehouses, Packingtables, Printertypes.
This example creates a pickup document payload in HTML converts it's HTML to PDF and prints the PDF on a Printnode connected printer.
Method: Post
URL: https://api.clougistic.com/eu/version/print
Events:
warehouse.shipment.saved
warehouse.shipment.label.print
Headers:
AWS-S3-Bucket: clougistic.printnode
AWS-S3-Meta-PrinterId: {{ $getCurrentUser().getSelectedPackingtable().getPrinterForTypeName("A4").metadata }}
AWS-S3-Meta-Apikey: Your Printnode APIkey
AWS-S3-Meta-NumberOfCopies: 1
Paper-Size: A4
Paper-Orientation: Portrait
Paper-Height: 310mm
Paper-Width: 280mm
Content-Type: text/html
Payload:
Filter:
$order.shipping_method == "pickup"