ION - Options to handle 200 (Ok) with error body returned from 3rd Party API
Hi
I have an interesting scenario. A third-party API I need to call always returns a status of 200, which is successful, even if there are errors. In the image below, you can see a status 200 and the error in the response body.
Ideally, this should be handled as a ConfirmBOD so a user could resubmit later.
I see the API Gateway contains a FaultHandling policy to change the status code, but it doesn't look like this can be done based on the response content. Am I correct?
I could send and alert or Task based on the content but then the message would need to be re-submitted from the source system.
Are there other options I could use, maybe with an API flow?
Answers
-
This is a bussiness validation that has been implemented from the API vendor side. What you can do is that based on the NotificationType(Payload) generate the notification or alert.
0