DECIDED does it have a decision.
Statuses
Null fields are not sent: an undecided verification does not carry the
decision key.
Check for absence, not null.
Decisions
REVIEW is not a final answer. It is final for that field until a person resolves the
case in the dashboard; when they do, decision changes to APPROVED or DECLINED. In your product, REVIEW
is closer to “we are reviewing” than to a rejection: keep the person in that state and wait for the
second notification.
A decision your code does not know is treated as REVIEW. The vocabulary can gain new
values; letting someone through on a value you have never seen is the only way that becomes
a security problem.
What to store
decision_rule is for explaining and auditing, not for deciding: always branch on decision.
If a code shows up that you do not recognize, treat it as REVIEW.
flow_config_version does not move when you edit your policy later. That is why an old decision
stays defensible: it says which rules it was made with, not today’s.
Dates
All dates in REST responses are UTC and come without an offset in the text. Interpret them as UTC. In webhooks, on the other hand,occurred_at and decided_at do carry the offset (Z).
Displaying them as local time without assuming UTC shifts every verification by several hours, in the direction that
makes a decision look earlier than its own request.