FTP
Webhook
Webhook
This example sends a stock update in xml to your FTP server after a sales order is added. Next step would be to import the xml in your e-commerce solution.
Method: Post
URL: https://api.clougistic.com/eu/version/ftp
Events:
warehouse.order.saved
Headers:
Content-Type: application/xml
FTP-Host: Your FTP Host
FTP-User: Your FTP user
FTP-Password: Your FTP password
FTP-Port: 21
FTP-Path: {{$source_id}}/stock/o-{{$id}}.xml
Payload:
<items>{{for $item in $itemsAggregate}}<item> <sku>{{ $item.sku }}</sku> <qty>{{ $item.product_qty_available }}</qty> <eta>{{ $item.product_eta }}</eta> </item>{{next item}}</items>