An audit trail for company checks should let someone who was not there rebuild the check months later: which company was meant, what was asked, which sources answered, when, at what approved cost, and who decided what. That requires a chain of separate, append-only events, not one status field that each run overwrites. A trail that only says "verified" records a conclusion and leaves out the evidence behind it.
- Use it whenever a check feeds a decision someone may need to defend: onboarding a supplier, releasing a payment, letting an agent act.
- Record events, not states. The request, the approval, each source call, the result and the decision are different facts with different times.
- Keep what a provider returned apart from what your team concluded. They have different authors and different reliability.
- Decide retention up front. Record-keeping duties and data minimisation pull in opposite directions, and the trail has to satisfy both.
- Do not build this for throwaway lookups nobody will rely on. A trail costs storage, review and personal-data exposure.
Record events, not a status
The trail should be a sequence of immutable events tied to one check identifier. A single row with a status column loses the history the moment it is updated.
A company check passes through distinct moments, and each one can fail on its own. Someone asks a question. The entity is resolved to a register record. A scope and a price are approved. One or more sources are called, sometimes more than once. A result comes back. A person, or a rule, decides what it means. If the trail stores only the final state, a later reader cannot tell whether "active" came from the register on the day of onboarding or from a re-run three weeks later against a different source.
Append-only does not need special infrastructure. A table that only allows inserts, with corrections written as new events that reference the one they correct, is enough for most teams. What matters is that nothing is overwritten and every event carries its own timestamp and author.
A field-by-field record for one check
Each event type needs a small, fixed set of fields. The list below is a conceptual schema for your own system, not an Apiosk response format; the next section separates the two.
- check_id: one identifier for the whole check, created before the first source call.
- question: what the check is meant to answer, in plain words, for example "is this the legal entity on the contract and is it active?".
- entity_anchor: jurisdiction, register and registration number, stored as text so leading zeros survive, plus the name as supplied.
- scope_and_approval: the sources or check types approved, the cost ceiling, who or which connection approved it, and when.
- source_call: one event per attempt, with source name, the query actually sent, retrieval time, outcome (result, no record, error, timeout) and the idempotency key used.
- result: the fields returned as returned, with the source's own dates kept apart from your retrieval time, plus a hash of the raw response if you do not store it whole.
- charge: the actual cost of the run, which can be lower than the approved ceiling.
- decision: accept, reject or escalate, the reviewer or rule that decided, the basis in one or two sentences, and the time.
- correction: a reference to the event it amends and the reason, never an edit in place.
The entity anchor is the field most often weakened. A trail that stores only a trading name cannot prove the check concerned the right company, which is why identifier matching belongs in the record and not only in the lookup. Dates need the same care: a register's last-updated date and your retrieval time answer different questions, as our article on company registry data freshness explains.
This record is about one check. The question of which documents and checks a supplier file should hold overall is covered in the supplier onboarding evidence checklist; the two fit together, with each checklist item pointing to the check events that support it.
Separate provider fields from your own
Link to what the provider gives you and add your own fields around it. Do not copy provider fields under new names, and do not let your annotations look as if a source returned them.
On the Apiosk side, the company verification check takes a company name or registration number and a country and returns the legal name, number and registered address, status and registration date, and the directors on file. The Apiosk page for AI agents states that each result names its sources and that every run and its cost stays in the account history, and that requests above a connection's spending limit are refused before charging. The agent contract published in Apiosk's llms.txt describes a client-supplied request_id, a quote with quote_ref, max_total_atomic as the cost ceiling and expires_at, an idempotency_key on paid actions, and the actual charge read back from the task. Those are values your trail can reference directly in scope_and_approval, source_call and charge.
The question, the reviewer, the decision and its basis are yours. No provider can record why your team accepted a match, and a trail that implies otherwise misleads the next reader. Treat the check_id as your key and store provider identifiers alongside it, so a run can be found in either system.
Failure modes the trail has to show
The trail earns its keep in the cases where a check did not go cleanly. Each of these should leave a distinct, readable event.
- Retries. A timeout followed by a success is two attempts under one check and one idempotency key. Recording only the success hides that the first call may also have been processed, which matters when calls are paid.
- No record found. "The register returned no record for this number" is a result, not an error. Store it with the query sent, because a typo in the number produces the same response.
- Partial results. If one source answered and another failed, the result event should say which, rather than presenting the answered part as the whole check.
- Expired approval. A quote with an expiry time cannot authorise a run after it. Log the refusal and the new approval as separate events.
- Silent re-runs. A scheduled re-check must write its own events. Overwriting the onboarding result with the latest run destroys the evidence of what was known when the decision was made.
- Agent-made decisions. If an agent applied a rule, record the rule and its version as the decider. If the decision needed judgement, the trail should show a person made it.
When not to go further: a trail cannot make a weak check strong. If the source does not cover the jurisdiction, or the entity anchor was never confirmed, the trail will faithfully record an inconclusive check. That is its job.
Retention and personal data
Set the retention period from your obligations, write the basis into the policy, and keep the trail no larger than it needs to be. Both halves of that sentence come from law, not preference.
For regulated firms in the UK, regulation 40 of the Money Laundering Regulations 2017 requires copies of customer due diligence documents and information, and records sufficient to reconstruct transactions, to be kept for five years from the end of the business relationship or the completion of an occasional transaction. Whether that applies to you is a question for your compliance function.
Company checks also contain personal data, most obviously director names. Article 5 of the GDPR requires personal data to be "limited to what is necessary" for the purpose and kept identifiable "for no longer than is necessary", and makes the controller responsible for being able to demonstrate compliance. In practice that argues for storing the fields you relied on plus a response hash, rather than full payloads by default, and for deleting on a schedule once the retention basis ends.
Where Apiosk fits: run the check through company verification and link its sources, run and cost into your own events. For volume or contract questions, contact the Apiosk team.
This article was prepared with AI assistance using the linked legislation.gov.uk and EUR-Lex texts and the current Apiosk product pages. It is not legal advice.
Frequently asked questions
What is the minimum an audit trail for a company check should contain?
The question asked, the entity anchor used, the approved scope and cost, each source call with its source and retrieval time, the result as returned and the reviewer decision with its basis. If any of these is missing, a later reader cannot tell whether a different outcome came from a different company, a different source or a different judgement.
Should I store the full source response or just the verdict?
Store enough to show what the source said, and keep the verdict separate. For registry fields such as legal name, status and number, the returned values are usually small enough to keep. For responses with personal data, consider keeping the fields you relied on plus a hash of the full response, and justify anything more under your retention policy.
How should retries appear in the audit trail?
As additional attempts under the same check, not as new checks. Reuse the same idempotency key for the same paid action, record each attempt with its outcome and time, and mark which attempt produced the result. A timeout followed by a success is two events, not one silent success.
How long should company check records be kept?
That depends on your obligations, which your compliance function should set. For regulated firms in the UK, regulation 40 of the Money Laundering Regulations 2017 sets a five-year period after the relationship ends or the occasional transaction completes. GDPR's storage limitation principle means personal data in the trail should not be kept longer than the purpose requires.
