Skip to main content

Sanctions screening on Spanway Cloud and license issuance

Sanctions screening checks every Spanway Cloud tenant against the OFAC Specially Designated Nationals and Consolidated lists and against the sanctions jurisdiction policy. A possible match holds the tenant until a person reviews it, a confirmed match blocks the tenant and its money, and every decision is logged for the ten years the regulations require. License issuance for the self-hosted product is screened the same way. This page covers both. The jurisdiction policy and the list snapshot are described in Sanctions data and geofencing, and the request-level 451 geofence in Sanctions geofence.

This is compliance tooling and not legal advice. Counsel approves the jurisdiction policy, the program dispositions, the settings below and every confirmed decision. Report tasks are filed with OFAC by counsel, not by Spanway. Screening runs on Spanway Cloud, which needs the cloud license feature and the Cloud configuration. On a self-hosted gateway the screening routes answer 403.

A real-world scenario​

A new tenant signs up with a legal name that is a near match for an entry on the SDN list. The signup completes, but the tenant is held: its verification link answers 451 and nothing is provisioned. The compliance reviewer sees the case at the top of the review queue, compares the screened name and address with the candidate entry and its agreeing and conflicting fields, decides the candidate is a different company, and clears the case with a reason. The tenant is provisioned minutes later and the decision sits in the log. Had the reviewer confirmed the match instead, the tenant would have been blocked, its payment frozen and a 31 CFR 501.603 report task opened with the deadline counted in business days.

Steps​

  1. Turn screening on in the Cloud configuration and decide what happens to existing tenants and to signups while no list has loaded.

    general_settings:
    sanctions_screening:
    on_possible_match_existing: alert
    on_list_unavailable: hold
    refresh_interval_hours: 168
    max_data_age_days: 10
    source: ofac
  2. Add customer.updated to the events your Stripe webhook endpoint sends, next to the checkout and subscription events it already receives, so billing addresses are screened.

  3. In the Admin UI open Settings, then Compliance, and select the Sanctions tab. The top of the tab shows when the lists were published and fetched and whether they are stale, with a Refresh now button for reviewers. The same through the API:

    curl -s http://localhost:4000/sanctions/screening/status -H "Authorization: Bearer $SPANWAY_API_KEY"
  4. When a case appears in the Review queue table (Customer, Kind, Top candidate, Opened), open it. The Sanctions review case dialog shows the legal name, organization, email and address that were screened next to each candidate. Type a Decision reason, then choose Clear when the candidate is not the customer, or Confirm match with a Disposition if confirmed and Yes, confirm. The same through the API:

    curl -s -X POST http://localhost:4000/sanctions/cases/case_01J.../clear \
    -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
    -d '{"reason": "Different company: registered in Austin, candidate entry is a shipping firm in another country."}'
  5. When a confirmed match opens a task under OFAC report tasks, counsel files the report with OFAC and records the reference with Mark filed, or through the API:

    curl -s -X POST http://localhost:4000/sanctions/reports/rpt_01J.../filed \
    -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
    -d '{"filing_reference": "OFAC-2026-0421"}'

Expected result​

Step 3 answers with the list freshness, the matcher and disposition versions, the two settings and the open case and report counts. Step 4 returns the case with "status": "cleared", the tenant leaves pending_review, its verification link starts working and the clear is written to the Decision log. The same match is never raised again for the same customer details and list entry. Step 5 returns the report with "status": "filed" and the reference, and the decision log records report_filed.

Where Cloud screens​

MomentWhat is screenedResult
Signup.The address the signup form collects (country required and checked against the ISO 3166-1 list, subdivision where the policy restricts part of a country or where the country appears in a policy alias, such as RU for Crimea and the DNR and LNR).A restricted place is refused with HTTP 451 sanctioned_jurisdiction before a tenant row exists or any mail is sent, and the refusal is logged with the address truncated to its network. A missing region where one is needed is refused with 422.
Signup.The legal name and the organization against both lists.A possible match holds the tenant (pending_review). The verification link then answers 451 sanctions_screening_hold and nothing is provisioned until a reviewer clears the case.
Stripe Checkout and customer.updated.The billing name and address Stripe collects. Checkout requires a billing address.A restricted billing address holds the tenant with a high-priority jurisdiction case. A billing address without a region in a country the policy aliases, or in an ambiguous city such as Donetsk in RU, opens a low-priority address case. A subscription bought by a held, restricted or blocked tenant is not applied and is cancelled without proration, and its payment is withheld as described below.
Every list refresh.Every tenant, against what changed.A tenant screened against the previous list is screened only against new or changed entries. Anyone else is screened against the whole list.
Every authenticated request and every dashboard sign-in.The screening status of every tenant the key, its team or its user belongs to, cached for a minute.Held, restricted and blocked tenants get 451 with sanctions_screening_hold, sanctions_restricted or sanctions_confirmed_match on every route, including management routes, the Cloud tenant routes, model discovery and zero-cost models. Password, two-factor and SSO sign-in are refused the same way.
Every request.The client's location.The geofence, always on for Cloud.

