SFTP

Webhook

This example sends a stock update in xml to your SFTP 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/sftp

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: 22

FTP-Root: magento,shopify,amazon

FTP-Path: stock

FTP-File: 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>