Generic provider income CSV contract This is the application's generic contract, not a provider-specific format. Replace example identifiers with actual provider/policy mappings. UTF-8 (optional BOM), quoted CSV, LF or CRLF, at most 1 MiB and 5,000 data rows. Each header below must occur exactly once; header order may vary. provider_code: non-empty provider identifier, at most 300 characters. line_id: non-empty unique line identifier within that provider, at most 300 characters. policy_ref: the exact linked income policy reference, at most 300 characters. period_start / period_end: real calendar dates in YYYY-MM-DD form; end >= start. fee_type: initial, ongoing, ad_hoc, commission_initial, commission_renewal, clawback. currency: the declared supported currency code, such as GBP. gross / net / vat: signed decimal text with at most 16 whole digits and up to two decimal places; no exponent or thousands separator. booked_on: real calendar date in YYYY-MM-DD form. reverses_line_id: empty for a positive receipt; the original provider line ID for a negative refund. Gross must equal net plus VAT. Amount components must have consistent signs. Zero gross is rejected. A refund cannot name itself as its original line. Identifiers preserve case after outer whitespace is trimmed. The same provider/line identity with conflicting values is rejected; identical replay adds no new money. Unknown references remain row exceptions. Valid source evidence can require allocation review. Received fees depend on the expected fee period's retained recognition basis. A fee receipt does not confirm service delivery and this import initiates no payment or refund.