How names are matched​

Names are normalized (Unicode NFKC, Cyrillic and Greek transliterated, accents, case and punctuation removed, legal forms such as LLC or OOO dropped for organizations, common transliteration spellings such as ph and f folded together) and compared with Jaro-Winkler on the sorted name and on each token. A match needs a score of at least 0.90 on the primary name or an alias. Weak aliases count at a small discount. People are compared with individuals and organizations with entities, vessels and aircraft.

Country and year of birth only rank candidates. An agreeing field raises a candidate and a conflicting one lowers it, but neither ever clears a name match, so the case still opens. A match on a single name token opens a low-priority case instead of being dropped. Every case lists its candidates with the fields that agreed or conflicted.

Addresses are screened with the policy's aliases as well as ISO codes, so a billing address that says RU with the region Crimea, the provider codes RU-CR or RU-SEV, or a city such as Simferopol or Sevastopol is treated as the Crimea region of Ukraine. An address in a country that appears in an alias needs a region, because RU alone could be Crimea or the DNR. Cities that name both a sanctioned place and an unrelated one, such as Donetsk in RU (a separate town of that name is in Rostov Oblast), are listed as ambiguous and open a review case instead of being blocked or cleared. Every alias in the policy cites its source.

What each disposition does​

Each candidate carries a disposition from the program dispositions file, a reviewed data file bundled in the image like the jurisdiction policy. Every SDN entry blocks. Consolidated list entries take the disposition of their program, for example Sectoral Sanctions Identifications and Menu-Based Sanctions entries restrict and the Chinese Military-Industrial Complex list is informational. A program that is not in the file is treated as block and flagged as unreviewed until someone adds it. The file is a draft until counsel approves it.

Confirmed asEffect
blockThe tenant is suspended and its organization blocked. Its credit balance is frozen, never settled against usage and never refunded, and the amount and date are recorded. Its Stripe subscription is cancelled with prorate: false and invoice_now: false, so no credit or refund goes back. A blocked property report task under 31 CFR 501.603 opens, due ten business days after the block.
restrictThe tenant is suspended and its organization blocked, and its subscription is cancelled the same way. No property is blocked. Payments held during the review become a rejected transaction task.
informationalNothing changes. The match is recorded and does not open a case again for the same customer details and list entry.

Money from a screened tenant never becomes spendable credit until the tenant is clear, and every payment is recorded once by its Stripe reference, so a webhook Stripe delivers again changes nothing.

Tenant status when the payment arrivesWhat happens
blockedThe payment is added to the blocked amount and opens another 501.603 task.
restrictedThe payment is held, not credited and not refunded, and opens a rejected transaction task under 31 CFR 501.604 that says counsel decides whether and how the funds go back.
pending_review (a possible match or a restricted billing address).The payment is held and a high-priority alert goes out. If the case is cleared it becomes prepaid credit. If the match is confirmed as block it is added to the blocked amount and listed on the 501.603 task, and as restrict it becomes a 501.604 task.

Nothing is refunded automatically, because returning money to a person who turns out to be listed would itself be a prohibited transfer. No webhook, payment or admin action lifts a block or a restriction. POST /cloud/tenants/{tenant_id}/reinstate answers 409 for those tenants, and credit purchases or subscription events cannot unblock their organization. When Stripe refuses the cancellation, the tenant is still blocked and an alert asks you to cancel by hand without proration or refund.

The review queue​

MethodPathSummary
GET/sanctions/screening/statusRead list freshness and the size of the review queue
POST/sanctions/screening/refreshRefresh the sanctions lists now and rescreen tenants
GET/sanctions/casesList sanctions review cases
GET/sanctions/cases/{case_id}Read one sanctions review case
POST/sanctions/cases/{case_id}/clearClear a case: the candidates are not the customer
POST/sanctions/cases/{case_id}/confirmConfirm a case as a true match
GET/sanctions/reportsList OFAC report tasks
POST/sanctions/reports/{report_id}/filedRecord that counsel filed a report with OFAC
GET/sanctions/eventsRead the sanctions decision log

