Webhook Connector
Tradecloud triggers a webhook to notify the buyer or supplier the order or shipment is new or has been updated.

Using the webhook

Step 1. Tradecloud sends a webhook trigger to your webhook service

When an order or shipment is new or has been changed at Tradecloud, we will trigger your webhook.
You can either choose between the POST / PUT or GET webhook.
POST or PUT which will contain the order event or shipment event in a JSON body.
GET which will contain the order ID or shipment ID as path or query parameter.
See the API manual about pro's and cons of either choice.
When you use the event it will ONLY contain the lines affected by the event.
When you GET the order yourself you will get ALL the lines
In case of POST or PUT webhook you can use the event inside the request JSON body:
POST/PUT shipment webhook OpenAPI specification TO DO
In case of GET, the triggered webhook URL contains an order id parameter, for example:
1
GET https://yourcompany.com/any/order/path/:orderId
2
GET https://yourcompany.com/any/shipment/path/:shipmentId
3
4
or
5
6
GET HTTP://yourcompany.com/any/path?orderId=:orderId
7
GET HTTP://yourcompany.com/any/path?shipmentId=:shipmentId
Copied!

Step 2. Your webhook service fetches the actual order or shipment from Tradecloud

In case of a GET webhook, using the order ID or shipment ID you can fetch the actual order or shipment from Tradecloud:
1
GET https://api.accp.tradecloud1.com/order/:orderId
2
GET https://api.accp.tradecloud1.com/shipment/:shipmentId
Copied!
GET order OpenAPI specification GET shipment OpenAPI specification TO DO

Next: setting up the webhook

Last modified 2mo ago