ui_suggestion object is a pre-built, localized messaging hint that Varmo generates alongside every delivery status response. It is designed so you can render cardholder-facing copy directly from the API without writing message logic yourself. Each suggestion is matched to the current delivery status, the predicted window, and the destination locale — giving cardholders accurate, appropriately worded information at every stage of the journey.
Fields at a glance
Displaying the message
The following example shows how to renderrecommended_message in a React component. The component also uses locale to set the lang attribute for correct browser rendering.
Customizing messaging
recommended_message is a safe default that works for most issuers without any additional configuration. If you need to match a specific brand voice or write copy in a tone that differs from Varmo’s defaults, build your message from the structured prediction fields instead — delivery_window.min, delivery_window.max, and confidence_level give you everything you need to construct accurate, bespoke copy.
Even when you write custom messages, retain locale for language routing. Varmo derives the locale from the destination country_code, so it reliably reflects the cardholder’s expected language — handling this yourself from raw country codes is error-prone, especially for multilingual countries.
Recommended actions
Therecommended_action field tells you what, if anything, to ask the cardholder to do. Map each value to a corresponding UI state in your app.