This guide walks you through polling the Varmo Status API so that your application can show cardholders a live view of where their card is in the delivery journey — from the moment it leaves the issuer’s fulfillment center to the day it arrives.Documentation Index
Fetch the complete documentation index at: https://docs.varmo.fi/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have:
- A valid Varmo API key with read access to the Status API
- A dispatch
id(UUID) generated by your card issuing system at the point of card dispatch
Store the dispatch ID
When your card issuing system dispatches a physical card, it generates a UUID that uniquely identifies that dispatch event. Store this UUID in your database alongside the cardholder’s record — it is the If your issuing platform does not expose a dispatch UUID directly, generate one at the time of dispatch and store it before calling any downstream fulfillment service.
{id} path parameter for every Varmo Status API call you make for this card.dispatch record example
Poll for status
Call Poll every 12–24 hours after dispatch. As the current date approaches
GET https://api.varmo.fi/v1/status/{id} with your dispatch UUID and a Bearer token in the Authorization header.prediction.delivery_window.max, increase polling frequency to every 2–4 hours so that your UI reflects the latest prediction before the card arrives.Parse the status
Read The
status, prediction.delivery_window, and prediction.confidence_level from the response to determine what to show the cardholder.parse-status.js
status field moves through dispatched → in_transit → out_for_delivery → delivered. confidence_level is "High", "Medium", or "Low" — use it to decide whether to show the delivery window or a vaguer message.Show the cardholder
Use
ui_suggestion.recommended_message as your display string. Varmo generates this message based on the current status, delivery window, and the cardholder’s inferred locale — you can render it verbatim without additional formatting.CardDeliveryStatus.jsx
Handle delivery
When Route cardholders to your activation flow as soon as this condition is met. Delaying the prompt increases the risk that the card sits unactivated.
status reaches "delivered" or ui_suggestion.recommended_action is "Activate", prompt the cardholder to activate their card. Do not wait for both conditions — either one is sufficient to trigger the activation flow.handle-delivery.js