commercetools - Receive External webhook
Changed on:
31 Jan 2024
Overview
This feature enables partners to receive updates through webhook from a 3rd party system to the connector to be processed further
Detailed Technical Description
Webhook
Create a new Rest controller to receive the webhook. Note that the SDK does not include spring security for the web layer and it is up to the partner customising it to choose the best approach to verify the sender and authenticity of the message as this may vary per project.
Connector Logging
Each call to any 3rd party system through webhook may be logged in connector logs through the Event Log Service of the Connect SDK. The connector logs are added to the configured logging service which by default is the server. For example, as of now, the server we are using is AWS and Logs will be stored at AWS Logging.
Receive the webhook
Once the webhook is received, it must send the acknowledgement to 3rd party to ensure Connect layer received the message.
Connect Message Handler
Write the message handler to queue the payload received by the 3rd party in the internal queue. The Message handler will extend
`ConnectSDKMessage`