A viewer is a proxy admin, an admin viewer or a user whose custom role grants sanctions.read. A reviewer is a proxy admin or a user whose custom role grants sanctions.write. The decision buttons in the Admin UI show only for proxy admins, so a custom-role reviewer decides through the API. GET /sanctions/cases lists open cases high priority first and takes status, page and page_size. The confirm call takes reason and an optional disposition, and defaults to the strongest disposition the candidates carry.

A cleared or confirmed case stops the same match from being raised again for the same customer details and the same list entry. A changed list entry or changed customer details reopen screening. Each decision can be made once. A new signup with a possible match is held. An existing tenant newly flagged by a list refresh keeps service while the case is open unless on_possible_match_existing is hold.

Report tasks​

Each task carries what 31 CFR 501.603 or 501.604 asks for that Spanway knows: the customer's name, organization, email and address, a description of the property or transaction, the amount, the date it was blocked or rejected, the program and list entry, and the Stripe references. The deadline is the tenth business day after that date, counting weekdays that are not United States federal holidays under 5 U.S.C. 6103, with weekend holidays moved to the observed Friday or Monday. Counsel completes the holder's contact details and any transfer instructions in the filing itself, then records the OFAC reference on the task.

Lists at runtime​

Cloud refreshes the lists itself, on one pod at a time, every refresh_interval_hours (weekly by default) and a minute after startup. A refresh downloads and verifies both lists the same way the weekly repository job does, stores the accepted version once so every pod screens against exactly the same entries, activates it, and rescreens tenants. A refresh that fails verification is recorded and alerted, and screening carries on against the last good list. Pods check for a newly activated version every five minutes. Refresh now on the Sanctions tab, or POST /sanctions/screening/refresh with a reason, does the same on demand and records the reason in the decision log.

Every six hours Cloud checks how old the active list is and sends a sanctions_alerts alert when it is older than max_data_age_days, or when no list has loaded yet. The Admin UI shows a red banner in the same case. While no list has loaded, new signups are held unless on_list_unavailable is allow.

On an air-gapped deployment set source: local and drop verified copies of SDN.XML and CONSOLIDATED.XML into local_dir with their SHA-256 values. A refresh with any other source is skipped while air-gapped.

general_settings:
sanctions_screening:
on_possible_match_existing: alert
on_list_unavailable: hold
refresh_interval_hours: 168
max_data_age_days: 10
source: ofac
mirror_url: null
local_dir: null
sdn_sha256: null
consolidated_sha256: null
max_removed_share: 0.05
SettingDefaultWhat it does
on_possible_match_existingalertWhat happens to an existing customer when a list refresh finds a possible match. alert opens a case and sends an alert while service continues, which avoids cutting off a customer over a false match. hold holds the account until a reviewer decides, which is safer when a missed match would be worse than a short outage. New signups with a possible match are always held.
on_list_unavailableholdWhat new signups get while no usable list is loaded. hold makes them wait, which is fail-closed. allow lets them in unscreened, and they are screened once a list loads.
refresh_interval_hours168How often the lists are downloaded, from 24 to 744 hours. Shorter catches new listings sooner at the cost of more downloads.
max_data_age_days10How old the active list may get, from 1 to 60 days, before the status turns stale and an alert is sent.
sourceofacWhere the lists come from: ofac downloads them from OFAC, mirror from your own copy at mirror_url, and local reads files from local_dir, for an air-gapped deployment.
mirror_urlunsetThe base URL of your mirror of the OFAC files, used with source: mirror.
local_dirunsetThe folder that holds SDN.XML and CONSOLIDATED.XML, used with source: local.
sdn_sha256, consolidated_sha256unsetThe SHA-256 of the local files. With source: local a file whose hash differs is refused, so a tampered copy is never activated.
max_removed_share0.05The largest share of entries, above 0 and at most 1, that one refresh may remove. A refresh that removes more is rejected and alerted, because a sudden drop usually means a broken download, not real delistings.

A Cloud operator changes these in the config file. If the block does not validate, for example a misspelled key or a value outside its range, the gateway ignores the whole block and uses every default, logs the reason once at ERROR and returns it as settings_problem in GET /sanctions/screening/status, and the Sanctions tab shows Screening settings ignored with the reason.

Record retention​

Sanctions cases, decisions, report tasks and the event log are kept for at least ten years, the period 31 CFR 501.601 requires since OFAC's final rule of March 21, 2025 (FR Doc. 2025-04864), and ten years after unblocking for blocked property. The retention setting maximum_sanctions_record_retention_period cannot be set below 3653d, the cleanup job never deletes these records, data subject erasure does not touch them, and the database refuses any update, delete or truncate of the event log. OFAC has said a shorter retention period required by another jurisdiction does not excuse this one, so take counsel's advice on how it sits next to your GDPR obligations.

