How to send delivery acknowledgement and process acknowledgement to third party in REST integration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:26 AM
I want to send a delivery acknowledgement when I'm receiving an update request from third party in REST integration, and I have to again send them a process acknowledgment after I parse this update request to the staging table and process it, how to achieve this via Scripted Rest API? Any other ways to accommodate this functionality?
Below is the sample delivery acknowledgement which third party expecting from me:
{
"dack": {
"returnCode": 0,
"header": {
"messageID": 1168XXX51,
"srcApplicationID": "XXXXX-SNOW-C"
},
"ticketID": "INC00XXXX"
}
}
Below is the sample process acknowledgement which third party expecting from me:
{
"pack":{
"masterID":"",
"returnCode":0,
"extTicketID":"INC00XXXX",
"header":{
"dstApplicationID":"XXXXX-SNOW-C",
"messageID":1168XXX51,
"srcApplicationID":"XXXX-SNOWXXX-C"
},
"ticketID":"INC022XXXX"
}
}
Below is my code in Scripted REST API
---------------------------------------------