Thanks for the suggestions. My goal is to push data from D365FO directly to an external REST API in JSON format. I want guidance on how to structure the X++ classes — including service classes, helper classes, and contracts. Also, could someone explain what exactly the response class does and what it should contain?. The blog mentioned by Navneeth