License issuance​

Spanway screens every licensee of the self-hosted product before it issues a license. The licensee's legal name, country and, where the policy restricts only part of a country, region are checked against the license scope of the jurisdiction policy, the OFAC SDN and Consolidated lists, and the Bureau of Industry and Security lists in the trade.gov Consolidated Screening List, such as the Entity List and the Denied Persons List. A licensee in a restricted place is refused, and a possible name match is reviewed by a person before any license is issued. The issuance tool downloads the trade.gov list on every run, or reads a downloaded copy the operator names, and refuses to run when the OFAC snapshot is more than ten days old, a limit the operator cannot raise. Whenever the lists change, every issued licensee is screened again, and every decision is kept in a tamper evident record for the retention period above. Gateways do not read any screening data from the license itself.

Limits​

Name screening finds listed names and their aliases. It does not find companies owned 50% or more by listed persons that are not listed themselves. The secondary fields are only as good as the data customers give, and a missing date of birth never clears a match. Existing tenants signed up before screening have only an email and a company, so they are screened on the company name and their address is screened once Stripe billing collects it. The geofence and the account check refuse requests, but a payment that is already in Stripe stays there until counsel decides. Spanway never moves it automatically.

Errors​

What you seeWhyFix
403 naming the cloud feature on every /sanctions/screening or /sanctions/cases route.The license lacks the cloud feature.Screening runs on Cloud only. The geofence and /sanctions/geofence still work on any gateway.
404 Not Found on every screening routeThe license has cloud, but general_settings.cloud is missing or not enabled, so this is not a Cloud deployment.Screening runs on Cloud only. Turn Cloud on in the configuration if this is a Cloud deployment.
500 general_settings.cloud is invalidThe Cloud block does not validate. The gateway logs why as cloud: general_settings.cloud is invalid: <reason>.Fix the block the log names.
403 Only a proxy admin, an admin viewer or a role with sanctions.read can read the queueThe caller is not a viewer.Use an admin key, or grant sanctions.read through a custom role.
403 Only a proxy admin or a role with sanctions.write can decide sanctions casesThe caller is not a reviewer.Use a proxy admin key, or grant sanctions.write.
404 case ... not foundThe case id is wrong.Copy the id from GET /sanctions/cases.
409 case ... is already cleared or already confirmed.Each decision can be made once.Nothing to do. A changed list entry or changed customer details open a new case.
422 on reasonThe reason was missing or empty.Send a reason of 1 to 2000 characters.
400 a reason is requiredThe reason held only spaces.Write why the decision is right.
409 report ... is not an open report taskThe report was already filed or the id is wrong.Check GET /sanctions/reports.
451 sanctions_screening_hold for a tenant that should be live.A case is open for it.Review the case on the Sanctions tab. The hold lifts when it is cleared.
A red banner says the lists are stale.No refresh succeeded within max_data_age_days.Check last_rejection in the screening status, fix network or mirror access, and use Refresh now.
A sanctions_alerts alert says the cancellation failed in Stripe.Stripe refused to cancel the subscription of a blocked tenant.Cancel it by hand in Stripe without proration or refund. The tenant is already blocked.
Screening settings ignored on the Sanctions tabgeneral_settings.sanctions_screening does not validate, so every default applies.Fix the key the reason names.

Logs​

LevelLineMeaning
ERRORsanctions screening: general_settings.sanctions_screening is invalid, so every screening setting uses its default: <detail>Written once per distinct problem. Your hold or local choices are not in force until you fix the block. Action needed.
ERRORsanctions: active list <version_id> is unreadable: <detail>The stored active list could not be decoded, so screening keeps the list it had loaded. Run Refresh now to store a fresh copy.
ERRORcloud: general_settings.cloud is invalid: <reason>The Cloud block does not validate, so the screening routes answer 500. Fix the block.

Audit​

Sanctions decisions are kept in their own append-only decision log, not in the general audit log, because OFAC asks for a record the database itself refuses to change. Read it with GET /sanctions/events or the Decision log on the Sanctions tab. Each event names the actor and the time. The kinds a person causes are case_cleared and case_confirmed with the reason and, for a confirmation, the disposition, report_filed with the report id and OFAC reference, and manual_refresh_requested with the reason. A case can be decided only once and only while it is open, and a report can be filed only while it is open, so the before value of every decision is open and the after value is the status the event names. Changes to the screening settings themselves are in the general audit log as Spanway_Config rows.