{ "userMessage": "This is a message to display to the user." }
REST - Built-In User Messages
Whenever useful and possible, Connect will include messages in its responses intended and tailored for user feedback.
It's suggested that your EPoS shows these messages as received from Connect. This offloads to us the responsibility of accurately informing the user about the outcome of integration-related operations.
There are two ways in which user messages may be returned:
Endpoint Error Messages
These are returned by endpoints when the request cannot be processed (e.g. an invalid parameter or an unavailable terminal).
Format
Every message respects the following format:
The outmost key is "userMessage" which contains a single string message.
Example - Requesting an unavailable terminal
Transaction/Report Response User Messages
These are returned as part of the transaction/report objects when something has occurred during the processing of request that the user should be notified about. (e.g. signature has not been verified before the timeout or cashback is not allowed for a terminal).
Format
These follow the same format as endpoint error messages, except they are part of a transaction/report object.