Repository navigation
Description
Split from #205. Prerequisites (common to #212, #213 and #214, which run in parallel): #215 (provider choice, package names, skeletons), #176 (display path), #216 (masking helper), #217 (identifier validators), #218 (provider tooling).
Decided in ADR-0016 and verified on 2026-11-06
- Package
OpenUrzednik.MF.WhiteList(root namespace the same),ActivitySourceOpenUrzednik.MF.WhiteList, short namemf_white_list; the type prefix (WhiteList…orMFWhiteList…) is this ADR's choice. The flat file is a separate idea (White List flat file package (needs a 7z dependency ADR) #220). - Hosts: production
https://wykazpodatnikowvat.mf.gov.pl/api/, testhttps://wykazpodatnikowvat-test.mf.gov.pl/api/; the formerwl-api.mf.gov.pl/wl-test.mf.gov.plare supported until 2026-12-01 (API page). No auth, GET only. - NIP, REGON and account numbers are in the URL path (display path: Add a display path to the shared executor for identifier-carrying requests #176);
dateis a required query parameter (up to 5 years back). - Endpoints:
searchby NIP, REGON or account, single and batch (up to 30 per request);checkNIP or REGON + account (no batch); a separate WL2/api2/status/nip/{nip}(status only, 50,000 a day; stays in this package per ADR-0016). - Limits:
search100 requests a day; access may be blocked until midnight. Map it toRateLimitExceededErrorwith the retry time, unless the real blocked response shows another condition (its HTTP status and body are unverified). - Answers carry
requestId(proof of a check for the tax authorities) andrequestDateTime(dd-MM-yyyy HH:mm:ss); errors are 400 with{"message","code":"WL-…"}.
Idea
The first new provider after NBP: the Ministry of Finance White List (VAT taxpayer register). ADR-0010's gate is open (OpenUrzednik.Nbp 1.0.0 is stable, no open Urgent or High bug).
API facts below are from memory or from ADR-0010's example, not checked; the provider ADR verifies them:
- no authentication; a test host (
wl-test.mf.gov.pl); - high practical value: checking a VAT status or a bank account before a payment;
- hard parts: a daily quota that blocks the caller until midnight (not a throttle),
requestId/requestDateTimeas the proof of a check, partial results of batch calls, a flat file in 7z format.
Scope
- The MF White List provider ADR, answering ADR-0010's readiness checklist: protocol, auth, quota and retry advice, personal data and masking (NIPs and bank account numbers: ADR-0003, ADR-0006, Add a display path to the shared executor for identifier-carrying requests #176), fixtures and the test environment, terms of use, the legal meaning of the output, partial batch results, extra dependencies, and the package and namespace name (following ADR-0016).
- Follow-up issues for the implementation.
Done when
- An accepted MF White List provider ADR; implementation issues exist.
Context for the implementing agent
Where this fits. Milestone 1.1.0 ships the first new provider after NBP (OpenUrzednik.Nbp 1.0.0 is released and is the reference implementation). Five prerequisites come first and can run in parallel, except #217, which waits for #216: #215 (provider choice, package names, skeletons; ADR), #176 (display path in the shared executor), #216 (masking helper), #217 (identifier validators), #218 (provider tooling). They block the provider ADR issues #212 (MF White List), #213 (KRS) and #214 (GUS BIR), which then run in parallel.
Read first. CLAUDE.md (the binding summary of the rules) and the accepted ADRs in docs/adr/ that this issue names. ADRs are append-only: a change to an accepted decision goes through /adr as a new ADR that supersedes the old one. Never work around an ADR.
Workflow (CLAUDE.md, "Workflow" and "Issues and the project"):
- Start only when this issue's Status is
Readyandgh issue view <n> --json blockedBylists no open blocker; then set StatusIn progress(the only project field an agent changes). - Branch from
origin/develop(feature/…,fix/…,docs/…,chore/…); stage explicit paths only; stage and commit as two separate commands (a hook scans the staged changes); never--no-verify. - One issue per PR into
develop; the PR body starts withCloses #<n>; give it a release label from.github/release.yml(the label on this issue is the forecast). - Before the PR: run the
revieweragent on the diff. After it: check the PR's CodeQL alerts (gh api "repos/milten89/OpenUrzednik.NET/code-scanning/alerts?ref=refs/pull/<pr>/merge&state=open").
Checks to run and report: dotnet build OpenUrzednik.slnx; tests per project (dotnet test tests/<Project> -f net10.0, and -f net472 on Windows); dotnet format OpenUrzednik.slnx --verify-no-changes (after a clean build). If public API, a target or packaging changes: dotnet pack OpenUrzednik.Packages.slnf -c Release, which runs package validation against the 1.0.0 baseline (suppressions are limited; see CLAUDE.md).
Specific to the provider ADR issues (#212, #213, #214)
- Starts after all five prerequisites are closed; follows the package naming and skeleton decision of Decide the next providers, their package names and the skeletons (ADR) #215.
- ADRs: 0010 (the readiness checklist the provider ADR must answer), 0002/0012 (errors), 0003 (telemetry and masking), 0004 (dependencies), 0006 (HTTP layer and display path) or the transport rule for non-REST, 0007 (client API), 0014 (Native AOT).
- Verify every API fact against the real API (read-only, few requests) and its official docs and terms of use; fixtures come from the provider's test environment or legal-person records, with remaining personal fields replaced by fake values of the same format; never commit API keys, session ids or tokens.
- Output: the provider ADR via
/adr(index updated) and follow-up implementation issues (one per PR), opened at the maintainer's request and triaged into milestone1.1.0if that provider ships in 1.1.0.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]MF White List provider: decide the provider order and write its ADR[/-][+]MF White List provider: write its ADR[/+]