'How to capture web-hook response in Nodejs

I have a third party website site that sends data at each 5min interval(Webhooks). I want to capture it in my Nodejs application.

SAMPLE Post Data(JSON) from the third party :

{
"Deals": "Apple offers, Iphone 12",
"price":123,123
}

I want to capture the above Webhook response in my Nodejs application.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source