When an order or shipment is new or has been changed at Tradecloud, we will trigger your webhook.
In case of POST or PUT webhook you can use the event inside the request JSON body:
In case of GET, the triggered webhook URL contains an order id parameter, for example:
GET https://yourcompany.com/any/order/path/:orderIdGET https://yourcompany.com/any/shipment/path/:shipmentIdorGET HTTP://yourcompany.com/any/path?orderId=:orderIdGET HTTP://yourcompany.com/any/path?shipmentId=:shipmentId
In case of a GET webhook, using the order ID or shipment ID you can fetch the actual order or shipment from Tradecloud:
GET https://api.accp.tradecloud1.com/order/:orderIdGET https://api.accp.tradecloud1.com/shipment/:shipmentId