All briefings

Parcel Audit / Data model

How to prepare shipment data for an audit

A minimal, reliable data model for linking invoice, shipment and agreement—without unnecessary customer data.

Written by

Elias Aral

Founder, MarginMine

20 July 2026·4 min read

Core thesis

Good audit data is not perfect. It has stable references, documented effective dates and a clear distinction between required and merely available fields.

SHIPMENT_ID

MM-84417

Operational record

INVOICE_REF

INV-04-118

Invoice line

99.4% linked through approved reference fields
01

1. Start with the audit decision

Before exporting files, define the decision each control should make. A base-rate check needs different fields from a return audit. Exporting every available CRM and address field increases privacy and security risk without automatically improving the calculation.

For each rule, document required inputs and expected output. A base-rate check commonly needs shipment reference, carrier, service, shipping date, country or zone, weight and the applicable rate version. Names, email addresses and street lines can often stay out.

02

2. A stable key matters more than a beautiful export

The most important value links invoice line and shipment. It may be a tracking number, internal shipment ID or negotiated reference. It must share the same format in both files and must not be converted into scientific notation or rounded by spreadsheet software.

Store identifiers as text, document leading zeros and measure uniqueness. If one physical event can create multiple labels, add a higher-level fulfillment or order reference. That explains multiple events without prematurely classifying them as duplicate charges.

  • Export IDs as text
  • Preserve leading zeros
  • Measure uniqueness and missing values
  • Model physical movement and label separately
03

3. Make time and validity explicit

Invoice date, ship date, service date and scan time are not necessarily identical. The audit must know which date selects the rate version and which timestamp governs an operational event. Time zone, format and meaning belong in the data dictionary.

Rate cards should never arrive only as current.xlsx. Each version needs an effective-from date, optional effective-to date and unique identifier. Mid-month changes must remain visible; otherwise a correct new rule can look like a historical error.

04

4. Normalize dimensions, weight and units

Keep the raw and normalized values separately. 1,500 grams should not silently become 1.5 without a unit. The same applies to centimeters, millimeters and inches. Dimensional-weight and girth calculations also require the contractual formula and rounding rule.

Document source, unit and measurement type for every field: declared, warehouse or carrier measurement. If several values exist, preserve them as separate time-stamped observations rather than overwriting one with another.

05

5. Exclude personal fields deliberately

Data minimization requires personal data to be limited to what is necessary. Country, postal code or a derived zone is enough for many Parcel Audit rules. Customer names, email, phone and full street address are often unnecessary for the first scan.

Pseudonymization does not mean deleting useful operational IDs. Internal shipment references must remain so invoices and operations can be linked. Use an allowlist of audit fields, an explicit denylist of personal fields and documented transformations before transfer.

NoteData minimization is a technical design decision, not a sentence added after upload.

06

6. Produce a data-profile report before upload

A short profile should show row count, period, missing values, unique keys, duplicate IDs, ranges, currencies and unknown services. These metrics do not prove billing errors; they show whether the planned controls can run.

Include a data dictionary with field name, meaning, source, unit and example. Three representative rows are often more useful than an ERP screenshot. Full reconstruction should begin only after join rate and field semantics are understood.

  • Invoice-to-shipment join rate
  • Missing required fields
  • Currency and unit mix
  • Rate version by shipping date
  • Existing credit notes

Sources & further reading

Primary sources instead of invented authority.

Carrier material changes. A real audit must always use the specific agreement and documents effective on the service date.