The Modernised API retains the reason code and status from Real-time Retail Payments Platform (RPP), ensuring consistency. However, new fields have been introduced to improve error handling and provide more clarity in the response. These enhancements typically include:
-
name: Human-readable identifier for the error, making it easier to categorise and identify the issue.
-
description: A detailed message explaining the error, providing more context to understand what went wrong.
-
details: An optional field that offers additional information, such as validation issues or missing parameters, to help diagnose the problem.
-
additionalCode: An optional field that can include an extra response code, typically used for codes or error information provided by third-party services.
These improvements offer a more comprehensive and transparent approach to error handling, making it easier to identify, troubleshoot and resolve issues.