# Kanagu > Pay-per-call developer APIs. REST and MCP share 10 trial calls per IP per UTC day. - [API documentation](https://kanagu.dev/docs) - [OpenAPI 3.1](https://api.kanagu.dev/openapi.json) - [Full reference](https://kanagu.dev/llms-full.txt) - [MCP (Streamable HTTP)](https://api.kanagu.dev/mcp) ## Operations - `POST https://api.kanagu.dev/v1/calendar/business-days`: Count business days in [startDate, endDate) or add signed business days from startDate. Weekends and observed public holidays are excluded. ($0.001/call) - `POST https://api.kanagu.dev/v1/calendar/deadline`: Calculate a deadline in local business days or hours and trace skipped dates. ($0.001/call) - `POST https://api.kanagu.dev/v1/email/parse`: Parse an RFC 5322 email into headers, addresses, MIME bodies, attachments, and thread IDs. ($0.03/call) - `POST https://api.kanagu.dev/v1/csv/check`: Check a CSV against a target schema and return diagnostics and a normalized preview. ($0.03/call) - `POST https://api.kanagu.dev/v1/vat/verify`: Verify an EU or UK VAT number and return audit evidence. Upstream failures are unbilled. ($0.03/call) - `POST https://api.kanagu.dev/v1/vat/audit`: Retrieve completed VAT verifications and their consultation numbers for your account. ($0.03/call) - `POST https://api.kanagu.dev/v1/screenshot/diff`: Compare public web pages or a stored screenshot baseline at a fixed viewport. ($0.01/call) - `POST https://api.kanagu.dev/v1/einvoice/generate`: Generate a KoSIT-validated XRechnung UBL or CII invoice, or a ZUGFeRD PDF/A-3. ($0.02/call) - `POST https://api.kanagu.dev/v1/einvoice/validate`: Validate an invoice XML or a hybrid invoice PDF's XML against KoSIT rules. ($0.02/call) - `POST https://api.kanagu.dev/v1/einvoice/parse`: Extract invoice parties, references, dates, amounts, and lines from XML or hybrid PDF. ($0.02/call) - `POST https://api.kanagu.dev/v1/bankstatement/extract`: Extract and reconcile transactions from text PDFs for Wells Fargo Advantage Checking, Chase checking and Barclays bank accounts. ($0.12/page) - `POST https://api.kanagu.dev/v1/ppwr/assess`: Check reported PPWR metals, PFAS, recyclability grades, recycled content, empty space and Annex VIII fields for up to 50 packaging types. List further obligations and evidence. ($0.5/packaging type) - `POST https://api.kanagu.dev/v1/xbrl/asof`: Get SEC EDGAR XBRL values as of an inclusive filing date, with later value changes and source filings. Covers entity-wide facts from standard taxonomies. ($0.08/call) - `POST https://api.kanagu.dev/v1/xbrl/history`: Trace every SEC EDGAR filing version of one XBRL concept by exact fiscal dates and unit, including unchanged repeats and source filings. ($0.08/call) - `POST https://api.kanagu.dev/v1/epr/us`: Calculate packaging kilograms by official OR, CO or CA category, or MD, MN or WA 2025 interim category. Automatic classification covers qualifying corrugated boxes, paperboard cartons, kraft fill and shipping mailers, PE mailers and bubble wrap, resin-marked PET and HDPE bottles or jars, qualifying HDPE pails in CA, PP tubs, glass bottles and jars outside deposit programs, aluminum or steel cans, molded pulp and EPS cushioning. Coverage and required BOM facts vary by state. Other components need a verified categoryByState or return needs_review with candidate categories. Charges $0.50 per state CSV produced. ($0.5/report) - `POST https://api.kanagu.dev/v1/epr/de`: Calculate German packaging kilograms by VerpackG or VerpackDG material type for one LUCID system operator and period. Returns an audit trail, a CSV for mapped weights and LUCID XML for complete reports. Charges $0.50 per period when a file is produced. ($0.5/report) - `POST https://api.kanagu.dev/v1/carf/generate`: Build UK HMRC CARF XML v1.5 from reportable users and transaction totals. Up to 10,000 users. ($0.1/user) - `POST https://api.kanagu.dev/v1/carf/correct`: Build a UK CARF XML v1.5 correction from prior accepted XML and replacement or deletion records. Up to 10,000 users. ($0.1/user) - `POST https://api.kanagu.dev/v1/carf/validate`: Check UK CARF XML v1.5 against the OECD XSD, HMRC file rules and supported TIN formats. Billed per user processed after XSD validation, up to 10,000. ($0.1/user) - `POST https://api.kanagu.dev/v1/cpsc/check`: Check up to 200 CPC/GCC certificates against a SKU ledger and shipment lines. Prepare Full PGA fields and Product Registry v3 CSV rows with Reference PGA fields for use after certification (CPSC CATAIR v2.5). ($0.35/certificate) - `POST https://api.kanagu.dev/v1/pfas/report`: Assess Minnesota PFAS reporting and Maine CUU notifications. Prepare PRISM or MELS entries, determine MDA registration and licensing statements and deadlines, and flag evidence gaps. Charges apply to required, not required, and not yet required determinations. Up to 500 product-state pairs. ($0.25/product-state pair) - `POST https://api.kanagu.dev/v1/rentroll/reconcile`: Reconcile a property rent roll of up to 500 units against one T12 statement. Accepts CSV, XLSX or JSON and returns occupancy, lease expirations, and discrepancies with source rows. ($0.5/reconciliation) - `POST https://api.kanagu.dev/v1/demurrage/audit`: Audit up to 100 U.S. demurrage or detention invoices against 46 CFR Part 541 (2026-11-20), recalculate charges and draft disputes. ($0.5/invoice) - `POST https://api.kanagu.dev/v1/payapp/check`: Reconcile an AIA G702/G703 (1992) pay application from one workbook or a JSON summary with up to 500 JSON, CSV, or XLSX line items per period. PDF is unsupported. ($0.5/application) - `POST https://api.kanagu.dev/v1/otapayout/reconcile`: Reconcile Airbnb Earnings, Booking.com Reconciliation API v1, and Vrbo payout CSVs with bank deposits. Confirm only completed bank credits from a documented OTA payer with an exact transfer reference and agreeing currency, amount, and date. Maximum 100 distinct reservations per call. ($0.3/100 reservations) - `POST https://api.kanagu.dev/v1/frereporting/generate`: Generate DGFiP v3.2 Flux 10 XML for B2C, cross-border B2B and service receipts. The minimum charge covers 100 input rows. ($0.1/100 lines) - `POST https://api.kanagu.dev/v1/frereporting/validate`: Check DGFiP v3.2 Flux 10 XML against the published XSD and reporting rules. The minimum charge covers 100 reported rows. ($0.1/100 lines) ## calendar.business-days Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "country": { "type": "string", "enum": [ "AD", "AE", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "IC", "ID", "IE", "IL", "IM", "IN", "IR", "IS", "IT", "JE", "JM", "JP", "KE", "KM", "KN", "KR", "KY", "KZ", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MK", "ML", "MQ", "MR", "MS", "MT", "MU", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NZ", "PA", "PE", "PF", "PH", "PK", "PL", "PM", "PR", "PT", "PY", "RE", "RO", "RS", "RU", "RW", "SA", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SZ", "TC", "TD", "TG", "TH", "TN", "TO", "TR", "TT", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "XK", "YT", "ZA", "ZM", "ZW" ], "description": "Country or territory code. GB defaults to England and Wales." }, "subdivision": { "description": "date-holidays subdivision code, e.g. CA or US-CA, BY or DE-BY, SCT or GB-SCT.", "type": "string", "maxLength": 24, "pattern": "^[A-Z0-9]+(?:-[A-Z0-9]+){0,2}$" }, "startDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Calendar date (YYYY-MM-DD), 2020–2035." }, "endDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Exclusive end date (2020–2035)." } }, "required": [ "country", "startDate", "endDate" ], "additionalProperties": false }, { "type": "object", "properties": { "country": { "type": "string", "enum": [ "AD", "AE", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "IC", "ID", "IE", "IL", "IM", "IN", "IR", "IS", "IT", "JE", "JM", "JP", "KE", "KM", "KN", "KR", "KY", "KZ", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MK", "ML", "MQ", "MR", "MS", "MT", "MU", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NZ", "PA", "PE", "PF", "PH", "PK", "PL", "PM", "PR", "PT", "PY", "RE", "RO", "RS", "RU", "RW", "SA", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SZ", "TC", "TD", "TG", "TH", "TN", "TO", "TR", "TT", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "XK", "YT", "ZA", "ZM", "ZW" ], "description": "Country or territory code. GB defaults to England and Wales." }, "subdivision": { "description": "date-holidays subdivision code, e.g. CA or US-CA, BY or DE-BY, SCT or GB-SCT.", "type": "string", "maxLength": 24, "pattern": "^[A-Z0-9]+(?:-[A-Z0-9]+){0,2}$" }, "startDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Calendar date (YYYY-MM-DD), 2020–2035." }, "days": { "type": "integer", "minimum": -4000, "maximum": 4000, "description": "Signed number of business days. The start date is skipped." } }, "required": [ "country", "startDate", "days" ], "additionalProperties": false } ], "examples": [ { "country": "US", "startDate": "2026-11-25", "days": 2 } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "country": { "type": "string", "enum": [ "AD", "AE", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "IC", "ID", "IE", "IL", "IM", "IN", "IR", "IS", "IT", "JE", "JM", "JP", "KE", "KM", "KN", "KR", "KY", "KZ", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MK", "ML", "MQ", "MR", "MS", "MT", "MU", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NZ", "PA", "PE", "PF", "PH", "PK", "PL", "PM", "PR", "PT", "PY", "RE", "RO", "RS", "RU", "RW", "SA", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SZ", "TC", "TD", "TG", "TH", "TN", "TO", "TR", "TT", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "XK", "YT", "ZA", "ZM", "ZW" ], "description": "Country or territory code. GB defaults to England and Wales." }, "businessDays": { "description": "Count mode result.", "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "date": { "description": "Add mode result.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "country" ], "additionalProperties": false } ``` ## calendar.deadline Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "country": { "type": "string", "enum": [ "AD", "AE", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "IC", "ID", "IE", "IL", "IM", "IN", "IR", "IS", "IT", "JE", "JM", "JP", "KE", "KM", "KN", "KR", "KY", "KZ", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MK", "ML", "MQ", "MR", "MS", "MT", "MU", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NZ", "PA", "PE", "PF", "PH", "PK", "PL", "PM", "PR", "PT", "PY", "RE", "RO", "RS", "RU", "RW", "SA", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SZ", "TC", "TD", "TG", "TH", "TN", "TO", "TR", "TT", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "XK", "YT", "ZA", "ZM", "ZW" ], "description": "Country or territory code. GB defaults to England and Wales." }, "subdivision": { "description": "date-holidays subdivision code, e.g. CA or US-CA, BY or DE-BY, SCT or GB-SCT.", "type": "string", "maxLength": 24, "pattern": "^[A-Z0-9]+(?:-[A-Z0-9]+){0,2}$" }, "start": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$", "description": "Start instant with a UTC offset." }, "timezone": { "type": "string", "minLength": 1, "maxLength": 64, "description": "IANA time zone, e.g. America/New_York." }, "cutoff": { "type": "string", "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$", "description": "Daily closing time in the selected time zone (HH:mm)." }, "weekend": { "default": [ 6, 7 ], "description": "Closed weekdays, expressed as ISO numbers (1 = Monday).", "maxItems": 6, "type": "array", "items": { "type": "integer", "minimum": 1, "maximum": 7 } }, "closures": { "default": [], "description": "Additional closed dates in the selected time zone.", "maxItems": 366, "type": "array", "items": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "days": { "type": "integer", "minimum": 0, "maximum": 4000, "description": "Business days after the first open day before cutoff. Zero uses that day's cutoff." } }, "required": [ "country", "start", "timezone", "cutoff", "days" ], "additionalProperties": false }, { "type": "object", "properties": { "country": { "type": "string", "enum": [ "AD", "AE", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "IC", "ID", "IE", "IL", "IM", "IN", "IR", "IS", "IT", "JE", "JM", "JP", "KE", "KM", "KN", "KR", "KY", "KZ", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MK", "ML", "MQ", "MR", "MS", "MT", "MU", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NZ", "PA", "PE", "PF", "PH", "PK", "PL", "PM", "PR", "PT", "PY", "RE", "RO", "RS", "RU", "RW", "SA", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SZ", "TC", "TD", "TG", "TH", "TN", "TO", "TR", "TT", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "XK", "YT", "ZA", "ZM", "ZW" ], "description": "Country or territory code. GB defaults to England and Wales." }, "subdivision": { "description": "date-holidays subdivision code, e.g. CA or US-CA, BY or DE-BY, SCT or GB-SCT.", "type": "string", "maxLength": 24, "pattern": "^[A-Z0-9]+(?:-[A-Z0-9]+){0,2}$" }, "start": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$", "description": "Start instant with a UTC offset." }, "timezone": { "type": "string", "minLength": 1, "maxLength": 64, "description": "IANA time zone, e.g. America/New_York." }, "cutoff": { "type": "string", "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$", "description": "Daily closing time in the selected time zone (HH:mm)." }, "weekend": { "default": [ 6, 7 ], "description": "Closed weekdays, expressed as ISO numbers (1 = Monday).", "maxItems": 6, "type": "array", "items": { "type": "integer", "minimum": 1, "maximum": 7 } }, "closures": { "default": [], "description": "Additional closed dates in the selected time zone.", "maxItems": 366, "type": "array", "items": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "hours": { "type": "number", "minimum": 0, "maximum": 8760, "description": "Elapsed hours during business windows, rounded to the nearest millisecond." }, "opensAt": { "default": "09:00", "description": "Daily opening time (HH:mm), before cutoff.", "type": "string", "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$" } }, "required": [ "country", "start", "timezone", "cutoff", "hours" ], "additionalProperties": false } ], "examples": [ { "country": "US", "subdivision": "US-NY", "start": "2026-11-25T21:30:00Z", "hours": 2, "timezone": "America/New_York", "cutoff": "17:00", "closures": [ "2026-11-27" ] } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "due": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$", "description": "Deadline as a UTC instant." }, "skipped": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reasons": { "type": "array", "items": { "type": "string", "enum": [ "weekend", "public_holiday", "custom_closure", "cutoff_passed" ] } } }, "required": [ "date", "reasons" ], "additionalProperties": false } } }, "required": [ "due", "skipped" ], "additionalProperties": false } ``` ## email.parse Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "includeContent": { "default": false, "description": "Include decoded attachment bytes as Base64.", "type": "boolean" }, "text": { "type": "string", "minLength": 1, "maxLength": 1048576, "description": "UTF-8 email, up to 1 MiB." } }, "required": [ "text" ], "additionalProperties": false }, { "type": "object", "properties": { "includeContent": { "default": false, "description": "Include decoded attachment bytes as Base64.", "type": "boolean" }, "base64": { "type": "string", "minLength": 1, "maxLength": 1398104, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Raw email bytes as Base64, up to 1 MiB decoded. Use for legacy charsets." } }, "required": [ "base64" ], "additionalProperties": false } ], "examples": [ { "text": "From: Maya Chen \r\nTo: Dev Team \r\nSubject: Re: Import window for December\r\nDate: Mon, 23 Nov 2026 09:30:00 -0500\r\nMessage-ID: \r\nIn-Reply-To: \r\nReferences: \r\nMIME-Version: 1.0\r\nContent-Type: text/plain; charset=utf-8\r\n\r\nThe next import will start at 10:00 a.m. Eastern on December 1." } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "headers": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "originalKey": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "originalKey", "value" ], "additionalProperties": false } }, "addresses": { "type": "object", "properties": { "from": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string" }, "group": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false } } }, "required": [ "name", "group" ], "additionalProperties": false } ] } }, "sender": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string" }, "group": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false } } }, "required": [ "name", "group" ], "additionalProperties": false } ] }, "replyTo": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string" }, "group": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false } } }, "required": [ "name", "group" ], "additionalProperties": false } ] } }, "to": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string" }, "group": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false } } }, "required": [ "name", "group" ], "additionalProperties": false } ] } }, "cc": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string" }, "group": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false } } }, "required": [ "name", "group" ], "additionalProperties": false } ] } }, "bcc": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string" }, "group": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" } }, "required": [ "name", "address" ], "additionalProperties": false } } }, "required": [ "name", "group" ], "additionalProperties": false } ] } }, "returnPath": { "type": "string" }, "deliveredTo": { "type": "string" } }, "required": [ "from", "replyTo", "to", "cc", "bcc" ], "additionalProperties": false }, "subject": { "type": "string" }, "date": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "dateRaw": { "type": "string" }, "text": { "type": "string" }, "html": { "description": "Original decoded HTML. Treat as untrusted email content.", "type": "string" }, "attachments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "type": { "type": "string" }, "size": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "sha256": { "type": "string" }, "inline": { "type": "boolean" }, "cid": { "type": "string" }, "contentBase64": { "type": "string" } }, "required": [ "name", "type", "size", "sha256", "inline" ], "additionalProperties": false }, "description": "Attachments at this message level. Parse an attached .eml to inspect its contents." }, "inlineImages": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": "array", "items": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "description": "Content-ID without angle brackets mapped to zero-based attachment indexes." }, "thread": { "type": "object", "properties": { "messageId": { "type": "string" }, "inReplyTo": { "type": "array", "items": { "type": "string" } }, "references": { "type": "array", "items": { "type": "string" } } }, "required": [ "inReplyTo", "references" ], "additionalProperties": false } }, "required": [ "headers", "addresses", "attachments", "inlineImages", "thread" ], "additionalProperties": false } ``` ## csv.check Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "columns": { "minItems": 1, "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 64 }, "type": { "type": "string", "enum": [ "string", "integer", "number", "boolean", "date" ] }, "required": { "default": false, "type": "boolean" }, "enum": { "description": "Allowed trimmed source values.", "maxItems": 200, "type": "array", "items": { "type": "string" } }, "regex": { "description": "RE2 pattern searched within the trimmed source value.", "type": "string", "maxLength": 256 }, "locale": { "description": "BCP 47 number or date locale, default en-US.", "type": "string", "maxLength": 40 }, "dateOrder": { "description": "Override date component order.", "type": "string", "enum": [ "YMD", "DMY", "MDY" ] } }, "required": [ "name", "type" ], "additionalProperties": false }, "description": "Target columns, in source order for headerless files." }, "delimiter": { "description": "Auto-detect by default.", "type": "string", "enum": [ ",", ";", "\t", "|" ] }, "encoding": { "description": "Raw file encoding. Auto-detects BOM, UTF-8, and Windows-1252.", "type": "string", "enum": [ "utf-8", "utf-16le", "utf-16be", "windows-1252", "shift_jis", "iso-2022-jp" ] }, "header": { "description": "Auto-detect by matching names in the first record.", "type": "boolean" }, "text": { "type": "string", "minLength": 1, "maxLength": 5242880, "description": "UTF-8 CSV text, at most 5 MiB." } }, "required": [ "columns", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "columns": { "minItems": 1, "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 64 }, "type": { "type": "string", "enum": [ "string", "integer", "number", "boolean", "date" ] }, "required": { "default": false, "type": "boolean" }, "enum": { "description": "Allowed trimmed source values.", "maxItems": 200, "type": "array", "items": { "type": "string" } }, "regex": { "description": "RE2 pattern searched within the trimmed source value.", "type": "string", "maxLength": 256 }, "locale": { "description": "BCP 47 number or date locale, default en-US.", "type": "string", "maxLength": 40 }, "dateOrder": { "description": "Override date component order.", "type": "string", "enum": [ "YMD", "DMY", "MDY" ] } }, "required": [ "name", "type" ], "additionalProperties": false }, "description": "Target columns, in source order for headerless files." }, "delimiter": { "description": "Auto-detect by default.", "type": "string", "enum": [ ",", ";", "\t", "|" ] }, "encoding": { "description": "Raw file encoding. Auto-detects BOM, UTF-8, and Windows-1252.", "type": "string", "enum": [ "utf-8", "utf-16le", "utf-16be", "windows-1252", "shift_jis", "iso-2022-jp" ] }, "header": { "description": "Auto-detect by matching names in the first record.", "type": "boolean" }, "base64": { "type": "string", "minLength": 1, "maxLength": 6990508, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "File bytes as Base64, at most 5 MiB decoded." } }, "required": [ "columns", "base64" ], "additionalProperties": false } ], "examples": [ { "text": "invoice_id;issued_on;amount;status\r\nINV-00812;21.11.2026;1.242,50;paid\r\nINV-00813;31.11.2026;200,00;open\r\nINV-00814;23.11.2026;12,1,5;unknown", "columns": [ { "name": "invoice_id", "type": "string", "required": true, "regex": "^INV-[0-9]{5}$" }, { "name": "issued_on", "type": "date", "locale": "de-DE", "required": true }, { "name": "amount", "type": "number", "locale": "de-DE", "required": true }, { "name": "status", "type": "string", "enum": [ "open", "paid" ] } ] } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean" }, "encoding": { "type": "string", "enum": [ "utf-8", "utf-16le", "utf-16be", "windows-1252", "shift_jis", "iso-2022-jp" ] }, "delimiter": { "type": "string", "enum": [ ",", ";", "\t", "|" ] }, "header": { "type": "boolean" }, "rows": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "description": "Data records processed, excluding the header." }, "diagnostics": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "required", "not_in_enum", "regex_mismatch", "invalid_type", "missing_column", "duplicate_column", "unexpected_column", "extra_cells", "empty_csv" ] }, "column": { "type": "string" }, "sourceColumn": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "rows": { "type": "array", "items": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "description": "One-based CSV record numbers, including the header when present." } }, "required": [ "code", "rows" ], "additionalProperties": false } }, "parseError": { "type": "object", "properties": { "code": { "type": "string" }, "line": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "code", "line" ], "additionalProperties": false }, "preview": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "values": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": [ "string", "number", "boolean", "null" ] } } }, "required": [ "row", "values" ], "additionalProperties": false }, "description": "The first ten data records. String previews are capped at 64 characters." } }, "required": [ "valid", "encoding", "delimiter", "header", "rows", "diagnostics", "preview" ], "additionalProperties": false } ``` ## vat.verify Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "vatNumber": { "type": "string", "minLength": 3, "maxLength": 40, "description": "VAT number with country prefix, e.g. DE143454214." }, "requesterVat": { "description": "Your VAT number, to request a consultation ID.", "type": "string", "minLength": 3, "maxLength": 40 } }, "required": [ "vatNumber" ], "additionalProperties": false, "examples": [ { "vatNumber": "DE143454214" } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "verificationId": { "description": "Audit ID for an authenticated verification.", "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "vatNumber": { "type": "string" }, "country": { "type": "string", "enum": [ "AT", "BE", "BG", "CY", "CZ", "DE", "DK", "EE", "EL", "ES", "FI", "FR", "GB", "HR", "HU", "IE", "IT", "LT", "LU", "LV", "MT", "NL", "PL", "PT", "RO", "SE", "SI", "SK", "XI" ] }, "valid": { "type": "boolean" }, "source": { "type": "string", "enum": [ "checksum", "vies", "hmrc" ] }, "checkedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "upstreamDate": { "type": "string" }, "name": { "type": "string" }, "address": { "type": "string" }, "consultationId": { "type": "string" }, "rawStatus": { "type": "string" } }, "required": [ "vatNumber", "country", "valid", "source", "checkedAt", "rawStatus" ], "additionalProperties": false } ``` ## vat.audit Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "verificationId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "verificationId" ], "additionalProperties": false }, { "type": "object", "properties": { "limit": { "default": 10, "type": "integer", "minimum": 1, "maximum": 100 } }, "additionalProperties": false } ], "examples": [ { "limit": 5 } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "records": { "type": "array", "items": { "type": "object", "properties": { "verificationId": { "description": "Audit ID for an authenticated verification.", "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "vatNumber": { "type": "string" }, "country": { "type": "string", "enum": [ "AT", "BE", "BG", "CY", "CZ", "DE", "DK", "EE", "EL", "ES", "FI", "FR", "GB", "HR", "HU", "IE", "IT", "LT", "LU", "LV", "MT", "NL", "PL", "PT", "RO", "SE", "SI", "SK", "XI" ] }, "valid": { "type": "boolean" }, "source": { "type": "string", "enum": [ "checksum", "vies", "hmrc" ] }, "checkedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "upstreamDate": { "type": "string" }, "name": { "type": "string" }, "address": { "type": "string" }, "consultationId": { "type": "string" }, "rawStatus": { "type": "string" } }, "required": [ "vatNumber", "country", "valid", "source", "checkedAt", "rawStatus" ], "additionalProperties": false } } }, "required": [ "records" ], "additionalProperties": false } ``` ## screenshot.diff Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "url": { "type": "string", "maxLength": 2048, "format": "uri" }, "viewport": { "default": { "width": 1280, "height": 720 }, "type": "object", "properties": { "width": { "type": "integer", "minimum": 320, "maximum": 1600 }, "height": { "type": "integer", "minimum": 240, "maximum": 1200 } }, "required": [ "width", "height" ], "additionalProperties": false }, "waitUntil": { "default": "domcontentloaded", "type": "string", "enum": [ "load", "domcontentloaded", "networkidle0", "networkidle2" ] }, "waitForSelector": { "type": "string", "minLength": 1, "maxLength": 256 }, "waitMs": { "default": 200, "type": "integer", "minimum": 0, "maximum": 2000 }, "maskSelectors": { "default": [], "maxItems": 20, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 256 } }, "threshold": { "default": 0.1, "type": "number", "minimum": 0, "maximum": 0.5 }, "compareToUrl": { "type": "string", "maxLength": 2048, "format": "uri" } }, "required": [ "url", "compareToUrl" ], "additionalProperties": false }, { "type": "object", "properties": { "url": { "type": "string", "maxLength": 2048, "format": "uri" }, "viewport": { "default": { "width": 1280, "height": 720 }, "type": "object", "properties": { "width": { "type": "integer", "minimum": 320, "maximum": 1600 }, "height": { "type": "integer", "minimum": 240, "maximum": 1200 } }, "required": [ "width", "height" ], "additionalProperties": false }, "waitUntil": { "default": "domcontentloaded", "type": "string", "enum": [ "load", "domcontentloaded", "networkidle0", "networkidle2" ] }, "waitForSelector": { "type": "string", "minLength": 1, "maxLength": 256 }, "waitMs": { "default": 200, "type": "integer", "minimum": 0, "maximum": 2000 }, "maskSelectors": { "default": [], "maxItems": 20, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 256 } }, "threshold": { "default": 0.1, "type": "number", "minimum": 0, "maximum": 0.5 }, "baselineId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", "description": "ID of a before or after capture from a prior comparison." } }, "required": [ "url", "baselineId" ], "additionalProperties": false } ], "examples": [ { "url": "https://www.iana.org/domains/reserved", "compareToUrl": "https://www.rfc-editor.org/about/", "viewport": { "width": 1024, "height": 768 }, "waitUntil": "load", "waitForSelector": "h1" } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "changedPixels": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "diffRatio": { "type": "number" }, "width": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "height": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "rectangles": { "type": "array", "items": { "type": "object", "properties": { "x": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "y": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "width": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "height": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "x", "y", "width", "height" ], "additionalProperties": false } }, "before": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "url": { "type": "string", "format": "uri" }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": [ "id", "url", "expiresAt" ], "additionalProperties": false }, "after": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "url": { "type": "string", "format": "uri" }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": [ "id", "url", "expiresAt" ], "additionalProperties": false }, "diff": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "url": { "type": "string", "format": "uri" }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": [ "id", "url", "expiresAt" ], "additionalProperties": false } }, "required": [ "changedPixels", "diffRatio", "width", "height", "rectangles", "before", "after", "diff" ], "additionalProperties": false } ``` ## einvoice.generate Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "format": { "type": "string", "enum": [ "ubl", "cii", "zugferd" ] }, "invoiceNumber": { "type": "string", "minLength": 1, "maxLength": 50 }, "issueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "dueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "deliveryDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "currency": { "default": "EUR", "type": "string", "pattern": "^[A-Z]{3}$" }, "buyerReference": { "type": "string", "minLength": 1, "maxLength": 120 }, "seller": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 160 }, "email": { "type": "string", "maxLength": 160, "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 160 }, "city": { "type": "string", "minLength": 1, "maxLength": 100 }, "postalCode": { "type": "string", "minLength": 1, "maxLength": 20 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "vatId": { "type": "string", "pattern": "^[A-Z]{2}[A-Z0-9]{3,16}$" }, "contact": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 120 }, "phone": { "type": "string", "minLength": 1, "maxLength": 60 }, "email": { "type": "string", "maxLength": 160, "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" } }, "required": [ "name", "phone", "email" ], "additionalProperties": false } }, "required": [ "name", "email", "street", "city", "postalCode", "country", "vatId", "contact" ], "additionalProperties": false }, "buyer": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 160 }, "email": { "type": "string", "maxLength": 160, "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 160 }, "city": { "type": "string", "minLength": 1, "maxLength": 100 }, "postalCode": { "type": "string", "minLength": 1, "maxLength": 20 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "vatId": { "type": "string", "pattern": "^[A-Z]{2}[A-Z0-9]{3,16}$" } }, "required": [ "name", "email", "street", "city", "postalCode", "country" ], "additionalProperties": false }, "iban": { "type": "string", "pattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$" }, "lines": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "minLength": 1, "maxLength": 300 }, "quantity": { "type": "string", "pattern": "^\\d{1,8}(?:\\.\\d{1,4})?$" }, "unitPrice": { "type": "string", "pattern": "^\\d{1,8}(?:\\.\\d{1,18})?$", "description": "Net item price per base quantity." }, "baseQuantity": { "description": "Quantity covered by the item price. Defaults to one.", "type": "string", "pattern": "^\\d{1,8}(?:\\.\\d{1,4})?$" }, "baseQuantityUnit": { "description": "Unit of the base quantity. Defaults to the line unit.", "type": "string", "pattern": "^[A-Z0-9]{2,3}$" }, "grossUnitPrice": { "description": "Item price before the item price discount.", "type": "string", "pattern": "^\\d{1,8}(?:\\.\\d{1,18})?$" }, "unitPriceDiscount": { "description": "Discount on the item price per base quantity.", "type": "string", "pattern": "^\\d{1,8}(?:\\.\\d{1,18})?$" }, "unit": { "default": "C62", "type": "string", "pattern": "^[A-Z0-9]{2,3}$" }, "vatRate": { "type": "string", "pattern": "^\\d{1,3}(?:\\.\\d{1,2})?$" } }, "required": [ "description", "quantity", "unitPrice", "vatRate" ], "additionalProperties": false } } }, "required": [ "format", "invoiceNumber", "issueDate", "dueDate", "buyerReference", "seller", "buyer", "iban", "lines" ], "additionalProperties": false, "examples": [ { "format": "ubl", "invoiceNumber": "2026-0417", "issueDate": "2026-11-23", "deliveryDate": "2026-11-20", "dueDate": "2026-12-23", "buyerReference": "90000000-03083-72", "seller": { "name": "Linden Consulting GmbH", "vatId": "DE123456789", "email": "billing@example.com", "street": "Lindenstraße 12", "city": "Berlin", "postalCode": "10117", "country": "DE", "contact": { "name": "Kai Weber", "phone": "+49 30 5550100", "email": "kai@example.com" } }, "buyer": { "name": "Nordhafen Verwaltungs GmbH", "email": "invoices@example.org", "street": "Hafenstraße 8", "city": "Hamburg", "postalCode": "20457", "country": "DE" }, "iban": "DE79000000001234567890", "lines": [ { "description": "Software integration workshop", "quantity": "2", "unitPrice": "475.00", "vatRate": "19" } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "format": { "type": "string", "enum": [ "ubl", "cii", "zugferd" ] }, "xml": { "type": "string" }, "validation": { "type": "object", "properties": { "valid": { "type": "boolean" }, "validator": { "type": "string", "const": "KoSIT 1.6.3 / XRechnung 3.0.2 (2026-08-31)" }, "issues": { "type": "array", "items": { "type": "object", "properties": { "ruleId": { "type": "string" }, "severity": { "type": "string" }, "xpath": { "type": "string" }, "field": { "type": "string" }, "message": { "type": "string" }, "fixHint": { "type": "string" } }, "required": [ "ruleId", "severity", "xpath", "field", "message", "fixHint" ], "additionalProperties": false } } }, "required": [ "valid", "validator", "issues" ], "additionalProperties": false }, "pdfBase64": { "description": "PDF/A-3 for format zugferd", "type": "string", "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$" } }, "required": [ "format", "xml", "validation" ], "additionalProperties": false } ``` ## einvoice.validate Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "xml": { "type": "string", "minLength": 1, "maxLength": 1048576, "description": "Invoice XML text, up to 1 MiB." } }, "required": [ "xml" ], "additionalProperties": false }, { "type": "object", "properties": { "base64": { "type": "string", "minLength": 1, "maxLength": 5592408, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Invoice XML or hybrid PDF, up to 4 MiB before Base64 encoding." } }, "required": [ "base64" ], "additionalProperties": false } ], "examples": [ { "xml": "\n\n urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0urn:fdc:peppol.eu:2017:poacc:billing:01:1.02026-0417\n 2026-11-232026-12-23380\n EUR90000000-03083-72\n \n billing@example.com\n Lindenstraße 12Berlin10117\n DE\n \n DE123456789VAT\n Linden Consulting GmbH\n Kai Weber+49 30 5550100kai@example.com\n \n \n invoices@example.org\n Hafenstraße 8Hamburg20457\n DE\n \n \n Nordhafen Verwaltungs GmbH\n \n \n 2026-11-20\n 58DE79000000001234567890\n 180.50\n 950.00180.50S19.00VAT\n \n 950.00950.00\n 1130.501130.50\n \n 1\n 2\n 950.00\n Software integration workshopS19.00VAT\n 475.00\n \n \n \n \n" } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean" }, "validator": { "type": "string", "const": "KoSIT 1.6.3 / XRechnung 3.0.2 (2026-08-31)" }, "issues": { "type": "array", "items": { "type": "object", "properties": { "ruleId": { "type": "string" }, "severity": { "type": "string" }, "xpath": { "type": "string" }, "field": { "type": "string" }, "message": { "type": "string" }, "fixHint": { "type": "string" } }, "required": [ "ruleId", "severity", "xpath", "field", "message", "fixHint" ], "additionalProperties": false } } }, "required": [ "valid", "validator", "issues" ], "additionalProperties": false } ``` ## einvoice.parse Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "xml": { "type": "string", "minLength": 1, "maxLength": 1048576, "description": "Invoice XML text, up to 1 MiB." } }, "required": [ "xml" ], "additionalProperties": false }, { "type": "object", "properties": { "base64": { "type": "string", "minLength": 1, "maxLength": 5592408, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Invoice XML or hybrid PDF, up to 4 MiB before Base64 encoding." } }, "required": [ "base64" ], "additionalProperties": false } ], "examples": [ { "xml": "\n\n urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0urn:fdc:peppol.eu:2017:poacc:billing:01:1.02026-0417\n 2026-11-232026-12-23380\n EUR90000000-03083-72\n \n billing@example.com\n Lindenstraße 12Berlin10117\n DE\n \n DE123456789VAT\n Linden Consulting GmbH\n Kai Weber+49 30 5550100kai@example.com\n \n \n invoices@example.org\n Hafenstraße 8Hamburg20457\n DE\n \n \n Nordhafen Verwaltungs GmbH\n \n \n 2026-11-20\n 58DE79000000001234567890\n 180.50\n 950.00180.50S19.00VAT\n \n 950.00950.00\n 1130.501130.50\n \n 1\n 2\n 950.00\n Software integration workshopS19.00VAT\n 475.00\n \n \n \n \n" } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "format": { "type": "string", "enum": [ "ubl", "cii" ] }, "container": { "type": "string", "enum": [ "xml", "pdf" ] }, "profile": { "type": "string" }, "reference": { "type": "string" }, "invoiceNumber": { "type": "string" }, "issueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "dueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "currency": { "type": "string" }, "seller": { "type": "object", "properties": { "name": { "type": "string" }, "vatId": { "type": "string" }, "electronicAddress": { "type": "string" }, "electronicAddressScheme": { "type": "string" }, "email": { "description": "Contact email address.", "type": "string" }, "address": { "type": "object", "properties": { "street": { "type": "string" }, "city": { "type": "string" }, "postalCode": { "type": "string" }, "country": { "type": "string" } }, "additionalProperties": false }, "taxRegistrationId": { "type": "string" } }, "required": [ "address" ], "additionalProperties": false }, "buyer": { "type": "object", "properties": { "name": { "type": "string" }, "vatId": { "type": "string" }, "electronicAddress": { "type": "string" }, "electronicAddressScheme": { "type": "string" }, "email": { "description": "Contact email address.", "type": "string" }, "address": { "type": "object", "properties": { "street": { "type": "string" }, "city": { "type": "string" }, "postalCode": { "type": "string" }, "country": { "type": "string" } }, "additionalProperties": false } }, "required": [ "address" ], "additionalProperties": false }, "totals": { "type": "object", "properties": { "net": { "type": "string" }, "tax": { "type": "string" }, "gross": { "type": "string" }, "payable": { "type": "string" } }, "additionalProperties": false }, "lines": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "description": { "type": "string" }, "quantity": { "type": "string" }, "unit": { "type": "string" }, "unitPrice": { "type": "string" }, "baseQuantity": { "type": "string" }, "baseQuantityUnit": { "type": "string" }, "grossUnitPrice": { "type": "string" }, "unitPriceDiscount": { "type": "string" }, "net": { "type": "string" }, "vatRate": { "type": "string" } }, "additionalProperties": false } } }, "required": [ "format", "container", "seller", "buyer", "totals", "lines" ], "additionalProperties": false } ``` ## bankstatement.extract Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "base64": { "type": "string", "minLength": 4, "maxLength": 6990508, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Base64-encoded statement PDF" } }, "required": [ "base64" ], "additionalProperties": false }, { "type": "object", "properties": { "url": { "type": "string", "maxLength": 2048, "format": "uri", "description": "Public URL of a statement PDF" } }, "required": [ "url" ], "additionalProperties": false } ], "examples": [ { "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf" } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "layout": { "type": [ "string", "null" ] }, "account": { "anyOf": [ { "type": "object", "properties": { "last4": { "type": "string" } }, "required": [ "last4" ], "additionalProperties": false }, { "type": "null" } ] }, "currency": { "anyOf": [ { "type": "string", "enum": [ "USD", "GBP" ] }, { "type": "null" } ] }, "period": { "anyOf": [ { "type": "object", "properties": { "start": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "start", "end" ], "additionalProperties": false }, { "type": "null" } ] }, "balances": { "type": "object", "properties": { "opening": { "type": [ "string", "null" ] }, "closing": { "type": [ "string", "null" ] } }, "required": [ "opening", "closing" ], "additionalProperties": false }, "pageCount": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "transactions": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "description": { "type": "string" }, "amount": { "type": "string" }, "page": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "balance": { "type": "string" } }, "required": [ "date", "description", "amount", "page" ], "additionalProperties": false } }, "reconciliation": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "reconciled", "mismatch", "unverified" ] }, "net": { "type": "string" }, "calculatedClosing": { "type": [ "string", "null" ] }, "difference": { "type": [ "string", "null" ] } }, "required": [ "status", "net", "calculatedClosing", "difference" ], "additionalProperties": false }, "needs_review": { "type": "boolean" }, "warnings": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string" }, "page": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": [ "code" ], "additionalProperties": false } } }, "required": [ "layout", "account", "currency", "period", "balances", "pageCount", "transactions", "reconciliation", "needs_review", "warnings" ], "additionalProperties": false } ``` ## ppwr.assess Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "placementDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Date of first placing on the EU market, including a planned future date." }, "packagingTypes": { "minItems": 1, "maxItems": 50, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 500 }, "identifiers": { "description": "Additional identifiers for the same packaging type, such as a GTIN, SKU or model number.", "maxItems": 30, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "description": { "type": "string", "minLength": 1, "maxLength": 500 }, "intendedUse": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "sales", "grouped", "transport", "ecommerce", "service", "other" ] }, "foodContact": { "type": "boolean" }, "reusable": { "type": "boolean", "description": "Marketed as reusable." }, "reuseSystem": { "description": "An Annex VI system in which this packaging is used, or none.", "type": "string", "enum": [ "closed_or_operated", "open_without_operator", "none" ] }, "salesPackaging": { "description": "Whether the packaging and product constitute the sales unit under Article 3(1)(5), including service packaging.", "type": "boolean" }, "salesPackagingUsedForEcommerce": { "type": "boolean" }, "annexVFormat": { "description": "Classification against the packaging formats and uses in Annex V, before applying exemptions.", "type": "string", "enum": [ "outside_annex_v", "point_1", "point_2", "point_3", "point_4", "point_5", "point_6" ] }, "eprObligated": { "description": "Whether the producer owes EPR contributions under Article 45.", "type": "boolean" }, "soldOnline": { "description": "Whether the product is sold online to end users.", "type": "boolean" }, "depositReturnKind": { "type": "string", "enum": [ "article_50_1", "other" ] }, "homeCompostingRequired": { "description": "Whether any destination Member State requires home compostability for Article 9(1) packaging.", "type": "boolean" }, "authorisedRepresentativeApplicable": { "type": "boolean" }, "notifiedBodyApplicable": { "description": "Whether a notified body intervened under other relevant Union legislation.", "type": "boolean" }, "frequentReuseFormat": { "description": "Whether the format is commonly used in reuse for Article 11(2).", "type": "boolean" }, "depositReturn": { "description": "Subject to a deposit and return system.", "type": "boolean" }, "compostabilityScope": { "description": "Article 9(1) includes permeable tea/coffee units and produce stickers. Select Article 9(2) only after reviewing destination Member State requirements, including local collection and treatment conditions. Use Article 9(3) after ruling out both compostability obligations.", "type": "string", "enum": [ "article_9_1", "article_9_2", "article_9_3" ] }, "recycledContentCategory": { "description": "Article 7(1)(a–d) category. Supply it if known.", "type": "string", "enum": [ "contact_sensitive_pet", "contact_sensitive_other_plastic", "single_use_plastic_beverage_bottle", "other_plastic" ] } }, "required": [ "kind", "foodContact", "reusable" ], "additionalProperties": false }, "components": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "material": { "type": "string", "enum": [ "plastic", "paper", "metal", "glass", "wood", "other" ] }, "materialDetail": { "description": "Polymer, grade or detailed composition.", "type": "string", "minLength": 1, "maxLength": 500 }, "massGrams": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000000 }, "coatingsAndInks": { "maxItems": 30, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "heavyMetals": { "type": "object", "properties": { "sumPpm": { "type": "number", "minimum": 0, "description": "Combined Pb, Cd, Hg and hexavalent chromium by mass, in mg/kg." }, "report": { "type": "string", "minLength": 1, "maxLength": 500 }, "derogation": { "description": "Review under the selected Article 70(3) derogation.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "kind": { "type": "string", "enum": [ "glass", "crystalGlass", "plasticCrateOrPallet" ] } }, "required": [ "meetsRequirement", "reference", "kind" ], "additionalProperties": false } }, "required": [ "sumPpm" ], "additionalProperties": false }, "recycledContentPlantYear": { "type": "object", "properties": { "percent": { "type": "number", "minimum": 0, "maximum": 100, "description": "Qualifying post-consumer recycled content averaged per manufacturing plant and year for this Annex II type and format under Article 7." }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "percent", "reference" ], "additionalProperties": false }, "recycledContentExclusion": { "oneOf": [ { "type": "object", "properties": { "clause": { "type": "string", "const": "4(a)" }, "immediateMedicinalPackaging": { "type": "boolean", "description": "Immediate packaging as defined by Directive 2001/83/EC Article 1(23) or Regulation (EU) 2019/6 Article 4(25)." }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "immediateMedicinalPackaging", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(b)" }, "contactSensitive": { "type": "boolean", "description": "Contact-sensitive as defined by Article 3(1)(49)." }, "deviceUnder2017_745": { "type": "boolean", "description": "Medical, research-only or investigational device covered by Regulation (EU) 2017/745." }, "medicalDevice": { "description": "Whether the device is a medical device for Article 6(11)(b).", "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "contactSensitive", "deviceUnder2017_745", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(c)" }, "contactSensitive": { "type": "boolean", "description": "Contact-sensitive as defined by Article 3(1)(49)." }, "deviceUnder2017_746": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "contactSensitive", "deviceUnder2017_746", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(d)" }, "outerMedicinalPackaging": { "type": "boolean", "description": "Outer packaging as defined by Directive 2001/83/EC Article 1(24) or Regulation (EU) 2019/6 Article 4(26)." }, "necessaryToPreserveMedicinalQuality": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "outerMedicinalPackaging", "necessaryToPreserveMedicinalQuality", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(e)" }, "compostablePlasticPackaging": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "componentIndices": { "description": "Zero-based indices into components covered by this evidence, including this component. Omit when the evidence covers only this component.", "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } }, "required": [ "clause", "compostablePlasticPackaging", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(f)" }, "dangerousGoodsTransportUnder2008_68": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "dangerousGoodsTransportUnder2008_68", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(g)" }, "contactSensitive": { "type": "boolean", "description": "Contact-sensitive as defined by Article 3(1)(49)." }, "qualifyingFoodUnder609_2013": { "type": "boolean", "description": "Food intended only for infants and young children, food for special medical purposes, or food or drink typically used for young children, within Regulation (EU) 609/2013 Article 1(1)(a)-(c)." }, "qualifyingFoodForRecyclability": { "description": "Infant or follow-on formula, processed cereal-based food, baby food or food for special medical purposes as specified in Article 6(11)(e).", "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "contactSensitive", "qualifyingFoodUnder609_2013", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "4(h)" }, "manufacturingSupplyOrComponentForCoveredMedicine": { "type": "boolean", "description": "Packaging of supplies, components or immediate packaging components for manufacture of medicinal products covered by Directive 2001/83/EC or Regulation (EU) 2019/6." }, "necessaryForMedicinalQualityStandards": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "clause", "manufacturingSupplyOrComponentForCoveredMedicine", "necessaryForMedicinalQualityStandards", "reference" ], "additionalProperties": false }, { "type": "object", "properties": { "clause": { "type": "string", "const": "5(a)" }, "targets": { "minItems": 1, "maxItems": 2, "type": "array", "items": { "type": "string", "enum": [ "2030", "2040" ] }, "description": "Recycled-content targets for which the documented threat and non-conformity apply." }, "threatensHumanHealth": { "type": "boolean" }, "causesNonConformityUnder1935_2004": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Technical file evidence for the relevant plastic part and target, including the polymer and lack of suitable authorised or industrial-scale technology as applicable under Commission guidance." } }, "required": [ "clause", "targets", "threatensHumanHealth", "causesNonConformityUnder1935_2004", "reference" ], "additionalProperties": false } ] }, "recycledContentPercent": { "description": "Reported post-consumer plastic content of this part. Article 7 uses plant/year averages.", "type": "number", "minimum": 0, "maximum": 100 } }, "required": [ "name", "material", "massGrams" ], "additionalProperties": false }, "description": "Full BOM for one packaging unit, including separate components." }, "pfas": { "description": "Representative measurements for the food-contact packaging type.", "type": "object", "properties": { "maxTargetedPpb": { "type": "object", "properties": { "value": { "type": "number", "minimum": 0 }, "belowQuantification": { "description": "The true concentration is strictly below value. Only positive bounds are valid.", "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "sumTargetedPpb": { "type": "object", "properties": { "value": { "type": "number", "minimum": 0 }, "belowQuantification": { "description": "The true concentration is strictly below value. Only positive bounds are valid.", "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "totalPfasPpm": { "type": "object", "properties": { "value": { "type": "number", "minimum": 0 }, "belowQuantification": { "description": "The true concentration is strictly below value. Only positive bounds are valid.", "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "totalFluorineMgKg": { "type": "object", "properties": { "value": { "type": "number", "minimum": 0 }, "belowQuantification": { "description": "The true concentration is strictly below value. Only positive bounds are valid.", "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "fluorineBreakdownEvidence": { "type": "string", "minLength": 1, "maxLength": 500 }, "report": { "type": "string", "minLength": 1, "maxLength": 500 } }, "additionalProperties": false }, "actsInForce": { "type": "object", "properties": { "article6_4": { "description": "Entry into force of the Article 6(4) acts applicable to this packaging.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "article7_8": { "description": "Entry into force of the Article 7(8) act.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "article24_2": { "description": "Entry into force of the Article 24(2) acts applicable to this packaging.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "additionalProperties": false }, "recyclabilityGrade": { "type": "object", "properties": { "grade": { "type": "string", "enum": [ "A", "B", "C", "below_c" ] }, "reference": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Reference for the caller-supplied Annex II grade under the applicable Article 6 methodology." } }, "required": [ "grade", "reference" ], "additionalProperties": false }, "recyclabilityDesign": { "description": "Design details such as separability, sorting and intended recycling streams.", "type": "string", "minLength": 1, "maxLength": 500 }, "emptySpacePercent": { "description": "Caller-reported percentage. If volumes are also supplied, it must agree with the calculated ratio, allowing rounding to the reported decimal precision.", "type": "number", "minimum": 0, "maximum": 100 }, "emptySpaceVolumes": { "type": "object", "properties": { "outerVolume": { "type": "number", "exclusiveMinimum": 0 }, "containedSalesPackagingVolume": { "type": "number", "minimum": 0 }, "reference": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Reference for measurements using the applicable Article 24(2) method. Use the same units for both volumes and exclude filler from the contained volume." } }, "required": [ "outerVolume", "containedSalesPackagingVolume", "reference" ], "additionalProperties": false }, "labelStock": { "description": "Supply only when relying on the Article 12(12) transition for stock.", "type": "object", "properties": { "manufacturedInUnionOrImportedOn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "additionalProperties": false }, "reuseRotations": { "description": "Claimed number of reuse rotations.", "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "evidence": { "type": "object", "properties": { "substanceMinimisation": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "recyclability": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "separateCollectionAndSorting": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "recyclabilityExemption": { "description": "Supporting review for an Article 6(11) exemption. Supply packaging facts in components[].recycledContentExclusion. For clause (g), identify sales packaging and report each component's qualifying materialDetail as lightweight wood, cork, textile, rubber, ceramic, porcelain or wax.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "clause": { "type": "string", "enum": [ "a", "b", "c", "d", "e", "f", "g" ] } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "innovativePackaging": { "description": "Positive evidence confirms Article 6(10) eligibility and that the prior notification includes a timeline for reaching recycling at scale.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "notifiedOn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "recycledContentExemption": { "description": "Review of an Article 7(4) or 7(5)(a) exclusion.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "componentIndices": { "description": "Zero-based indices into components. Omit when the review covers the whole unit.", "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "clause": { "type": "string", "enum": [ "4(a)", "4(b)", "4(c)", "4(d)", "4(e)", "4(f)", "4(g)", "4(h)", "5(a)" ] } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "labellingExemption": { "description": "Review of an Article 12(11) exclusion.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "qualifyingPackaging": { "type": "string", "enum": [ "medicinal", "veterinary_medicinal", "medical_device", "in_vitro_diagnostic" ] }, "reason": { "type": "string", "enum": [ "no_space_due_to_statutory_labels", "jeopardises_safe_use" ] } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "compostability": { "description": "Documented assessment of compostability for the components covered.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "componentIndices": { "description": "Zero-based indices into components. Omit when the review covers the whole unit.", "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "minimisation": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "minimisationExemption": { "description": "For design or trademark claims, document the protected rights and how compliance would affect their legal protection. For products, document protection under a qualifying EU scheme.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "kind": { "type": "string", "enum": [ "protected_design_or_trademark", "protected_geographical_indication_or_quality_scheme" ] }, "protectedSince": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "meetsRequirement", "reference", "kind" ], "additionalProperties": false }, "reusableDesign": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "nonMisleadingLabelling": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "depositReturnLabelling": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "onlineLabelInformation": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "labelPresentation": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "reusePointOfSale": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "homeCompostability": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "eprFeeModulation": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "eprLabelling": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "environmentalClaims": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "declarationMaintenance": { "description": "Review of required Member State languages and procedures to keep the declaration current.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "salesEmptySpace": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "formatRestriction": { "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false, "description": "Conclusion of an assessment and its evidence reference." }, "nationalFormatRestriction": { "description": "Review retained destination-country restrictions under Article 25(2), including whether any apply.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "meetsRequirement", "reference" ], "additionalProperties": false }, "formatExemption": { "description": "Substantiate all conditions of the applicable Annex V or Article 25 exemption, including any required destination-country permission.", "type": "object", "properties": { "meetsRequirement": { "type": "boolean" }, "reference": { "type": "string", "minLength": 1, "maxLength": 500 }, "kind": { "type": "string", "enum": [ "handling", "produce_protection_or_organic_separation", "no_drinking_water", "micro_enterprise_permission", "takeaway_or_medical_care", "hygiene_or_food_waste", "national_compostability" ] } }, "required": [ "meetsRequirement", "reference", "kind" ], "additionalProperties": false } }, "additionalProperties": false }, "labels": { "type": "object", "properties": { "recycledContent": { "type": "boolean" }, "otherDepositReturnSymbol": { "type": "boolean" }, "biobasedContent": { "type": "boolean" }, "epr": { "type": "boolean" }, "environmentalClaim": { "type": "boolean" }, "substancesOfConcern": { "description": "Whether the packaging contains substances of concern for Article 12(1).", "type": "boolean" } }, "additionalProperties": false }, "technicalDocumentation": { "type": "object", "properties": { "riskAssessment": { "type": "string", "minLength": 1, "maxLength": 500 }, "designAndManufacturingDrawings": { "type": "string", "minLength": 1, "maxLength": 500 }, "operationAndDrawingsExplanation": { "type": "string", "minLength": 1, "maxLength": 500 }, "appliedSpecificationsOrSolutions": { "description": "Annex VII 2(d) references, parts used and/or technical solutions.", "type": "string", "minLength": 1, "maxLength": 500 }, "assessmentMethods": { "description": "Qualitative account of relevant Article 6, 10 and 11 assessments.", "type": "string", "minLength": 1, "maxLength": 500 }, "testReports": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "productionControl": { "type": "string", "minLength": 1, "maxLength": 500 }, "retentionAndAvailability": { "description": "Document availability of the file and signed declaration to authorities and the applicable retention period.", "type": "string", "minLength": 1, "maxLength": 500 } }, "additionalProperties": false }, "declaration": { "description": "Fields from the declaration being checked for Annex VIII completeness. The generated draft stays unsigned.", "type": "object", "properties": { "number": { "type": "string", "minLength": 1, "maxLength": 500 }, "packagingIdentification": { "type": "string", "maxLength": 500 }, "description": { "type": "string", "minLength": 1, "maxLength": 500 }, "responsibilityStatement": { "type": "string", "minLength": 1, "maxLength": 500 }, "conformityStatement": { "type": "string", "minLength": 1, "maxLength": 500 }, "signature": { "description": "The signature or its reference in the signed declaration.", "type": "string", "minLength": 1, "maxLength": 500 }, "manufacturer": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "address": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "name", "address" ], "additionalProperties": false }, "authorisedRepresentative": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "address": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "name", "address" ], "additionalProperties": false }, "otherUnionActs": { "maxItems": 30, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "specifications": { "maxItems": 30, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "noTechnicalSpecificationsUsed": { "type": "boolean" }, "notifiedBody": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "address": { "type": "string", "minLength": 1, "maxLength": 500 }, "number": { "type": "string", "minLength": 1, "maxLength": 500 }, "intervention": { "type": "string", "minLength": 1, "maxLength": 500 }, "certificates": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 500 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "validityTermsApplicable": { "type": "boolean" }, "validityTerms": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "id" ], "additionalProperties": false } } }, "required": [ "name", "address", "number", "intervention", "certificates" ], "additionalProperties": false }, "additionalInformation": { "type": "string", "minLength": 1, "maxLength": 500 }, "signatory": { "type": "object", "properties": { "onBehalfOf": { "type": "string", "minLength": 1, "maxLength": 500 }, "place": { "type": "string", "minLength": 1, "maxLength": 500 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "function": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "onBehalfOf", "place", "date", "name", "function" ], "additionalProperties": false } }, "additionalProperties": false } }, "required": [ "id", "description", "intendedUse", "components" ], "additionalProperties": false } } }, "required": [ "placementDate", "packagingTypes" ], "additionalProperties": false, "examples": [ { "placementDate": "2026-11-24", "packagingTypes": [ { "id": "PE-FILM-184", "description": "Polyethylene film bag for 500 g of frozen peas", "intendedUse": { "kind": "sales", "foodContact": true, "reusable": false }, "components": [ { "name": "Printed bag", "material": "plastic", "materialDetail": "LDPE", "massGrams": 7.2, "heavyMetals": { "sumPpm": 7, "report": "LAB-478-PAGE-2" } } ], "pfas": { "totalFluorineMgKg": { "value": 10, "belowQuantification": true }, "report": "LAB-478-PAGE-3" } } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "regulation": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "guidanceUrl": { "type": "string", "format": "uri" }, "actsCheckedOn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "implementationUrl": { "type": "string", "format": "uri" } }, "required": [ "citation", "url", "guidanceUrl", "actsCheckedOn", "implementationUrl" ], "additionalProperties": false }, "placementDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "scope": { "type": "string" }, "pendingActs": { "type": "array", "items": { "type": "object", "properties": { "article": { "type": "string" }, "kind": { "type": "string", "enum": [ "delegated", "implementing" ] }, "subject": { "type": "string" }, "adoptionDueBy": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "status": { "type": "string", "const": "pending" }, "source": { "type": "string", "format": "uri" } }, "required": [ "article", "kind", "subject", "adoptionDueBy", "status", "source" ], "additionalProperties": false } }, "assessments": { "type": "array", "items": { "type": "object", "properties": { "packagingId": { "type": "string" }, "totalMassGrams": { "type": "number" }, "requirements": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "article": { "type": "string" }, "source": { "type": "string", "format": "uri" }, "applicationDate": { "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "dateKind": { "type": "string", "enum": [ "exact", "earliest", "undetermined" ] }, "scopeUnconfirmed": { "type": "boolean" }, "status": { "type": "string", "enum": [ "met", "not_met", "not_yet_applicable", "exempt", "to_assess", "evidence_missing" ] }, "location": { "type": "string" }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "evidenceReference": { "type": [ "string", "null" ] }, "pendingActs": { "type": "array", "items": { "type": "string" } }, "exemptionArticle": { "type": [ "string", "null" ] } }, "required": [ "id", "article", "source", "applicationDate", "dateKind", "scopeUnconfirmed", "status", "location", "expected", "actual", "evidenceReference", "pendingActs", "exemptionArticle" ], "additionalProperties": false } }, "missingEvidence": { "type": "array", "items": { "type": "string" }, "description": "Input paths in evidence_missing rows or to_assess rows without an evidence reference." }, "standardTechnicalFileRetentionYears": { "anyOf": [ { "type": "number", "const": 5 }, { "type": "number", "const": 10 } ] }, "declaration": { "type": "object", "properties": { "source": { "type": "string", "format": "uri" }, "json": { "type": "object", "properties": { "number": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 500 }, { "type": "null" } ] }, "packagingIdentification": { "type": "string" }, "description": { "type": "string" }, "responsibilityStatement": { "type": "string" }, "conformityStatement": { "type": "null" }, "signature": { "type": "null" }, "manufacturer": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "address": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "null" } ] }, "authorisedRepresentative": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "address": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "name", "address" ], "additionalProperties": false }, { "type": "null" } ] }, "specifications": { "maxItems": 30, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "notifiedBody": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "address": { "type": "string", "minLength": 1, "maxLength": 500 }, "number": { "type": "string", "minLength": 1, "maxLength": 500 }, "intervention": { "type": "string", "minLength": 1, "maxLength": 500 }, "certificates": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 500 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "validityTermsApplicable": { "type": "boolean" }, "validityTerms": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "id" ], "additionalProperties": false } } }, "required": [ "name", "address", "number", "intervention", "certificates" ], "additionalProperties": false }, { "type": "null" } ] }, "additionalInformation": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 500 }, { "type": "null" } ] }, "signatory": { "anyOf": [ { "type": "object", "properties": { "onBehalfOf": { "type": "string", "minLength": 1, "maxLength": 500 }, "place": { "type": "string", "minLength": 1, "maxLength": 500 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "name": { "type": "string", "minLength": 1, "maxLength": 500 }, "function": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": [ "onBehalfOf", "place", "date", "name", "function" ], "additionalProperties": false }, { "type": "null" } ] }, "status": { "type": "string", "const": "draft" }, "unionLegislation": { "type": "array", "items": { "type": "string" } } }, "required": [ "number", "packagingIdentification", "description", "responsibilityStatement", "conformityStatement", "signature", "manufacturer", "authorisedRepresentative", "specifications", "notifiedBody", "additionalInformation", "signatory", "status", "unionLegislation" ], "additionalProperties": false }, "text": { "type": "string" } }, "required": [ "source", "json", "text" ], "additionalProperties": false } }, "required": [ "packagingId", "totalMassGrams", "requirements", "missingEvidence", "standardTechnicalFileRetentionYears", "declaration" ], "additionalProperties": false } } }, "required": [ "regulation", "placementDate", "scope", "pendingActs", "assessments" ], "additionalProperties": false } ``` ## xbrl.asof Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "concepts": { "minItems": 1, "maxItems": 10, "type": "array", "items": { "type": "object", "properties": { "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." } }, "required": [ "taxonomy", "tag" ], "additionalProperties": false } }, "periods": { "minItems": 1, "maxItems": 20, "type": "array", "items": { "type": "object", "properties": { "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." } }, "required": [ "end" ], "additionalProperties": false }, "description": "Exact fiscal date ranges or instants. Use the company's fiscal calendar." }, "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Inclusive SEC filing date. Includes all submissions filed on this date." }, "cik": { "description": "SEC Central Index Key, with or without leading zeros.", "anyOf": [ { "type": "string", "pattern": "^\\d{1,10}$" }, { "type": "integer", "minimum": 1, "maximum": 9999999999 } ] } }, "required": [ "concepts", "periods", "asOf", "cik" ], "additionalProperties": false }, { "type": "object", "properties": { "concepts": { "minItems": 1, "maxItems": 10, "type": "array", "items": { "type": "object", "properties": { "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." } }, "required": [ "taxonomy", "tag" ], "additionalProperties": false } }, "periods": { "minItems": 1, "maxItems": 20, "type": "array", "items": { "type": "object", "properties": { "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." } }, "required": [ "end" ], "additionalProperties": false }, "description": "Exact fiscal date ranges or instants. Use the company's fiscal calendar." }, "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Inclusive SEC filing date. Includes all submissions filed on this date." }, "ticker": { "description": "Current SEC ticker. Use CIK for historical identifiers.", "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9.-]{0,15}$" } }, "required": [ "concepts", "periods", "asOf", "ticker" ], "additionalProperties": false } ], "examples": [ { "ticker": "MSFT", "concepts": [ { "taxonomy": "us-gaap", "tag": "NetIncomeLoss" } ], "periods": [ { "start": "2015-07-01", "end": "2015-09-30" } ], "asOf": "2016-04-20" } ], "type": "object" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "cik": { "type": "string", "description": "Ten-digit SEC Central Index Key." }, "source": { "type": "string", "format": "uri", "description": "SEC EDGAR XBRL API documentation." }, "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "results": { "type": "array", "items": { "type": "object", "properties": { "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "period": { "type": "object", "properties": { "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." } }, "required": [ "end" ], "additionalProperties": false }, "status": { "type": "string", "enum": [ "found", "concept_not_found", "period_not_found" ] }, "series": { "type": "array", "items": { "type": "object", "properties": { "unit": { "type": "string" }, "latest": { "anyOf": [ { "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "const": "reported" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "fact": { "type": "object", "properties": { "cik": { "type": "string" }, "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." }, "unit": { "type": "string" }, "value": { "type": "number" }, "fiscalYear": { "description": "Fiscal year of the filing, as supplied by SEC EDGAR.", "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "fiscalPeriod": { "description": "Fiscal period of the filing, as supplied by SEC EDGAR.", "type": [ "string", "null" ] }, "form": { "type": "string" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "accession": { "type": "string", "pattern": "^\\d{10}-\\d{2}-\\d{6}$" }, "frame": { "description": "Current SEC calendar frame metadata, when present.", "type": "string" }, "acceptedAt": { "description": "SEC submission acceptance time, used to order same-day filings.", "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$" }, "filingUrl": { "type": "string", "format": "uri" } }, "required": [ "cik", "taxonomy", "tag", "end", "unit", "value", "form", "filed", "accession", "filingUrl" ], "additionalProperties": false } }, "required": [ "status", "filed", "fact" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "needs_review" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "candidates": { "type": "array", "items": { "type": "object", "properties": { "cik": { "type": "string" }, "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." }, "unit": { "type": "string" }, "value": { "type": "number" }, "fiscalYear": { "description": "Fiscal year of the filing, as supplied by SEC EDGAR.", "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "fiscalPeriod": { "description": "Fiscal period of the filing, as supplied by SEC EDGAR.", "type": [ "string", "null" ] }, "form": { "type": "string" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "accession": { "type": "string", "pattern": "^\\d{10}-\\d{2}-\\d{6}$" }, "frame": { "description": "Current SEC calendar frame metadata, when present.", "type": "string" }, "acceptedAt": { "description": "SEC submission acceptance time, used to order same-day filings.", "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$" }, "filingUrl": { "type": "string", "format": "uri" } }, "required": [ "cik", "taxonomy", "tag", "end", "unit", "value", "form", "filed", "accession", "filingUrl" ], "additionalProperties": false }, "description": "Conflicting facts or filings whose order could not be determined." } }, "required": [ "status", "filed", "candidates" ], "additionalProperties": false } ] }, { "type": "null" } ], "description": "Most recent filing version as of the cutoff. Null if no filing had reported this fact." }, "laterRevisions": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "const": "reported" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "fact": { "type": "object", "properties": { "cik": { "type": "string" }, "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." }, "unit": { "type": "string" }, "value": { "type": "number" }, "fiscalYear": { "description": "Fiscal year of the filing, as supplied by SEC EDGAR.", "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "fiscalPeriod": { "description": "Fiscal period of the filing, as supplied by SEC EDGAR.", "type": [ "string", "null" ] }, "form": { "type": "string" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "accession": { "type": "string", "pattern": "^\\d{10}-\\d{2}-\\d{6}$" }, "frame": { "description": "Current SEC calendar frame metadata, when present.", "type": "string" }, "acceptedAt": { "description": "SEC submission acceptance time, used to order same-day filings.", "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$" }, "filingUrl": { "type": "string", "format": "uri" } }, "required": [ "cik", "taxonomy", "tag", "end", "unit", "value", "form", "filed", "accession", "filingUrl" ], "additionalProperties": false } }, "required": [ "status", "filed", "fact" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "needs_review" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "candidates": { "type": "array", "items": { "type": "object", "properties": { "cik": { "type": "string" }, "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." }, "unit": { "type": "string" }, "value": { "type": "number" }, "fiscalYear": { "description": "Fiscal year of the filing, as supplied by SEC EDGAR.", "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "fiscalPeriod": { "description": "Fiscal period of the filing, as supplied by SEC EDGAR.", "type": [ "string", "null" ] }, "form": { "type": "string" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "accession": { "type": "string", "pattern": "^\\d{10}-\\d{2}-\\d{6}$" }, "frame": { "description": "Current SEC calendar frame metadata, when present.", "type": "string" }, "acceptedAt": { "description": "SEC submission acceptance time, used to order same-day filings.", "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$" }, "filingUrl": { "type": "string", "format": "uri" } }, "required": [ "cik", "taxonomy", "tag", "end", "unit", "value", "form", "filed", "accession", "filingUrl" ], "additionalProperties": false }, "description": "Conflicting facts or filings whose order could not be determined." } }, "required": [ "status", "filed", "candidates" ], "additionalProperties": false } ] }, "description": "Later value changes, first disclosures, and unresolved filings. Unchanged repeats appear in xbrl.history." } }, "required": [ "unit", "latest", "laterRevisions" ], "additionalProperties": false } } }, "required": [ "taxonomy", "tag", "period", "status", "series" ], "additionalProperties": false } } }, "required": [ "cik", "source", "asOf", "results" ], "additionalProperties": false } ``` ## xbrl.history Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "cik": { "description": "SEC Central Index Key, with or without leading zeros.", "anyOf": [ { "type": "string", "pattern": "^\\d{1,10}$" }, { "type": "integer", "minimum": 1, "maximum": 9999999999 } ] }, "concept": { "type": "object", "properties": { "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." } }, "required": [ "taxonomy", "tag" ], "additionalProperties": false } }, "required": [ "cik", "concept" ], "additionalProperties": false, "examples": [ { "cik": "0000789019", "concept": { "taxonomy": "us-gaap", "tag": "NetIncomeLoss" } } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "cik": { "type": "string", "description": "Ten-digit SEC Central Index Key." }, "source": { "type": "string", "format": "uri", "description": "SEC EDGAR XBRL API documentation." }, "concept": { "type": "object", "properties": { "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." } }, "required": [ "taxonomy", "tag" ], "additionalProperties": false }, "series": { "type": "array", "items": { "type": "object", "properties": { "period": { "type": "object", "properties": { "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." } }, "required": [ "end" ], "additionalProperties": false }, "unit": { "type": "string" }, "versions": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "const": "reported" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "fact": { "type": "object", "properties": { "cik": { "type": "string" }, "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." }, "unit": { "type": "string" }, "value": { "type": "number" }, "fiscalYear": { "description": "Fiscal year of the filing, as supplied by SEC EDGAR.", "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "fiscalPeriod": { "description": "Fiscal period of the filing, as supplied by SEC EDGAR.", "type": [ "string", "null" ] }, "form": { "type": "string" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "accession": { "type": "string", "pattern": "^\\d{10}-\\d{2}-\\d{6}$" }, "frame": { "description": "Current SEC calendar frame metadata, when present.", "type": "string" }, "acceptedAt": { "description": "SEC submission acceptance time, used to order same-day filings.", "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$" }, "filingUrl": { "type": "string", "format": "uri" } }, "required": [ "cik", "taxonomy", "tag", "end", "unit", "value", "form", "filed", "accession", "filingUrl" ], "additionalProperties": false } }, "required": [ "status", "filed", "fact" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "needs_review" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "candidates": { "type": "array", "items": { "type": "object", "properties": { "cik": { "type": "string" }, "taxonomy": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,19}$", "description": "SEC taxonomy, e.g. us-gaap." }, "tag": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$", "description": "Case-sensitive XBRL concept tag." }, "start": { "description": "First day of a duration fact. Omit for an instant fact.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Last day of a duration fact or date of an instant fact." }, "unit": { "type": "string" }, "value": { "type": "number" }, "fiscalYear": { "description": "Fiscal year of the filing, as supplied by SEC EDGAR.", "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "fiscalPeriod": { "description": "Fiscal period of the filing, as supplied by SEC EDGAR.", "type": [ "string", "null" ] }, "form": { "type": "string" }, "filed": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "accession": { "type": "string", "pattern": "^\\d{10}-\\d{2}-\\d{6}$" }, "frame": { "description": "Current SEC calendar frame metadata, when present.", "type": "string" }, "acceptedAt": { "description": "SEC submission acceptance time, used to order same-day filings.", "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$" }, "filingUrl": { "type": "string", "format": "uri" } }, "required": [ "cik", "taxonomy", "tag", "end", "unit", "value", "form", "filed", "accession", "filingUrl" ], "additionalProperties": false }, "description": "Conflicting facts or filings whose order could not be determined." } }, "required": [ "status", "filed", "candidates" ], "additionalProperties": false } ] } } }, "required": [ "period", "unit", "versions" ], "additionalProperties": false } } }, "required": [ "cik", "source", "concept", "series" ], "additionalProperties": false } ``` ## epr.us Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "period": { "type": "object", "properties": { "start": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "start", "end" ], "additionalProperties": false, "description": "Inclusive shipment dates for one reporting period." }, "states": { "minItems": 1, "maxItems": 6, "type": "array", "items": { "type": "string", "enum": [ "OR", "CO", "CA", "MD", "MN", "WA" ] } }, "bom": { "maxItems": 1000, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 80 }, "components": { "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "material": { "type": "string", "minLength": 1, "maxLength": 80 }, "gramsPerUnit": { "type": "number", "exclusiveMinimum": 0, "maximum": 100000 }, "rigidity": { "type": "string", "enum": [ "rigid", "flexible" ] }, "recycledContentPct": { "type": "number", "minimum": 0, "maximum": 100 }, "form": { "description": "Use consumer_box for retail or direct-to-consumer boxes, shipping_mailer for an envelope or bag used as product packaging, envelope for stationery, packing_paper for loose fill sheets, cushioning for formed protective inserts or foam blocks, and tub for a container with a mouth similar in size to its base. A can is a closed non-aerosol, non-pressurized container. Use pallet for a rigid transport pallet, copy_paper for copier stock, and construction_paper for paper used in building construction. Use other only for a known form outside this list.", "type": "string", "enum": [ "bottle", "jar", "jug", "container", "can", "aerosol", "pressurized_cylinder", "foil", "molded_foil_container", "film", "bag", "pouch", "envelope", "shipping_mailer", "packing_paper", "bubble_wrap", "non_consumer_pallet_wrap", "consumer_box", "non_consumer_transport_box", "aseptic_carton", "gable_top_carton", "tub", "pail", "bucket", "nursery_pot", "nursery_tray", "cap", "lid", "package_handle", "cup", "plate", "tray", "hinged_container", "squeeze_tube", "cushioning", "utensil", "textile", "pallet", "storage_item", "newspaper", "newsprint_insert", "magazine", "catalog", "directory", "general_use_paper", "other_printed_paper", "copy_paper", "archival_paper", "construction_paper", "bound_book", "unsanitary_paper", "butcher_paper", "other" ] }, "printed": { "description": "For stationery envelopes, whether supplied printed.", "type": "boolean" }, "capacityGallons": { "description": "Usable capacity in US gallons.", "type": "number", "exclusiveMinimum": 0 }, "containerGlass": { "description": "Whether a bottle or jar is made of container glass.", "type": "boolean" }, "color": { "description": "Use light_blue_or_green for transparent light blue or green PET. Natural milky HDPE is clear_natural. Use white for white pigment or white foam.", "type": "string", "enum": [ "clear_natural", "light_blue_or_green", "pigmented", "white" ] }, "consumerUse": { "description": "Personal or commercial use by an end consumer, or non_consumer for packaging that stays in the supply chain.", "type": "string", "enum": [ "personal", "commercial", "non_consumer" ] }, "containsPlastic": { "description": "For California, whether the component includes reportable plastic. Supply the dominant material in material.", "type": "boolean" }, "smallFormat": { "description": "Small-format status under the state's rules after any applicable sorting exceptions. Usually at least two dimensions are 2 inches or less.", "type": "boolean" }, "dimensionsInches": { "description": "Length, width and height in inches. For circular items, use the diameter for length and width. Measure flexible items laid flat.", "type": "array", "prefixItems": [ { "type": "number", "exclusiveMinimum": 0 }, { "type": "number", "exclusiveMinimum": 0 }, { "type": "number", "exclusiveMinimum": 0 } ], "items": false, "minItems": 3, "maxItems": 3 }, "preferredSizeSorting": { "description": "Whether the item has an APR Preferred size-sorting assessment. Supply for at-threshold dimensions where the state applies this exception.", "type": "boolean" }, "fiberSource": { "description": "Required for paper and fiber classification. Use wood for wood pulp, non_wood for a named non-wood plant fiber, or recycled for recycled paper fiber. Report algae and fungi in material instead.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "wood" } }, "required": [ "kind" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_wood" }, "type": { "type": "string", "minLength": 1, "maxLength": 80, "description": "Name of the plant fiber, such as bagasse or bamboo." } }, "required": [ "kind", "type" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "recycled" } }, "required": [ "kind" ], "additionalProperties": false } ] }, "bleached": { "description": "Whether the paperboard substrate is bleached.", "type": "boolean" }, "coating": { "description": "Coating or laminate on the substrate. Use none for uncoated and unlaminated substrates, recycle_compatible for a recycling-compatible water-soluble coating, or other_barrier for wax, silicone, foil or another incompatible coating or layer.", "type": "string", "enum": [ "none", "recycle_compatible", "plastic", "other_barrier" ] }, "coatingSides": { "description": "Which sides of the paperboard have a coating or lamination.", "type": "string", "enum": [ "inside", "outside", "both" ] }, "contents": { "description": "Contents of covered packaging. Hazardous means the product meets the reporting definition for hazard labeling. Raw_meat means direct contact with raw meat. Use other for verified ordinary contents or packaging that does not contain a product.", "type": "string", "enum": [ "automotive_fluid", "pesticide_or_herbicide", "hazardous", "raw_meat", "other" ] }, "containsProduct": { "description": "Whether the packaging is used to contain a packaged product.", "type": "boolean" }, "resinCode": { "description": "Resin identification code displayed on the item. Use null if there is no mark and omit if its presence is unknown.", "anyOf": [ { "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 2 }, { "type": "number", "const": 3 }, { "type": "number", "const": 4 }, { "type": "number", "const": 5 }, { "type": "number", "const": 6 }, { "type": "number", "const": 7 } ] }, { "type": "null" } ] }, "manufacturing": { "type": "string", "enum": [ "thermoformed", "injection_molded", "other" ] }, "expanded": { "description": "Whether polystyrene is expanded or foamed.", "type": "boolean" }, "monoMaterial": { "description": "For film, whether it contains only the stated resin and has no layers of other materials.", "type": "boolean" }, "bagFormat": { "description": "Whether a flexible or film item is a bag. Omit when unknown.", "type": "boolean" }, "recyclingCompatible": { "description": "Whether film or squeeze-tube layers meet the applicable state recycling criteria. Oregon PE film must meet APR PE-CG-01 and have no incompatible layers, coatings, resins or additives. Oregon non-consumer pallet wrap must have no barrier layers or non-PE resins.", "type": "boolean" }, "compostability": { "description": "Specify the applicable certification, designed for uncertified compostable plastic, or none when neither applies.", "type": "string", "enum": [ "none", "ASTM D8410-22", "ASTM D6868-21", "ASTM D6400-23", "designed" ] }, "marketedCompostable": { "type": "boolean" }, "markedCompostable": { "description": "Whether the plastic item is marked for compostability under the California reporting guidance.", "type": "boolean" }, "foodServiceware": { "type": "boolean" }, "treated": { "description": "Whether wood is treated or painted.", "type": "boolean" }, "pressurizedCylinderQualified": { "description": "For Oregon cylinders, confirm the applicable DOT/UN specification or puncture-only design for non-refillable items, or an approved specification and water capacity of at most 109 L for refillable items. Exemptions are reported separately.", "type": "boolean" }, "newsprint": { "description": "Whether the substrate is newsprint under the applicable state's definition. For Maryland use Environment Article § 9-1707.", "type": "boolean" }, "lowCirculationNewsMagazine": { "description": "Whether a magazine has circulation below 95,000 and includes qualifying primary-source news or current-events content under the applicable state's definition.", "type": "boolean" }, "waFilmCompostable": { "description": "For Washington film in direct contact with raw meat, confirm whether it satisfies RCW 70A.208.020(7), including the applicable labeling requirements of chapter 70A.455 RCW.", "type": "boolean" }, "beverageDepositByState": { "description": "For a potentially deposit-eligible component, specify whether this component is covered by the state's beverage container deposit program in the report period. False means confirmed out of that program.", "type": "object", "propertyNames": { "type": "string", "enum": [ "OR", "CO", "CA", "MD", "MN", "WA" ] }, "additionalProperties": { "type": "boolean" } }, "otherExemptionByState": { "description": "After checking the state's covered-material guidance for this component and the supplied units, specify whether another exemption applies. Check product and producer exemptions, industrial and durable packaging, and reusable/refillable supply where applicable. False confirms none applies and the item is a packaging, paper product or food-service item in the state's reporting scope. Leave unknown states absent.", "type": "object", "propertyNames": { "type": "string", "enum": [ "OR", "CO", "CA", "MD", "MN", "WA" ] }, "additionalProperties": { "type": "boolean" } }, "categoryByState": { "description": "Provide a verified state reporting category or CalRecycle ID. Set a state to null for an exemption or other confirmed exclusion. Include only separable components and account for any inseparable parts in their parent component.", "type": "object", "propertyNames": { "type": "string", "enum": [ "OR", "CO", "CA", "MD", "MN", "WA" ] }, "additionalProperties": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 200 }, { "type": "null" } ] } } }, "required": [ "material", "gramsPerUnit" ], "additionalProperties": false } } }, "required": [ "sku", "components" ], "additionalProperties": false }, "description": "Per-SKU components to classify by dominant material, form and any required attributes such as size, color, resin mark, coating, contents and capacity. Supply fiberSource for paper or fiber. Confirm scope with otherExemptionByState and, when relevant, beverageDepositByState. Use categoryByState for a verified assignment or exclusion. Specify consumerUse for Oregon corrugated boxes, Colorado and the interim states. For reusable items submit only the units first supplied when the guidance requires it." }, "shipments": { "maxItems": 2000, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 80 }, "quantity": { "type": "integer", "minimum": 0, "maximum": 1000000 }, "destination": { "type": "string", "pattern": "^[A-Z]{2}$" }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "returns": { "default": 0, "description": "Units returned from this shipment, including ordinary customer returns.", "type": "integer", "minimum": 0, "maximum": 1000000 }, "notPlacedOnMarket": { "default": 0, "description": "Subset of returns documented as never placed on this market. Only these units are subtracted.", "type": "integer", "minimum": 0, "maximum": 1000000 } }, "required": [ "sku", "quantity", "destination", "date" ], "additionalProperties": false } } }, "required": [ "period", "states", "bom", "shipments" ], "additionalProperties": false, "examples": [ { "period": { "start": "2025-01-01", "end": "2025-12-31" }, "states": [ "OR", "CA" ], "bom": [ { "sku": "shirt-blue", "components": [ { "material": "corrugated cardboard", "form": "consumer_box", "gramsPerUnit": 104.2, "fiberSource": { "kind": "recycled" }, "containsPlastic": false, "smallFormat": false, "coating": "none", "consumerUse": "personal", "otherExemptionByState": { "OR": false, "CA": false } } ] } ], "shipments": [ { "sku": "shirt-blue", "destination": "OR", "quantity": 364, "returns": 4, "date": "2025-06-24" } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "reports": { "type": "array", "items": { "type": "object", "properties": { "destination": { "type": "string" }, "period": { "type": "object", "properties": { "start": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "start", "end" ], "additionalProperties": false, "description": "Inclusive shipment dates for one reporting period." }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "url", "version" ], "additionalProperties": false }, "needs_review": { "type": "boolean" }, "totals": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string" }, "label": { "type": "string" }, "kg": { "type": "number" } }, "required": [ "category", "label", "kg" ], "additionalProperties": false } }, "trail": { "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 80 }, "shipmentIndices": { "type": "array", "items": { "type": "number" } }, "bomIndex": { "type": [ "number", "null" ] }, "shippedUnits": { "type": "number" }, "returnedUnits": { "type": "number" }, "notPlacedOnMarketUnits": { "type": "number" }, "reportableUnits": { "type": "number" }, "components": { "type": "array", "items": { "type": "object", "properties": { "componentIndex": { "type": "number" }, "material": { "type": "string", "minLength": 1, "maxLength": 80 }, "gramsPerUnit": { "type": "number", "exclusiveMinimum": 0, "maximum": 100000 }, "rigidity": { "type": "string", "enum": [ "rigid", "flexible" ] }, "recycledContentPct": { "type": "number", "minimum": 0, "maximum": 100 }, "kg": { "type": "number" }, "category": { "type": [ "string", "null" ] }, "status": { "type": "string", "enum": [ "mapped", "excluded", "needs_review" ] }, "reason": { "anyOf": [ { "type": "string", "enum": [ "unmapped_material", "missing_classification_attributes", "ambiguous_category", "category_requires_confirmation" ] }, { "type": "string", "const": "unknown_category" } ] }, "suppliedCategory": { "type": "string" }, "missingAttributes": { "type": "array", "items": { "type": "string" } }, "candidateCategories": { "type": "array", "items": { "type": "string" } }, "exclusion": { "type": "string" } }, "required": [ "componentIndex", "material", "gramsPerUnit", "kg", "category", "status" ], "additionalProperties": false } }, "issue": { "type": "string", "const": "missing_bom" } }, "required": [ "sku", "shipmentIndices", "bomIndex", "shippedUnits", "returnedUnits", "notPlacedOnMarketUnits", "reportableUnits", "components" ], "additionalProperties": false } }, "csv": { "description": "CSV of mapped weights. Null if no weights were mapped.", "type": [ "string", "null" ] }, "classificationSource": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "url", "version" ], "additionalProperties": false }, "scopeSource": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "url", "version" ], "additionalProperties": false } }, "required": [ "destination", "period", "source", "needs_review", "totals", "trail", "csv", "classificationSource", "scopeSource" ], "additionalProperties": false } } }, "required": [ "reports" ], "additionalProperties": false } ``` ## epr.de Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "period": { "type": "object", "properties": { "start": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "start", "end" ], "additionalProperties": false, "description": "Inclusive shipment dates for one reporting period." }, "systemOperatorId": { "type": "string", "enum": [ "DE6005779374130", "DE6005973594801", "DE6006382012686", "DE6004919627351", "DE6005906579671", "DE6005959764031", "DE6007094250999", "DE6007086225568", "DE6007168805143", "DE6004738522858", "DE6004844021815", "DE6007780383579", "DE6257129182400", "DE6161328237553" ], "description": "LUCID registration ID of the system operator for these volumes. See the ZSVR XML guide §2.3.4." }, "reportTypeCode": { "type": "string", "enum": [ "HMM1", "HJM1" ], "description": "LUCID full report type. HMM1 is intra-year and HJM1 is year-end." }, "bom": { "maxItems": 1000, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 80 }, "components": { "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "material": { "type": "string", "minLength": 1, "maxLength": 80 }, "gramsPerUnit": { "type": "number", "exclusiveMinimum": 0, "maximum": 100000 }, "rigidity": { "type": "string", "enum": [ "rigid", "flexible" ] }, "recycledContentPct": { "type": "number", "minimum": 0, "maximum": 100 }, "materialCode": { "description": "Verified ZSVR MaterialCode for a material or composite that requires classification.", "type": "string", "enum": [ "10000", "20000", "30000", "40000", "50000", "60000", "68000", "70000", "80000" ] } }, "required": [ "material", "gramsPerUnit" ], "additionalProperties": false } } }, "required": [ "sku", "components" ], "additionalProperties": false }, "description": "Only include packaging subject to system participation and assigned to this system operator." }, "shipments": { "maxItems": 2000, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 80 }, "quantity": { "type": "integer", "minimum": 0, "maximum": 1000000 }, "destination": { "type": "string", "pattern": "^[A-Z]{2}$" }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "returns": { "default": 0, "description": "Units returned from this shipment, including ordinary customer returns.", "type": "integer", "minimum": 0, "maximum": 1000000 }, "notPlacedOnMarket": { "default": 0, "description": "Subset of returns documented as never placed on this market. Only these units are subtracted.", "type": "integer", "minimum": 0, "maximum": 1000000 } }, "required": [ "sku", "quantity", "destination", "date" ], "additionalProperties": false } } }, "required": [ "period", "systemOperatorId", "reportTypeCode", "bom", "shipments" ], "additionalProperties": false, "examples": [ { "period": { "start": "2026-04-01", "end": "2026-06-30" }, "systemOperatorId": "DE6004919627351", "reportTypeCode": "HMM1", "bom": [ { "sku": "tea", "components": [ { "material": "paperboard", "gramsPerUnit": 42.5, "rigidity": "rigid", "recycledContentPct": 60 }, { "material": "LDPE", "gramsPerUnit": 1.8, "rigidity": "flexible" } ] } ], "shipments": [ { "sku": "tea", "destination": "DE", "quantity": 85, "returns": 2, "date": "2026-06-01" } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "destination": { "type": "string" }, "period": { "type": "object", "properties": { "start": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "start", "end" ], "additionalProperties": false, "description": "Inclusive shipment dates for one reporting period." }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "url", "version" ], "additionalProperties": false }, "needs_review": { "type": "boolean" }, "totals": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string" }, "label": { "type": "string" }, "kg": { "type": "number" }, "lucidMass": { "type": "string", "description": "LUCID mass in kg with a decimal comma and three decimal places." } }, "required": [ "category", "label", "kg", "lucidMass" ], "additionalProperties": false } }, "trail": { "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 80 }, "shipmentIndices": { "type": "array", "items": { "type": "number" } }, "bomIndex": { "type": [ "number", "null" ] }, "shippedUnits": { "type": "number" }, "returnedUnits": { "type": "number" }, "notPlacedOnMarketUnits": { "type": "number" }, "reportableUnits": { "type": "number" }, "components": { "type": "array", "items": { "type": "object", "properties": { "componentIndex": { "type": "number" }, "material": { "type": "string", "minLength": 1, "maxLength": 80 }, "gramsPerUnit": { "type": "number", "exclusiveMinimum": 0, "maximum": 100000 }, "rigidity": { "type": "string", "enum": [ "rigid", "flexible" ] }, "recycledContentPct": { "type": "number", "minimum": 0, "maximum": 100 }, "kg": { "type": "number" }, "category": { "type": [ "string", "null" ] }, "status": { "type": "string", "enum": [ "mapped", "excluded", "needs_review" ] }, "reason": { "anyOf": [ { "type": "string", "enum": [ "unmapped_material", "missing_classification_attributes", "ambiguous_category", "category_requires_confirmation" ] }, { "type": "string", "const": "unknown_category" } ] }, "suppliedCategory": { "type": "string" }, "missingAttributes": { "type": "array", "items": { "type": "string" } }, "candidateCategories": { "type": "array", "items": { "type": "string" } }, "exclusion": { "type": "string" } }, "required": [ "componentIndex", "material", "gramsPerUnit", "kg", "category", "status" ], "additionalProperties": false } }, "issue": { "type": "string", "const": "missing_bom" } }, "required": [ "sku", "shipmentIndices", "bomIndex", "shippedUnits", "returnedUnits", "notPlacedOnMarketUnits", "reportableUnits", "components" ], "additionalProperties": false } }, "systemOperatorId": { "type": "string", "enum": [ "DE6005779374130", "DE6005973594801", "DE6006382012686", "DE6004919627351", "DE6005906579671", "DE6005959764031", "DE6007094250999", "DE6007086225568", "DE6007168805143", "DE6004738522858", "DE6004844021815", "DE6007780383579", "DE6257129182400", "DE6161328237553" ], "description": "LUCID registration ID of the system operator for these volumes. See the ZSVR XML guide §2.3.4." }, "reportTypeCode": { "type": "string", "enum": [ "HMM1", "HJM1" ], "description": "LUCID full report type. HMM1 is intra-year and HJM1 is year-end." }, "schema": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "url", "version" ], "additionalProperties": false }, "csv": { "description": "CSV of mapped weights. Null if no weights were mapped.", "type": [ "string", "null" ] }, "xml": { "description": "Save this JSON string as UTF-8 without trimming. Its leading U+FEFF becomes the BOM required by LUCID. Null if the report requires review or no weights were mapped.", "type": [ "string", "null" ] } }, "required": [ "destination", "period", "source", "needs_review", "totals", "trail", "systemOperatorId", "reportTypeCode", "schema", "csv", "xml" ], "additionalProperties": false } ``` ## carf.generate Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "history": { "description": "Complete prior accepted CARF XML, oldest first. For correct, supply the files before previousXml.", "type": "array", "items": { "type": "string", "minLength": 1 } }, "messageSuffix": { "type": "string", "minLength": 1, "maxLength": 75, "pattern": "^[A-Za-z0-9_.-]+$" }, "timestamp": { "type": "string", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$" }, "rcaspId": { "type": "string", "minLength": 15, "maxLength": 15, "pattern": "^[A-Za-z0-9_.-]+$" }, "reportingYear": { "type": "integer", "minimum": 2026, "maximum": 9999 }, "provider": { "type": "object", "properties": { "party": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "individual" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "firstName": { "type": "string", "minLength": 1, "maxLength": 200 }, "middleNames": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "lastName": { "type": "string", "minLength": 1, "maxLength": 200 }, "birthDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "birthPlace": { "type": "object", "properties": { "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "citySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "country": { "anyOf": [ { "type": "object", "properties": { "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "countryCode" ], "additionalProperties": false }, { "type": "object", "properties": { "formerCountryName": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "formerCountryName" ], "additionalProperties": false } ] } }, "required": [ "city", "country" ], "additionalProperties": false } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "firstName", "lastName", "birthDate" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "entity" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "organisationIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" }, "type": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "value" ], "additionalProperties": false } } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "name" ], "additionalProperties": false } ] }, "nexus": { "type": "string", "enum": [ "CARF901", "CARF902", "CARF903", "CARF904", "CARF905" ] }, "otherNexus": { "type": "object", "properties": { "nexus": { "type": "string", "enum": [ "CARF901", "CARF902", "CARF903", "CARF904", "CARF905" ] }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "nexus", "country" ], "additionalProperties": false }, "docSuffix": { "type": "string", "pattern": "^[\\s\\S]{1,63}$" }, "previousDocRefId": { "type": "string", "pattern": "^[\\s\\S]{28,164}$" } }, "required": [ "party", "nexus", "docSuffix" ], "additionalProperties": false }, "users": { "maxItems": 10000, "type": "array", "items": { "type": "object", "properties": { "docSuffix": { "type": "string", "pattern": "^[\\s\\S]{1,63}$" }, "record": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "individual" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "firstName": { "type": "string", "minLength": 1, "maxLength": 200 }, "middleNames": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "lastName": { "type": "string", "minLength": 1, "maxLength": 200 }, "birthDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "birthPlace": { "type": "object", "properties": { "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "citySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "country": { "anyOf": [ { "type": "object", "properties": { "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "countryCode" ], "additionalProperties": false }, { "type": "object", "properties": { "formerCountryName": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "formerCountryName" ], "additionalProperties": false } ] } }, "required": [ "city", "country" ], "additionalProperties": false }, "transactions": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "asset": { "type": "string", "minLength": 1, "maxLength": 200 }, "cryptoToCryptoIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoToCryptoOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoTransferIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF50[1-9]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "cryptoTransferOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF60[1-6]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "walletTransfersOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units" ], "additionalProperties": false } }, "retailPayments": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } } }, "required": [ "asset" ], "additionalProperties": false } } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "firstName", "lastName", "birthDate", "transactions" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "entity" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "organisationIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" }, "type": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "value" ], "additionalProperties": false } }, "transactions": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "asset": { "type": "string", "minLength": 1, "maxLength": 200 }, "cryptoToCryptoIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoToCryptoOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoTransferIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF50[1-9]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "cryptoTransferOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF60[1-6]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "walletTransfersOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units" ], "additionalProperties": false } }, "retailPayments": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } } }, "required": [ "asset" ], "additionalProperties": false } }, "controllingPersons": { "type": "array", "items": { "type": "object", "properties": { "person": { "type": "object", "properties": { "kind": { "type": "string", "const": "individual" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "firstName": { "type": "string", "minLength": 1, "maxLength": 200 }, "middleNames": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "lastName": { "type": "string", "minLength": 1, "maxLength": 200 }, "birthDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "birthPlace": { "type": "object", "properties": { "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "citySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "country": { "anyOf": [ { "type": "object", "properties": { "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "countryCode" ], "additionalProperties": false }, { "type": "object", "properties": { "formerCountryName": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "formerCountryName" ], "additionalProperties": false } ] } }, "required": [ "city", "country" ], "additionalProperties": false } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "firstName", "lastName", "birthDate" ], "additionalProperties": false }, "roles": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^CARF8(?:0[1-9]|1[0-3])$" } } }, "required": [ "person", "roles" ], "additionalProperties": false } } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "name", "transactions" ], "additionalProperties": false } ] } }, "required": [ "docSuffix", "record" ], "additionalProperties": false } } }, "required": [ "messageSuffix", "timestamp", "rcaspId", "reportingYear", "provider", "users" ], "additionalProperties": false, "examples": [ { "rcaspId": "XRCASP000001234", "reportingYear": 2026, "timestamp": "2027-05-01T09:00:00", "messageSuffix": "batch-1", "provider": { "party": { "kind": "entity", "name": "Bramble Digital Markets Ltd", "residenceCountries": [ "GB" ], "tins": [ { "value": "08801357", "issuedBy": "GB" } ], "addresses": [ { "country": "GB", "city": "London", "street": "10 Exchange Road", "postCode": "EC2A 1AA" } ] }, "nexus": "CARF901", "docSuffix": "provider" }, "users": [ { "docSuffix": "user-42", "record": { "kind": "individual", "firstName": "Avery", "lastName": "Carter", "birthDate": "1982-06-15", "residenceCountries": [ "GB" ], "tins": [ { "value": "AB123456C", "issuedBy": "GB" } ], "addresses": [ { "country": "GB", "city": "York", "postCode": "YO1 1AA" } ], "transactions": [ { "asset": "Bitcoin", "cryptoFiatIn": [ { "count": 4, "units": "0.02150000", "amount": "1450.00", "currency": "GBP" } ] } ] } } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean" }, "reportableUsers": { "type": "integer", "minimum": 0, "maximum": 10000 }, "errors": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string" } }, "required": [ "rule", "path", "expected", "actual", "source" ], "additionalProperties": false } }, "needsReview": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string" } }, "required": [ "rule", "path", "expected", "actual", "source" ], "additionalProperties": false } }, "schemaVersion": { "type": "string", "const": "1.5" }, "xml": { "type": [ "string", "null" ] }, "filename": { "type": [ "string", "null" ] }, "messageRefId": { "type": [ "string", "null" ] } }, "required": [ "valid", "reportableUsers", "errors", "needsReview", "schemaVersion", "xml", "filename", "messageRefId" ], "additionalProperties": false } ``` ## carf.correct Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "history": { "description": "Complete prior accepted CARF XML, oldest first. For correct, supply the files before previousXml.", "type": "array", "items": { "type": "string", "minLength": 1 } }, "messageSuffix": { "type": "string", "minLength": 1, "maxLength": 75, "pattern": "^[A-Za-z0-9_.-]+$" }, "timestamp": { "type": "string", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$" }, "previousXml": { "type": "string", "minLength": 1 }, "provider": { "oneOf": [ { "type": "object", "properties": { "action": { "type": "string", "const": "replace" }, "previousDocRefId": { "type": "string", "pattern": "^[\\s\\S]{28,164}$" }, "docSuffix": { "type": "string", "pattern": "^[\\s\\S]{1,63}$" }, "record": { "type": "object", "properties": { "party": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "individual" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "firstName": { "type": "string", "minLength": 1, "maxLength": 200 }, "middleNames": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "lastName": { "type": "string", "minLength": 1, "maxLength": 200 }, "birthDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "birthPlace": { "type": "object", "properties": { "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "citySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "country": { "anyOf": [ { "type": "object", "properties": { "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "countryCode" ], "additionalProperties": false }, { "type": "object", "properties": { "formerCountryName": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "formerCountryName" ], "additionalProperties": false } ] } }, "required": [ "city", "country" ], "additionalProperties": false } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "firstName", "lastName", "birthDate" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "entity" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "organisationIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" }, "type": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "value" ], "additionalProperties": false } } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "name" ], "additionalProperties": false } ] }, "nexus": { "type": "string", "enum": [ "CARF901", "CARF902", "CARF903", "CARF904", "CARF905" ] }, "otherNexus": { "type": "object", "properties": { "nexus": { "type": "string", "enum": [ "CARF901", "CARF902", "CARF903", "CARF904", "CARF905" ] }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "nexus", "country" ], "additionalProperties": false } }, "required": [ "party", "nexus" ], "additionalProperties": false } }, "required": [ "action", "previousDocRefId", "docSuffix", "record" ], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string", "const": "delete" }, "previousDocRefId": { "type": "string", "pattern": "^[\\s\\S]{28,164}$" }, "docSuffix": { "type": "string", "pattern": "^[\\s\\S]{1,63}$" }, "previousXmlContainsAllActiveUsers": { "type": "boolean", "const": true } }, "required": [ "action", "previousDocRefId", "docSuffix", "previousXmlContainsAllActiveUsers" ], "additionalProperties": false } ] }, "users": { "maxItems": 10000, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "action": { "type": "string", "const": "replace" }, "previousDocRefId": { "type": "string", "pattern": "^[\\s\\S]{28,164}$" }, "docSuffix": { "type": "string", "pattern": "^[\\s\\S]{1,63}$" }, "record": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "individual" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "firstName": { "type": "string", "minLength": 1, "maxLength": 200 }, "middleNames": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "lastName": { "type": "string", "minLength": 1, "maxLength": 200 }, "birthDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "birthPlace": { "type": "object", "properties": { "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "citySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "country": { "anyOf": [ { "type": "object", "properties": { "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "countryCode" ], "additionalProperties": false }, { "type": "object", "properties": { "formerCountryName": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "formerCountryName" ], "additionalProperties": false } ] } }, "required": [ "city", "country" ], "additionalProperties": false }, "transactions": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "asset": { "type": "string", "minLength": 1, "maxLength": 200 }, "cryptoToCryptoIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoToCryptoOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoTransferIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF50[1-9]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "cryptoTransferOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF60[1-6]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "walletTransfersOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units" ], "additionalProperties": false } }, "retailPayments": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } } }, "required": [ "asset" ], "additionalProperties": false } } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "firstName", "lastName", "birthDate", "transactions" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "entity" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "organisationIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" }, "type": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "value" ], "additionalProperties": false } }, "transactions": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "asset": { "type": "string", "minLength": 1, "maxLength": 200 }, "cryptoToCryptoIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoToCryptoOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoFiatOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "exchangeType": { "type": "string", "enum": [ "CARF401", "CARF402", "CARF403", "CARF404" ] } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } }, "cryptoTransferIn": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF50[1-9]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "cryptoTransferOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "transferType": { "type": "string", "pattern": "^CARF60[1-6]$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units", "count", "transferType" ], "additionalProperties": false } }, "walletTransfersOut": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "alternativeValuation": { "type": "string", "pattern": "^CARF100[1-4]$" } }, "required": [ "amount", "currency", "units" ], "additionalProperties": false } }, "retailPayments": { "type": "array", "items": { "type": "object", "properties": { "amount": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d{1,2})?$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "units": { "type": "string", "maxLength": 100, "pattern": "^\\d+(?:\\.\\d+)?$" }, "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "amount", "currency", "units", "count" ], "additionalProperties": false } } }, "required": [ "asset" ], "additionalProperties": false } }, "controllingPersons": { "type": "array", "items": { "type": "object", "properties": { "person": { "type": "object", "properties": { "kind": { "type": "string", "const": "individual" }, "residenceCountries": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "tins": { "minItems": 1, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value", "issuedBy" ], "additionalProperties": false }, { "type": "object", "properties": { "value": { "type": "string", "const": "NOTIN" } }, "required": [ "value" ], "additionalProperties": false } ] } }, "addresses": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$" }, "street": { "type": "string", "minLength": 1, "maxLength": 200 }, "buildingIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "suiteIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "floorIdentifier": { "type": "string", "minLength": 1, "maxLength": 200 }, "districtName": { "type": "string", "minLength": 1, "maxLength": 200 }, "poBox": { "type": "string", "minLength": 1, "maxLength": 200 }, "postCode": { "type": "string", "minLength": 1, "maxLength": 200 }, "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "countrySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "additionalInfo": { "type": "string", "minLength": 1, "maxLength": 4000 } }, "required": [ "country", "city" ], "additionalProperties": false } }, "individualIds": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1, "maxLength": 200 }, "issuedBy": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "value" ], "additionalProperties": false } }, "firstName": { "type": "string", "minLength": 1, "maxLength": 200 }, "middleNames": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "lastName": { "type": "string", "minLength": 1, "maxLength": 200 }, "birthDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "birthPlace": { "type": "object", "properties": { "city": { "type": "string", "minLength": 1, "maxLength": 200 }, "citySubentity": { "type": "string", "minLength": 1, "maxLength": 200 }, "country": { "anyOf": [ { "type": "object", "properties": { "countryCode": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "countryCode" ], "additionalProperties": false }, { "type": "object", "properties": { "formerCountryName": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "formerCountryName" ], "additionalProperties": false } ] } }, "required": [ "city", "country" ], "additionalProperties": false } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "firstName", "lastName", "birthDate" ], "additionalProperties": false }, "roles": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^CARF8(?:0[1-9]|1[0-3])$" } } }, "required": [ "person", "roles" ], "additionalProperties": false } } }, "required": [ "kind", "residenceCountries", "tins", "addresses", "name", "transactions" ], "additionalProperties": false } ] } }, "required": [ "action", "previousDocRefId", "docSuffix", "record" ], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string", "const": "delete" }, "previousDocRefId": { "type": "string", "pattern": "^[\\s\\S]{28,164}$" }, "docSuffix": { "type": "string", "pattern": "^[\\s\\S]{1,63}$" } }, "required": [ "action", "previousDocRefId", "docSuffix" ], "additionalProperties": false } ] } } }, "required": [ "messageSuffix", "timestamp", "previousXml", "users" ], "additionalProperties": false, "examples": [ { "previousXml": "\n\nXRCASP000001234GBGBCARFGB2026GB-XRCASP000001234-originalCARF7012026-12-312027-05-01T09:00:00\n\nGB08801357Bramble Digital Markets Ltd
GB10 Exchange RoadEC2A 1AALondon
CARF901OECD1GB2026GB-XRCASP000001234-original-provider
\n
\n
", "messageSuffix": "correction-1", "timestamp": "2027-05-02T09:00:00", "provider": { "action": "replace", "previousDocRefId": "GB2026GB-XRCASP000001234-original-provider", "docSuffix": "provider", "record": { "party": { "kind": "entity", "name": "Bramble Digital Markets Ltd", "residenceCountries": [ "GB" ], "tins": [ { "value": "08801357", "issuedBy": "GB" } ], "addresses": [ { "country": "GB", "city": "London", "street": "10 Exchange Road", "postCode": "EC2A 1AA" } ] }, "nexus": "CARF901" } }, "users": [] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean" }, "reportableUsers": { "type": "integer", "minimum": 0, "maximum": 10000 }, "errors": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string" } }, "required": [ "rule", "path", "expected", "actual", "source" ], "additionalProperties": false } }, "needsReview": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string" } }, "required": [ "rule", "path", "expected", "actual", "source" ], "additionalProperties": false } }, "schemaVersion": { "type": "string", "const": "1.5" }, "xml": { "type": [ "string", "null" ] }, "filename": { "type": [ "string", "null" ] }, "messageRefId": { "type": [ "string", "null" ] } }, "required": [ "valid", "reportableUsers", "errors", "needsReview", "schemaVersion", "xml", "filename", "messageRefId" ], "additionalProperties": false } ``` ## carf.validate Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "history": { "description": "Complete prior accepted CARF XML, oldest first. For correct, supply the files before previousXml.", "type": "array", "items": { "type": "string", "minLength": 1 } }, "xml": { "type": "string", "minLength": 1 }, "filename": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": [ "xml" ], "additionalProperties": false, "examples": [ { "xml": "XRCASP000001234GBGBCARFGB2026GB-XRCASP000001234-nilCARF7032026-12-312027-05-01T09:00:00", "filename": "GB2026GB-XRCASP000001234-nil.xml" } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean" }, "reportableUsers": { "type": "integer", "minimum": 0, "maximum": 10000 }, "errors": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string" } }, "required": [ "rule", "path", "expected", "actual", "source" ], "additionalProperties": false } }, "needsReview": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "path": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string" } }, "required": [ "rule", "path", "expected", "actual", "source" ], "additionalProperties": false } }, "schemaVersion": { "type": "string", "const": "1.5" } }, "required": [ "valid", "reportableUsers", "errors", "needsReview", "schemaVersion" ], "additionalProperties": false } ``` ## cpsc.check Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "certificates": { "minItems": 1, "maxItems": 200, "type": "array", "items": { "type": "object", "properties": { "certificateId": { "type": "string", "minLength": 1, "maxLength": 64, "description": "Your internal certificate key, used by the SKU ledger." }, "type": { "type": "string", "enum": [ "CPC", "GCC" ] }, "productId": { "type": "string", "maxLength": 512 }, "productIdType": { "description": "Use 8, 12, 13 or 14 digits for GTIN, 12 for UPC, or 8 or 13 for EAN. EAN files as GTIN.", "type": "string", "enum": [ "GTIN", "UPC", "EAN", "SKU", "Model Number", "Serial Number", "Registered Number", "Alternate Identifier" ] }, "productName": { "type": "string", "maxLength": 512 }, "description": { "type": "string", "maxLength": 512 }, "sku": { "description": "SKU on the certificate, if separate from its primary ID.", "type": "string", "maxLength": 512 }, "model": { "description": "Model number on the certificate, if separate from its primary ID.", "type": "string", "maxLength": 512 }, "manufacturer": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 512 }, "address1": { "type": "string", "maxLength": 512 }, "address2": { "type": "string", "maxLength": 512 }, "gps": { "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.", "type": "object", "properties": { "latitude": { "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 }, "longitude": { "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 } }, "additionalProperties": false }, "city": { "type": "string", "maxLength": 512 }, "stateProvince": { "description": "Use the ACE Appendix B code for the US, CA or MX.", "type": "string", "maxLength": 512 }, "country": { "description": "ISO alpha-2 country code.", "type": "string", "maxLength": 512 }, "postalCode": { "type": "string", "maxLength": 512 }, "phone": { "type": "string", "maxLength": 512 }, "email": { "type": "string", "maxLength": 512 }, "registry": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 512 }, "idType": { "type": "string", "enum": [ "gln", "alternate" ] }, "isNew": { "type": "boolean", "description": "True to create the trade party on upload." } }, "required": [ "id", "idType", "isNew" ], "additionalProperties": false } }, "additionalProperties": false }, "manufactureMonth": { "type": "string", "pattern": "^\\d{4}-(0[1-9]|1[0-2])$" }, "certifier": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 512 }, "address1": { "type": "string", "maxLength": 512 }, "address2": { "type": "string", "maxLength": 512 }, "gps": { "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.", "type": "object", "properties": { "latitude": { "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 }, "longitude": { "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 } }, "additionalProperties": false }, "city": { "type": "string", "maxLength": 512 }, "stateProvince": { "description": "Use the ACE Appendix B code for the US, CA or MX.", "type": "string", "maxLength": 512 }, "country": { "description": "ISO alpha-2 country code.", "type": "string", "maxLength": 512 }, "postalCode": { "type": "string", "maxLength": 512 }, "phone": { "type": "string", "maxLength": 512 }, "email": { "type": "string", "maxLength": 512 }, "registry": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 512 }, "idType": { "type": "string", "enum": [ "gln", "alternate" ] }, "isNew": { "type": "boolean", "description": "True to create the trade party on upload." } }, "required": [ "id", "idType", "isNew" ], "additionalProperties": false }, "isImporterOfRecord": { "type": "boolean" } }, "required": [ "isImporterOfRecord" ], "additionalProperties": false }, "recordsContact": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 512 }, "address1": { "type": "string", "maxLength": 512 }, "address2": { "type": "string", "maxLength": 512 }, "gps": { "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.", "type": "object", "properties": { "latitude": { "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 }, "longitude": { "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 } }, "additionalProperties": false }, "city": { "type": "string", "maxLength": 512 }, "stateProvince": { "description": "Use the ACE Appendix B code for the US, CA or MX.", "type": "string", "maxLength": 512 }, "country": { "description": "ISO alpha-2 country code.", "type": "string", "maxLength": 512 }, "postalCode": { "type": "string", "maxLength": 512 }, "phone": { "type": "string", "maxLength": 512 }, "email": { "type": "string", "maxLength": 512 }, "registry": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 512 }, "idType": { "type": "string", "enum": [ "gln", "alternate" ] }, "isNew": { "type": "boolean", "description": "True to create the trade party on upload." } }, "required": [ "id", "idType", "isNew" ], "additionalProperties": false }, "isImporterOfRecord": { "type": "boolean" } }, "required": [ "isImporterOfRecord" ], "additionalProperties": false }, "labs": { "maxItems": 16, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "ITL" }, "cpscLabId": { "type": "string", "maxLength": 512 }, "citationCodes": { "maxItems": 125, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 } }, "testDate": { "description": "Legacy date shared by the lab's reports.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reportId": { "description": "Legacy ID or semicolon-separated IDs paired with reportUrl.", "type": "string", "maxLength": 512 }, "reportUrl": { "description": "Legacy URL or semicolon-separated URLs paired with reportId.", "type": "string", "maxLength": 512 }, "reports": { "description": "Reports from this lab, each with its test date. Supply instead of the lab-level testDate, reportId and reportUrl.", "type": "array", "items": { "type": "object", "properties": { "testDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reportId": { "type": "string", "maxLength": 512 }, "reportUrl": { "type": "string", "maxLength": 512 } }, "additionalProperties": false } }, "componentDescription": { "type": "string", "maxLength": 512 }, "testedModel": { "description": "Model named on the report, if supplied.", "type": "string", "maxLength": 512 }, "testedRevision": { "description": "Model revision named on the report, if supplied.", "type": "string", "maxLength": 512 } }, "required": [ "kind" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "LAB" }, "party": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 512 }, "address1": { "type": "string", "maxLength": 512 }, "address2": { "type": "string", "maxLength": 512 }, "gps": { "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.", "type": "object", "properties": { "latitude": { "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 }, "longitude": { "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.", "type": "string", "maxLength": 512 } }, "additionalProperties": false }, "city": { "type": "string", "maxLength": 512 }, "stateProvince": { "description": "Use the ACE Appendix B code for the US, CA or MX.", "type": "string", "maxLength": 512 }, "country": { "description": "ISO alpha-2 country code.", "type": "string", "maxLength": 512 }, "postalCode": { "type": "string", "maxLength": 512 }, "phone": { "type": "string", "maxLength": 512 }, "email": { "type": "string", "maxLength": 512 }, "registry": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 512 }, "idType": { "type": "string", "enum": [ "gln", "alternate" ] }, "isNew": { "type": "boolean", "description": "True to create the trade party on upload." } }, "required": [ "id", "idType", "isNew" ], "additionalProperties": false } }, "additionalProperties": false }, "citationCodes": { "maxItems": 125, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 } }, "testDate": { "description": "Legacy date shared by the lab's reports.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reportId": { "description": "Legacy ID or semicolon-separated IDs paired with reportUrl.", "type": "string", "maxLength": 512 }, "reportUrl": { "description": "Legacy URL or semicolon-separated URLs paired with reportId.", "type": "string", "maxLength": 512 }, "reports": { "description": "Reports from this lab, each with its test date. Supply instead of the lab-level testDate, reportId and reportUrl.", "type": "array", "items": { "type": "object", "properties": { "testDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reportId": { "type": "string", "maxLength": 512 }, "reportUrl": { "type": "string", "maxLength": 512 } }, "additionalProperties": false } }, "componentDescription": { "type": "string", "maxLength": 512 }, "testedModel": { "description": "Model named on the report, if supplied.", "type": "string", "maxLength": 512 }, "testedRevision": { "description": "Model revision named on the report, if supplied.", "type": "string", "maxLength": 512 } }, "required": [ "kind" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "NOL" }, "exclusionCodes": { "maxItems": 60, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 } } }, "required": [ "kind" ], "additionalProperties": false } ] } }, "attested": { "description": "True only if the certifier made the attestation in 16 CFR 1110.11(a)(7).", "type": "boolean" }, "registry": { "type": "object", "properties": { "versionId": { "type": "string", "maxLength": 512 }, "currentVersionId": { "description": "Supply only when updating an existing Registry certificate or adding a new version.", "type": "string", "maxLength": 512 } }, "additionalProperties": false } }, "required": [ "certificateId" ], "additionalProperties": false } }, "skuLedger": { "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 64 }, "model": { "type": "string", "minLength": 1, "maxLength": 64 }, "productId": { "type": "string", "minLength": 1, "maxLength": 64 }, "certificateId": { "type": "string", "minLength": 1, "maxLength": 64 }, "revision": { "type": "string", "minLength": 1, "maxLength": 64 }, "revisionDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "hts": { "type": "string", "pattern": "^\\d{10}$" }, "category": { "type": "string", "enum": [ "bicycle_helmet", "full_size_crib", "clothing_storage_unit" ] } }, "required": [ "sku", "model", "productId", "certificateId", "revision" ], "additionalProperties": false } }, "shipmentLines": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "entryLine": { "type": "integer", "minimum": 1, "maximum": 999 }, "hts": { "type": "string", "pattern": "^\\d{10}$" }, "sku": { "type": "string", "minLength": 1, "maxLength": 64 }, "model": { "type": "string", "minLength": 1, "maxLength": 64 }, "commercialDescription": { "description": "English OI description for this shipment row. Defaults to its linked certificate’s product name.", "type": "string", "maxLength": 512 }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": [ "entryLine", "hts", "sku", "model", "quantity" ], "additionalProperties": false }, "description": "Lines for one CBP entry. Use multiple rows on an entry line for distinct products." }, "registryCertifierId": { "description": "Certifier ID of the destination Product Registry collection, for Reference PG14.", "type": "string", "maxLength": 512 } }, "required": [ "certificates", "skuLedger", "shipmentLines" ], "additionalProperties": false, "examples": [ { "certificates": [ { "certificateId": "GCC-1042", "type": "GCC", "productId": "TL-HELM-01", "productIdType": "SKU", "productName": "Trailline urban bicycle helmet", "model": "TL-01", "manufacturer": { "name": "Summit Protective Gear", "address1": "5 Gongye Road", "city": "Shenzhen", "stateProvince": "Guangdong", "country": "CN", "postalCode": "518000", "phone": "+867555550123", "email": "quality@summit.example", "registry": { "id": "SUMMIT-SZ", "idType": "alternate", "isNew": true } }, "manufactureMonth": "2026-08", "certifier": { "name": "Trailline Imports", "address1": "28 Carson Street", "city": "Portland", "stateProvince": "OR", "country": "US", "postalCode": "97201", "phone": "5035550100", "email": "records@trailline.example", "isImporterOfRecord": true }, "recordsContact": { "name": "Trailline Imports", "address1": "28 Carson Street", "city": "Portland", "stateProvince": "OR", "country": "US", "postalCode": "97201", "phone": "5035550100", "email": "records@trailline.example", "isImporterOfRecord": true }, "labs": [ { "kind": "LAB", "party": { "name": "West Coast Test Lab", "address1": "56 Harbor Way", "city": "Tacoma", "stateProvince": "WA", "country": "US", "postalCode": "98402", "phone": "2535550101", "email": "tests@wctl.example", "registry": { "id": "WCTL", "idType": "alternate", "isNew": true } }, "citationCodes": [ "1203" ], "reports": [ { "testDate": "2026-07-21", "reportId": "WCTL-261572" } ], "testedModel": "TL-01", "testedRevision": "B" } ], "attested": true, "registry": { "versionId": "V2" } } ], "skuLedger": [ { "sku": "TL-HELM-01", "model": "TL-01", "productId": "TL-HELM-01", "certificateId": "GCC-1042", "revision": "B", "revisionDate": "2026-07-08", "category": "bicycle_helmet", "hts": "6506103045" } ], "shipmentLines": [ { "entryLine": 1, "hts": "6506103045", "sku": "TL-HELM-01", "model": "TL-01", "quantity": 480 } ], "registryCertifierId": "TRAILLINE" } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "certificatesChecked": { "type": "integer", "minimum": 1, "maximum": 200 }, "sources": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": "object", "properties": { "version": { "type": "string" }, "url": { "type": "string", "format": "uri" } }, "required": [ "version", "url" ], "additionalProperties": false } }, "commercialDescriptions": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Zero-based index into shipmentLines." }, "hts": { "type": "string" }, "oi": { "type": "object", "properties": { "record": { "type": "string", "enum": [ "OI", "PG01", "PG02", "PG07", "PG10", "PG14", "PG19", "PG20", "PG21", "PG22", "PG30", "PG60" ] }, "fields": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": "string" }, "description": "CATAIR data elements before fixed-width ACE serialization." } }, "required": [ "record", "fields" ], "additionalProperties": false } }, "required": [ "row", "hts", "oi" ], "additionalProperties": false }, "description": "OI candidates by shipment row. Use one OI per HTS code when assembling PGA records." }, "certificates": { "type": "array", "items": { "type": "object", "properties": { "certificateId": { "type": "string" }, "findings": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "warning" ] }, "code": { "type": "string" }, "location": { "type": "string", "description": "JSON Pointer into the request." }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "section": { "type": "string" } }, "required": [ "url", "section" ], "additionalProperties": false } }, "required": [ "severity", "code", "location", "expected", "actual", "source" ], "additionalProperties": false } }, "fullFindings": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "warning" ] }, "code": { "type": "string" }, "location": { "type": "string", "description": "JSON Pointer into the request." }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "section": { "type": "string" } }, "required": [ "url", "section" ], "additionalProperties": false } }, "required": [ "severity", "code", "location", "expected", "actual", "source" ], "additionalProperties": false } }, "fullPgaBody": { "description": "Append after PG01 in a linked line’s fullPgaHeader.", "type": "array", "items": { "type": "object", "properties": { "record": { "type": "string", "enum": [ "OI", "PG01", "PG02", "PG07", "PG10", "PG14", "PG19", "PG20", "PG21", "PG22", "PG30", "PG60" ] }, "fields": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": "string" }, "description": "CATAIR data elements before fixed-width ACE serialization." } }, "required": [ "record", "fields" ], "additionalProperties": false } }, "registryFindings": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "warning" ] }, "code": { "type": "string" }, "location": { "type": "string", "description": "JSON Pointer into the request." }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "section": { "type": "string" } }, "required": [ "url", "section" ], "additionalProperties": false } }, "required": [ "severity", "code", "location", "expected", "actual", "source" ], "additionalProperties": false } } }, "required": [ "certificateId", "findings", "fullFindings", "registryFindings" ], "additionalProperties": false } }, "lines": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Zero-based index into shipmentLines." }, "entryLine": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "hts": { "type": "string" }, "sku": { "type": "string" }, "model": { "type": "string" }, "quantity": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "certificateId": { "description": "Look up this ID in certificates for findings shared by all linked lines.", "type": "string" }, "status": { "type": "string", "enum": [ "checked", "needs_review", "error" ] }, "findings": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "warning" ] }, "code": { "type": "string" }, "location": { "type": "string", "description": "JSON Pointer into the request." }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "section": { "type": "string" } }, "required": [ "url", "section" ], "additionalProperties": false } }, "required": [ "severity", "code", "location", "expected", "actual", "source" ], "additionalProperties": false } }, "fullPgaHeader": { "description": "PG01. Append fullPgaBody from the linked certificate to complete the Full message.", "type": "array", "items": { "type": "object", "properties": { "record": { "type": "string", "enum": [ "OI", "PG01", "PG02", "PG07", "PG10", "PG14", "PG19", "PG20", "PG21", "PG22", "PG30", "PG60" ] }, "fields": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": "string" }, "description": "CATAIR data elements before fixed-width ACE serialization." } }, "required": [ "record", "fields" ], "additionalProperties": false } }, "referenceFindings": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "warning" ] }, "code": { "type": "string" }, "location": { "type": "string", "description": "JSON Pointer into the request." }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "section": { "type": "string" } }, "required": [ "url", "section" ], "additionalProperties": false } }, "required": [ "severity", "code", "location", "expected", "actual", "source" ], "additionalProperties": false } }, "referencePgaAfterCertification": { "description": "File these fields after the product version is certified in the destination Registry.", "type": "array", "items": { "type": "object", "properties": { "record": { "type": "string", "enum": [ "OI", "PG01", "PG02", "PG07", "PG10", "PG14", "PG19", "PG20", "PG21", "PG22", "PG30", "PG60" ] }, "fields": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "type": "string" }, "description": "CATAIR data elements before fixed-width ACE serialization." } }, "required": [ "record", "fields" ], "additionalProperties": false } } }, "required": [ "row", "entryLine", "hts", "sku", "model", "quantity", "status", "findings", "referenceFindings" ], "additionalProperties": false } }, "registryCsv": { "type": "object", "properties": { "headers": { "type": "array", "items": { "type": "string" } }, "rows": { "type": "array", "items": { "type": "object", "properties": { "certificateId": { "type": "string" }, "cells": { "type": "array", "items": { "type": "string" }, "description": "CSV field values in headers order. Do not include certificateId as a CSV column." } }, "required": [ "certificateId", "cells" ], "additionalProperties": false } } }, "required": [ "headers", "rows" ], "additionalProperties": false } }, "required": [ "certificatesChecked", "sources", "commercialDescriptions", "certificates", "lines", "registryCsv" ], "additionalProperties": false } ``` ## pfas.report Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Date on which to assess the reporting obligation under the cited rules." }, "products": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "brand": { "type": "string", "minLength": 1, "maxLength": 512 }, "model": { "type": "string", "minLength": 1, "maxLength": 512 }, "upc": { "type": "string", "pattern": "^\\d{12}$" }, "hts": { "description": "6-, 8-, or 10-digit Harmonized Tariff Schedule code with optional dots or spaces. UPC, HTS and GPC brick have equal priority in Minnesota. Maine uses this code when maineNotification.hts is omitted and requires ten digits for a CUU match.", "type": "string", "pattern": "^\\s*\\d(?:[.\\s]*\\d){5}(?:(?:[.\\s]*\\d){2}){0,2}\\s*$" }, "gpcBrick": { "description": "Eight-digit Global Product Classification brick assigned to the finished product. Maine uses this code when maineNotification.gpcBrick is omitted.", "type": "string", "pattern": "^\\d{8}$" }, "sku": { "type": "string", "minLength": 1, "maxLength": 512 }, "nonharmonizedCode": { "description": "A nonharmonized numeric code other than SKU, such as a part number, assigned to the finished product.", "type": "object", "properties": { "code": { "type": "string", "maxLength": 512, "pattern": "^\\d+$" }, "typeName": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "code", "typeName" ], "additionalProperties": false }, "labelCode": { "description": "Other numeric code used on a label, listing, invoice or receipt. Provide its name for the PRISM Other Code Type Name field.", "type": "object", "properties": { "code": { "type": "string", "maxLength": 512, "pattern": "^\\d+$" }, "typeName": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "code", "typeName" ], "additionalProperties": false }, "category": { "type": "string", "minLength": 1, "maxLength": 512, "description": "Use \"Food packaging\" or \"Class B firefighting foam\" for Minnesota products regulated under Minn. Stat. § 325F.075 or § 325F.072, respectively." }, "statesSold": { "minItems": 1, "maxItems": 2, "type": "array", "items": { "type": "string", "enum": [ "MN", "ME" ] }, "description": "Supported markets to assess. Include MN for planned market entry and provide firstMinnesotaSaleDate for MPCA reporting." }, "manufactureDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "firstMinnesotaSaleDate": { "description": "Earliest actual or planned date of sale, offer for sale, or distribution in or into Minnesota. Use the first market date for the product, not a production or shipment date for the current batch.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "minnesotaReportedDescription": { "description": "Supply the exact Product Model description from the filed MPCA report that covers this product. Omit it for any unreported product, including a new product from a manufacturer that already reports other products.", "type": "string", "minLength": 1, "maxLength": 512 }, "minnesotaReplacementFor": { "description": "Supply only for a replacement part made by the same manufacturer and already covered by the original product report, with matching form, PFAS composition, concentration range, and function. Assess any separately reportable replacement-part packaging with the original product.", "type": "object", "properties": { "reportedProductDescription": { "type": "string", "minLength": 1, "maxLength": 512, "description": "Product Model in the original product's filed PRISM report." }, "reportedComponentName": { "type": "string", "minLength": 1, "maxLength": 512, "description": "Component in the filed report that covers this replacement part." } }, "required": [ "reportedProductDescription", "reportedComponentName" ], "additionalProperties": false }, "minnesotaUpdates": { "description": "Outstanding significant changes or new product information for a filed MPCA product. Omit or pass an empty list when no update is outstanding. Each affected calendar year has one February 1 deadline in the following year.", "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reason": { "type": "string", "enum": [ "significant_change", "new_information" ] } }, "required": [ "date", "reason" ], "additionalProperties": false } }, "minnesotaWaiver": { "description": "Annual waiver decision or request for a specific outstanding MPCA report. Supply the applicable reporting due date before any waiver adjustment. For a partial approval, list the requirements waived by MPCA.", "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "const": "prepare_request" }, "reportingDueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "status", "reportingDueDate" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "denied" }, "reportingDueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "noticeDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "status", "reportingDueDate", "noticeDate" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "partial_approved" }, "reportingDueDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "waivedRequirements": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 512 } } }, "required": [ "status", "reportingDueDate", "waivedRequirements" ], "additionalProperties": false } ] }, "exemptions": { "description": "State-specific screening result. Select federal preemption only where federal law preempts state regulation of PFAS presence. Select full_reporting_waiver for an approved waiver covering all waivable fields in that state.", "type": "object", "properties": { "MN": { "type": "string", "enum": [ "none", "review", "used", "federal_preemption", "full_reporting_waiver", "regulated_firefighting_foam", "regulated_food_packaging", "classified_information" ], "description": "Verified reporting exemption under Minn. Stat. § 116.943 subds. 3 or 8(a) or Minn. R. 7026.0090. Classified information applies when all otherwise reportable information is classified and provided to a federal agency. Use review for uncertain or partial exemptions or third-party reporting." }, "ME": { "type": "string", "enum": [ "none", "review", "used", "federal_preemption", "full_reporting_waiver", "exempt_packaging", "regulated_firefighting_foam", "fda_medical_product", "regulated_veterinary_product", "public_health_environmental_or_water_testing", "federal_agency_standards", "motor_vehicle_or_equipment", "watercraft_or_seaplane", "semiconductor_or_manufacturing_input", "nonconsumer_electronics_or_lab_equipment", "direct_manufacturing_or_development_equipment" ], "description": "Verified exemption or waiver under 38 M.R.S. § 1614(3)–(4). For full_reporting_waiver, the DEP must have waived all waivable notification fields. Report the manufacturer, responsible official, applicable CUU and public information location under Chapter 90 § 3(A)(2). Exempt packaging excludes packaging sold as the manufacturer's product and fluorinated or intentionally added PFAS containers for products covered by § 1614(5)(B), (B-1), (D) or (E). The veterinary exemption excludes EPA-approved aerial or land application. Select federal agency standards, motor vehicle or watercraft only for qualifying products and exclude textile articles and refrigerants. Use review for uncertain or partial exemptions." } }, "additionalProperties": false }, "minnesotaAgency": { "description": "Select MDA for products regulated under Minn. Stat. ch. 18B or 18C and specify kind for each component. Defaults to MPCA.", "type": "string", "enum": [ "MPCA", "MDA" ] }, "minnesotaMdaCategories": { "description": "Select MDA product categories from the enum. For example, use fertilizer_pesticide_combination for weed and feed. Common aliases are accepted. If omitted, category must match an enum value or alias. Unrecognized categories need review.", "minItems": 1, "maxItems": 15, "type": "array", "items": { "anyOf": [ { "type": "string", "enum": [ "pesticide", "fertilizer", "specialty_fertilizer", "soil_amendment", "plant_amendment", "agricultural_liming_material", "fertilizer_pesticide_combination", "minimum_risk_fertilizer_pesticide_combination", "manufacturing_use_pesticide", "supplemental_distributor_pesticide", "plant_incorporated_protectant", "minimum_risk_pesticide", "pesticide_spray_adjuvant", "pest_control_device", "epa_exempt_physical_barrier" ] }, { "type": "string", "minLength": 1, "maxLength": 512 } ] } }, "minnesotaMdaFilingTypes": { "description": "Select the filing type for each applicable MDA registration or license. An explicit type takes precedence. Otherwise, a pesticide renewal schedule implies renewal for the pesticide registration. With no renewal evidence for the filing, firstMinnesotaSaleDate implies an initial filing and sets the deadline to have approval in place. Obtain any required license before beginning licensed activity.", "type": "object", "propertyNames": { "type": "string", "enum": [ "pesticide", "fertilizer", "specialty_fertilizer", "soil_amendment", "plant_amendment", "agricultural_liming_material" ] }, "additionalProperties": { "type": "string", "enum": [ "initial", "renewal" ] } }, "minnesotaPesticideRegistration": { "description": "Filing schedule for a pesticide renewal under § 18B.26 subd. 7. A filing date outside the reporting year needs review. Without a schedule, a confirmed renewal uses the preceding December 31 after the initial 2026 reporting cycle.", "type": "object", "properties": { "reportingYear": { "type": "integer", "minimum": 2026, "maximum": 9999, "description": "Calendar year in which to submit the pesticide renewal statement and any ingredient report." }, "registrationDueDate": { "description": "Scheduled renewal filing date within the reporting year. Defaults to December 31 of that year.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "reportingYear" ], "additionalProperties": false }, "minnesotaExtensionApproved": { "description": "For a decided MPCA extension request for the 2026 initial report, set true for approval or false for denial. Omit for the standard deadline when no request was denied or approved.", "type": "boolean" }, "extensionDenialNoticeDate": { "description": "Date of the MPCA denial notice for the 2026 initial report extension request. A denial needs this date to determine the reporting deadline.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "manufacturerEmployees": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "maineUse": { "description": "Match the actual PFAS use to Maine Chapter 90 § 9(B). Use other if neither designation applies, or pending for a proposed designation.", "type": "string", "enum": [ "cleaning_cartridge_valve", "cleaning_vented_cap_liner", "other", "pending" ] }, "maineNotification": { "type": "object", "properties": { "hts": { "description": "Harmonized Tariff Schedule code with optional dots or spaces. A Maine CUU match requires ten digits.", "type": "string", "pattern": "^\\s*\\d(?:[.\\s]*\\d){5}(?:(?:[.\\s]*\\d){2}){0,2}\\s*$" }, "gpcBrick": { "type": "object", "properties": { "code": { "type": "string", "pattern": "^\\d{8}$" }, "category": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "code" ], "additionalProperties": false }, "naics": { "minItems": 1, "maxItems": 20, "type": "array", "items": { "type": "string", "pattern": "^\\d{6}$" } }, "intendedUse": { "type": "string", "minLength": 1, "maxLength": 512 }, "annualSales": { "type": "object", "properties": { "market": { "type": "string", "enum": [ "ME", "US" ] }, "units": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "market", "units" ], "additionalProperties": false }, "manufacturer": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "address": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "name", "address" ], "additionalProperties": false }, "official": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "address": { "type": "string", "minLength": 1, "maxLength": 512 }, "email": { "type": "string", "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "phone": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "name", "address", "email", "phone" ], "additionalProperties": false }, "publicInformationLocation": { "description": "Directions to the publicly available substantially equivalent information. Required under Chapter 90 § 3(A)(2)(b) when using a DEP waiver.", "type": "string", "minLength": 1, "maxLength": 512 }, "totalOrganicFluorineWeightPercent": { "description": "Total organic fluorine measured by a commercially available analytical method when individual amounts cannot reasonably be obtained.", "type": "number", "exclusiveMinimum": 0, "maximum": 100 }, "totalWeightGrams": { "description": "Fallback when individual amounts and TOF cannot reasonably be obtained.", "type": "number", "exclusiveMinimum": 0 } }, "additionalProperties": false }, "components": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512, "description": "Reportable component or homogeneous material. Include integral packaging where applicable." }, "kind": { "description": "Classify each component for Minnesota MDA products. Formulation means active or inert ingredients of the registered formulation. Packaging and other components route to MPCA.", "type": "string", "enum": [ "formulation", "packaging", "other" ] }, "declarations": { "maxItems": 100, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "const": "present", "description": "An intentionally added PFAS is present in the finished component." }, "supplier": { "type": "string", "minLength": 1, "maxLength": 512 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "substanceName": { "type": "string", "minLength": 1, "maxLength": 512, "description": "Chemical name. For Maine, supply the IUPAC name when no CAS RN exists." }, "casRn": { "description": "CAS RN when known. For an unidentified Minnesota PFAS, leave blank and select the PRISM unknown chemical option in prism.name.", "type": "string", "maxLength": 512 }, "purposes": { "maxItems": 20, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 512 } }, "concentration": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "exact" }, "value": { "type": "number", "exclusiveMinimum": 0 }, "unit": { "type": "string", "enum": [ "ppm", "percent" ] }, "basis": { "type": "string", "enum": [ "analytical", "supplier" ] } }, "required": [ "kind", "value", "unit" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "range" }, "min": { "type": "number", "exclusiveMinimum": 0 }, "max": { "type": "number", "exclusiveMinimum": 0 }, "unit": { "type": "string", "enum": [ "ppm", "percent" ] } }, "required": [ "kind", "min", "max", "unit" ], "additionalProperties": false } ], "description": "Weight concentration in the declared component or in the homogeneous product. Ranges include both endpoints." }, "detectionLimitPpm": { "type": "number", "exclusiveMinimum": 0 }, "melsRange": { "description": "DEP-approved range verified by the caller in MELS.", "type": "object", "properties": { "label": { "type": "string", "minLength": 1, "maxLength": 512 }, "minWeightPercent": { "type": "number", "minimum": 0, "maximum": 100 }, "maxWeightPercent": { "type": "number", "exclusiveMinimum": 0, "maximum": 100 }, "maxInclusive": { "type": "boolean" } }, "required": [ "label", "minWeightPercent", "maxWeightPercent", "maxInclusive" ], "additionalProperties": false }, "prism": { "description": "Values verified in the current PRISM reference. For confirmed presence with unknown identity, use \"PFAS Present but unknown at this time\" as name.", "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "functions": { "minItems": 1, "maxItems": 20, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 512 } }, "otherIdentifier": { "description": "Verified alternative chemical identifying number for a chemical with no CAS RN. Confirm with MPCA before using Other.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "TSCARN", "EC", "Other" ] }, "number": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "kind", "number" ], "additionalProperties": false }, "totalOrganicFluorineWeightPercent": { "description": "Analytically measured total organic fluorine as weight percent of this homogeneous component. Select TOF as name and use only when individual amounts cannot be obtained through due diligence.", "type": "number", "exclusiveMinimum": 0, "maximum": 100 }, "tradeSecretSubclass": { "type": "string", "enum": [ "Perfluoroalkyl substances", "Polyfluoroalkyl substances", "Fluoropolymers", "Polymeric perfluoropolyethers", "Side-chain fluorinated polymers", "Functional group(s) other than alkyls present" ] } }, "required": [ "name", "functions" ], "additionalProperties": false } }, "required": [ "status", "supplier", "date", "substanceName" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "absent" }, "supplier": { "type": "string", "minLength": 1, "maxLength": 512 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "status", "supplier", "date" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "unknown" }, "supplier": { "type": "string", "minLength": 1, "maxLength": 512 }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "status", "supplier", "date" ], "additionalProperties": false } ] } } }, "required": [ "name", "declarations" ], "additionalProperties": false }, "description": "List each reportable component. For Minnesota, group components only when they share PFAS composition, concentration bands, and function, and differ only superficially." } }, "required": [ "name", "category", "statesSold", "components" ], "additionalProperties": false } } }, "required": [ "asOf", "products" ], "additionalProperties": false, "examples": [ { "asOf": "2026-11-24", "products": [ { "name": "Battery lawnmower", "brand": "North Yard", "model": "NY-48V", "category": "Outdoor power equipment", "upc": "012345678905", "statesSold": [ "MN", "ME" ], "manufactureDate": "2026-07-27", "firstMinnesotaSaleDate": "2026-11-19", "exemptions": { "MN": "none", "ME": "none" }, "maineUse": "other", "components": [ { "name": "Blade housing gasket", "declarations": [ { "status": "present", "supplier": "North Shore Seals", "date": "2026-07-20", "substanceName": "Polytetrafluoroethylene", "casRn": "9002-84-0", "purposes": [ "Sealant" ], "concentration": { "kind": "range", "min": 90, "max": 100, "unit": "percent" }, "prism": { "name": "PTFE", "functions": [ "Barrier (Sealant)" ] } } ] } ] } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "pairCount": { "type": "integer", "minimum": 1, "maximum": 500 }, "sources": { "type": "object", "properties": { "MN": { "type": "array", "items": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false } }, "ME": { "type": "array", "items": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false } } }, "required": [ "MN", "ME" ], "additionalProperties": false }, "results": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "productIndex": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "productName": { "type": "string" }, "obligation": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string" }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "status": { "type": "string", "enum": [ "required", "not_required", "needs_review", "pending" ] } }, "required": [ "code", "source", "status" ], "additionalProperties": false }, { "type": "object", "properties": { "code": { "type": "string" }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "status": { "type": "string", "const": "not_yet_required" }, "startsOn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "code", "source", "status", "startsOn" ], "additionalProperties": false } ] }, "filingStatus": { "type": "string", "enum": [ "ready", "needs_review", "pending", "not_applicable" ] }, "unresolved": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string" }, "paths": { "type": "array", "items": { "type": "string" } }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "mdaCategory": { "type": "string", "enum": [ "pesticide", "fertilizer", "specialty_fertilizer", "soil_amendment", "plant_amendment", "agricultural_liming_material" ] } }, "required": [ "code", "paths", "expected", "actual", "source" ], "additionalProperties": false } }, "state": { "type": "string", "const": "MN" }, "format": { "type": "string", "const": "PRISM" }, "rows": { "type": "array", "items": { "type": "object", "properties": { "Brand Name": { "type": "string" }, "Product Model": { "type": "string" }, "Product Code Type": { "type": "string", "enum": [ "UPC", "HTS", "SKU", "Other", "None" ] }, "Other Code Type Name": { "type": "string" }, "Product Code": { "type": "string" }, "Component": { "type": "string" }, "PFAS Identifier Type": { "type": "string", "enum": [ "CASRN", "TSCARN", "EC", "Other", "TOF" ] }, "Other PFAS Identifier Type Name": { "type": "string" }, "PFAS Name": { "type": "string" }, "PFAS Function": { "type": "string" }, "PFAS Range": { "type": "string" }, "Trade Secret": { "type": "string", "enum": [ "Yes", "No" ] }, "Trade Secret Chemical Sub-Class": { "type": "string" } }, "required": [ "Brand Name", "Product Model", "Product Code Type", "Other Code Type Name", "Product Code", "Component", "PFAS Identifier Type", "Other PFAS Identifier Type Name", "PFAS Name", "PFAS Function", "PFAS Range", "Trade Secret", "Trade Secret Chemical Sub-Class" ], "additionalProperties": false } }, "concentrationBands": { "type": "array", "items": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" } }, "label": { "type": "string" }, "minPpm": { "type": [ "number", "null" ] }, "maxPpm": { "type": [ "number", "null" ] } }, "required": [ "paths", "label", "minPpm", "maxPpm" ], "additionalProperties": false } }, "reportingDeadlines": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "initial", "new_product", "annual_update", "waiver_request", "mda_registration_statement", "mda_ingredient_report" ] }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "overdue": { "type": "boolean", "description": "Whether asOf is after the due date for the outstanding report or waiver request." }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "mdaCategory": { "type": "string", "enum": [ "pesticide", "fertilizer", "specialty_fertilizer", "soil_amendment", "plant_amendment", "agricultural_liming_material" ] } }, "required": [ "kind", "date", "overdue", "source" ], "additionalProperties": false } }, "mdaRegistrations": { "description": "Each applicable MDA registration or license, ordered by its statement deadline, with undated filings last.", "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string", "enum": [ "pesticide", "fertilizer", "specialty_fertilizer", "soil_amendment", "plant_amendment", "agricultural_liming_material" ] }, "reportingYear": { "description": "Calendar year of the identified filing cycle. Omitted when the cycle needs review.", "type": "integer", "minimum": 2026, "maximum": 9999 }, "statement": { "anyOf": [ { "type": "string", "enum": [ "PFAS YES", "PFAS NO" ] }, { "type": "null" } ], "description": "Product-level PFAS statement for the MDA registration or license application or renewal. Null when formulation evidence is incomplete." }, "obligation": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string" }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "status": { "type": "string", "enum": [ "required", "not_required", "needs_review", "pending" ] } }, "required": [ "code", "source", "status" ], "additionalProperties": false }, { "type": "object", "properties": { "code": { "type": "string" }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "status": { "type": "string", "const": "not_yet_required" }, "startsOn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "code", "source", "status", "startsOn" ], "additionalProperties": false } ] } }, "required": [ "category", "statement", "obligation" ], "additionalProperties": false } } }, "required": [ "productIndex", "productName", "obligation", "filingStatus", "unresolved", "state", "format", "rows", "concentrationBands", "reportingDeadlines" ], "additionalProperties": false }, { "type": "object", "properties": { "productIndex": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "productName": { "type": "string" }, "obligation": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string" }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "status": { "type": "string", "enum": [ "required", "not_required", "needs_review", "pending" ] } }, "required": [ "code", "source", "status" ], "additionalProperties": false }, { "type": "object", "properties": { "code": { "type": "string" }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "status": { "type": "string", "const": "not_yet_required" }, "startsOn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "code", "source", "status", "startsOn" ], "additionalProperties": false } ] }, "filingStatus": { "type": "string", "enum": [ "ready", "needs_review", "pending", "not_applicable" ] }, "unresolved": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string" }, "paths": { "type": "array", "items": { "type": "string" } }, "expected": { "type": "string" }, "actual": { "type": [ "string", "null" ] }, "source": { "type": "object", "properties": { "citation": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "citation", "url", "version" ], "additionalProperties": false }, "mdaCategory": { "type": "string", "enum": [ "pesticide", "fertilizer", "specialty_fertilizer", "soil_amendment", "plant_amendment", "agricultural_liming_material" ] } }, "required": [ "code", "paths", "expected", "actual", "source" ], "additionalProperties": false } }, "state": { "type": "string", "const": "ME" }, "format": { "type": "string", "const": "MELS" }, "rows": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "cuu": { "type": "string" }, "manufacturer": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "address": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "name", "address" ], "additionalProperties": false }, "official": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "address": { "type": "string", "minLength": 1, "maxLength": 512 }, "email": { "type": "string", "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "phone": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "name", "address", "email", "phone" ], "additionalProperties": false }, "productName": { "type": "string" }, "productCategory": { "type": "string" }, "intendedUse": { "type": "string" }, "hts": { "type": "string" }, "gpcBrick": { "type": "object", "properties": { "code": { "type": "string", "pattern": "^\\d{8}$" }, "category": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "code" ], "additionalProperties": false }, "naics": { "type": "array", "items": { "type": "string" } }, "annualSales": { "type": "object", "properties": { "market": { "type": "string", "enum": [ "ME", "US" ] }, "units": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "market", "units" ], "additionalProperties": false }, "substances": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "component": { "type": "string" }, "name": { "type": "string" }, "casRn": { "description": "Omitted when name supplies the IUPAC identifier.", "type": "string" }, "purposes": { "type": "array", "items": { "type": "string" } }, "amount": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "exact" }, "weightPercent": { "type": "number", "exclusiveMinimum": 0 }, "basis": { "type": "string", "enum": [ "analytical", "supplier" ] } }, "required": [ "kind", "weightPercent", "basis" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "approved_range" }, "range": { "type": "object", "properties": { "label": { "type": "string", "minLength": 1, "maxLength": 512 }, "minWeightPercent": { "type": "number", "minimum": 0, "maximum": 100 }, "maxWeightPercent": { "type": "number", "exclusiveMinimum": 0, "maximum": 100 }, "maxInclusive": { "type": "boolean" } }, "required": [ "label", "minWeightPercent", "maxWeightPercent", "maxInclusive" ], "additionalProperties": false } }, "required": [ "kind", "range" ], "additionalProperties": false } ] } }, "required": [ "component", "name", "purposes" ], "additionalProperties": false } }, "totalOrganicFluorineWeightPercent": { "description": "Total organic fluorine measured by a commercially available analytical method when individual amounts cannot reasonably be obtained.", "type": "number", "exclusiveMinimum": 0, "maximum": 100 }, "totalWeightGrams": { "description": "Fallback when individual amounts and TOF cannot reasonably be obtained.", "type": "number", "exclusiveMinimum": 0 } }, "required": [ "cuu", "manufacturer", "official", "productName", "productCategory", "intendedUse", "hts", "naics", "annualSales", "substances" ], "additionalProperties": false }, { "type": "object", "properties": { "cuu": { "type": "string" }, "manufacturer": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "address": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "name", "address" ], "additionalProperties": false }, "official": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 512 }, "address": { "type": "string", "minLength": 1, "maxLength": 512 }, "email": { "type": "string", "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "phone": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "name", "address", "email", "phone" ], "additionalProperties": false }, "publicInformationLocation": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "cuu", "manufacturer", "official", "publicInformationLocation" ], "additionalProperties": false } ] } } }, "required": [ "productIndex", "productName", "obligation", "filingStatus", "unresolved", "state", "format", "rows" ], "additionalProperties": false } ] } } }, "required": [ "asOf", "pairCount", "sources", "results" ], "additionalProperties": false } ``` ## rentroll.reconcile Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$", "description": "Rent roll snapshot date for this property." }, "rentBasis": { "description": "Declare the basis of the rent roll amounts. A confirmed reconciliation requires monthly amounts.", "type": "string", "enum": [ "monthly", "annual" ] }, "rentRoll": { "oneOf": [ { "type": "object", "properties": { "format": { "type": "string", "const": "json" }, "property": { "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.", "type": "string", "minLength": 1, "maxLength": 240 }, "unitCount": { "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "statementType": { "description": "Declare the report type. A confirmed reconciliation requires actuals.", "type": "string", "enum": [ "actual", "budget", "forecast" ] }, "scale": { "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.", "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 1000 }, { "type": "number", "const": 1000000 } ] }, "asOf": { "description": "Declared date of the source rent roll. Must agree with the requested snapshot date and any date printed on the export.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "subsidized": { "description": "Whether the property has subsidized units. Provide explicit Contract Rent or both Tenant Portion and Subsidy (HAP) amounts. Declare false only if no units receive rent subsidies.", "type": "boolean" }, "units": { "minItems": 1, "maxItems": 3000, "type": "array", "items": { "type": "object", "properties": { "unit": { "type": "string", "minLength": 1, "maxLength": 240, "description": "Unique unit key within the property. Include the building in this key for repeated unit numbers." }, "tenant": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 240 }, { "type": "null" } ] }, "status": { "type": "string", "enum": [ "occupied", "vacant", "model", "down", "unknown" ] }, "futureLease": { "description": "A future lease record. Keep a separate row for the unit’s current status.", "type": "boolean" }, "monthToMonth": { "description": "Verified month-to-month lease. The lease end may be omitted.", "type": "boolean" }, "squareFeet": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000000 }, { "type": "null" } ] }, "moveIn": { "description": "Actual move-in date, separate from the lease start.", "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "leaseStart": { "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "leaseEnd": { "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "marketRent": { "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "contractRent": { "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "concessions": { "description": "Monthly concession with the source sign. Use a consistent sign across units. Enter zero when verified.", "anyOf": [ { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "charges": { "description": "Monthly charges keyed by source charge code.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 } }, "balance": { "description": "Balance with the source sign convention.", "anyOf": [ { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] } }, "required": [ "unit", "status" ], "additionalProperties": false } } }, "required": [ "format", "units" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "csv" }, "text": { "type": "string", "minLength": 1, "maxLength": 2097152, "description": "UTF-8, comma-delimited CSV." }, "headerRow": { "type": "integer", "minimum": 1, "maximum": 100 }, "property": { "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.", "type": "string", "minLength": 1, "maxLength": 240 }, "unitCount": { "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "statementType": { "description": "Declare the report type. A confirmed reconciliation requires actuals.", "type": "string", "enum": [ "actual", "budget", "forecast" ] }, "scale": { "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.", "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 1000 }, { "type": "number", "const": 1000000 } ] }, "asOf": { "description": "Declared date of the source rent roll. Must agree with the requested snapshot date and any date printed on the export.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "subsidized": { "description": "Whether the property has subsidized units. Provide explicit Contract Rent or both Tenant Portion and Subsidy (HAP) amounts. Declare false only if no units receive rent subsidies.", "type": "boolean" }, "columns": { "description": "Exact header overrides. Map charge columns to charges:.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "anyOf": [ { "type": "string", "enum": [ "unit", "tenant", "status", "squareFeet", "moveIn", "leaseStart", "leaseEnd", "marketRent", "contractRent", "concessions", "balance" ] }, { "type": "string", "pattern": "^charges:[^\\s].{0,99}$" }, { "type": "string", "const": "ignore" } ] } } }, "required": [ "format", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "xlsx" }, "base64": { "type": "string", "minLength": 4, "maxLength": 2796204, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$" }, "sheet": { "description": "Worksheet name. Defaults to the first worksheet.", "type": "string", "minLength": 1, "maxLength": 240 }, "headerRow": { "type": "integer", "minimum": 1, "maximum": 100 }, "property": { "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.", "type": "string", "minLength": 1, "maxLength": 240 }, "unitCount": { "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "statementType": { "description": "Declare the report type. A confirmed reconciliation requires actuals.", "type": "string", "enum": [ "actual", "budget", "forecast" ] }, "scale": { "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.", "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 1000 }, { "type": "number", "const": 1000000 } ] }, "asOf": { "description": "Declared date of the source rent roll. Must agree with the requested snapshot date and any date printed on the export.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "subsidized": { "description": "Whether the property has subsidized units. Provide explicit Contract Rent or both Tenant Portion and Subsidy (HAP) amounts. Declare false only if no units receive rent subsidies.", "type": "boolean" }, "columns": { "description": "Exact header overrides. Map charge columns to charges:.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "anyOf": [ { "type": "string", "enum": [ "unit", "tenant", "status", "squareFeet", "moveIn", "leaseStart", "leaseEnd", "marketRent", "contractRent", "concessions", "balance" ] }, { "type": "string", "pattern": "^charges:[^\\s].{0,99}$" }, { "type": "string", "const": "ignore" } ] } } }, "required": [ "format", "base64" ], "additionalProperties": false } ] }, "t12": { "oneOf": [ { "type": "object", "properties": { "format": { "type": "string", "const": "json" }, "property": { "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.", "type": "string", "minLength": 1, "maxLength": 240 }, "unitCount": { "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "statementType": { "description": "Declare the report type. A confirmed reconciliation requires actuals.", "type": "string", "enum": [ "actual", "budget", "forecast" ] }, "scale": { "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.", "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 1000 }, { "type": "number", "const": 1000000 } ] }, "asOf": { "description": "End date of the final T12 period.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "columnsAreMonthlyActuals": { "description": "Declare true only when the month columns contain standalone monthly actuals for this property.", "type": "boolean" }, "months": { "minItems": 12, "maxItems": 12, "type": "array", "items": { "type": "string", "pattern": "^\\d{4}-(0[1-9]|1[0-2])$" }, "description": "Consecutive calendar months in ascending YYYY-MM order." }, "lines": { "minItems": 1, "maxItems": 3000, "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string", "minLength": 1, "maxLength": 240 }, "code": { "type": "string", "minLength": 1, "maxLength": 240 }, "category": { "type": "string", "enum": [ "grossPotentialRent", "lossToLease", "vacancy", "concessions", "badDebt", "rentCollected", "otherIncome", "expenses", "noi", "unmapped" ] }, "amounts": { "minItems": 12, "maxItems": 12, "type": "array", "items": { "anyOf": [ { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "description": "Monthly amounts in the same currency as the rent roll. Null means unavailable." } }, "required": [ "label", "amounts" ], "additionalProperties": false } } }, "required": [ "format", "months", "lines" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "csv" }, "text": { "type": "string", "minLength": 1, "maxLength": 2097152, "description": "UTF-8, comma-delimited CSV." }, "headerRow": { "type": "integer", "minimum": 1, "maximum": 100 }, "property": { "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.", "type": "string", "minLength": 1, "maxLength": 240 }, "unitCount": { "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "statementType": { "description": "Declare the report type. A confirmed reconciliation requires actuals.", "type": "string", "enum": [ "actual", "budget", "forecast" ] }, "scale": { "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.", "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 1000 }, { "type": "number", "const": 1000000 } ] }, "asOf": { "description": "End date of the final T12 period.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "columnsAreMonthlyActuals": { "description": "Declare true only when the month columns contain standalone monthly actuals for this property.", "type": "boolean" }, "categories": { "description": "GL account code or exact line label to category.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "type": "string", "enum": [ "grossPotentialRent", "lossToLease", "vacancy", "concessions", "badDebt", "rentCollected", "otherIncome", "expenses", "noi", "unmapped" ] } }, "columns": { "description": "Exact header overrides for the line-item label, optional account code, and ignored columns.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "type": "string", "enum": [ "label", "code", "ignore" ] } }, "periodEnd": { "description": "End date of Month 12 for Month 1 through Month 12 headers. Defaults to the period ending date in the preamble when present.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "format", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "xlsx" }, "base64": { "type": "string", "minLength": 4, "maxLength": 2796204, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$" }, "sheet": { "description": "Worksheet name. Defaults to the first worksheet.", "type": "string", "minLength": 1, "maxLength": 240 }, "headerRow": { "type": "integer", "minimum": 1, "maximum": 100 }, "property": { "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.", "type": "string", "minLength": 1, "maxLength": 240 }, "unitCount": { "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "statementType": { "description": "Declare the report type. A confirmed reconciliation requires actuals.", "type": "string", "enum": [ "actual", "budget", "forecast" ] }, "scale": { "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.", "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 1000 }, { "type": "number", "const": 1000000 } ] }, "asOf": { "description": "End date of the final T12 period.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "columnsAreMonthlyActuals": { "description": "Declare true only when the month columns contain standalone monthly actuals for this property.", "type": "boolean" }, "categories": { "description": "GL account code or exact line label to category.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "type": "string", "enum": [ "grossPotentialRent", "lossToLease", "vacancy", "concessions", "badDebt", "rentCollected", "otherIncome", "expenses", "noi", "unmapped" ] } }, "columns": { "description": "Exact header overrides for the line-item label, optional account code, and ignored columns.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "type": "string", "enum": [ "label", "code", "ignore" ] } }, "periodEnd": { "description": "End date of Month 12 for Month 1 through Month 12 headers. Defaults to the period ending date in the preamble when present.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "format", "base64" ], "additionalProperties": false } ], "description": "One trailing twelve-month statement. Declare statementType and columnsAreMonthlyActuals to confirm a reconciliation. File headers use a GL label (and optional code) and 12 dated or numbered month columns." }, "gprBasis": { "default": "market", "description": "Market indicates reported GPR is before loss to lease. Use other for blended or unknown GPR definitions.", "type": "string", "enum": [ "market", "other" ] }, "deductionSign": { "description": "Declare the sign of T12 deductions when known. Opposite signs then indicate reversals or gains. If omitted, infer the sign separately for each contra-revenue GL line.", "type": "string", "enum": [ "negative", "positive" ] } }, "required": [ "asOf", "rentRoll", "t12" ], "additionalProperties": false, "examples": [ { "asOf": "2026-10-31", "rentBasis": "monthly", "rentRoll": { "format": "csv", "asOf": "2026-10-31", "property": "Oak Terrace", "text": "Rent Roll as of 2026-10-31\nUnit,Tenant,Status,Lease Start,Lease End,Monthly Market Rent,Monthly Rent,Monthly Concessions\n101,,Vacant,,,1500,,\n102,Lee,Occupied,2026-04-01,2027-03-31,1600,1550,0" }, "t12": { "format": "json", "property": "Oak Terrace", "statementType": "actual", "columnsAreMonthlyActuals": true, "months": [ "2025-11", "2025-12", "2026-01", "2026-02", "2026-03", "2026-04", "2026-05", "2026-06", "2026-07", "2026-08", "2026-09", "2026-10" ], "lines": [ { "label": "Gross Potential Rent", "amounts": [ 3100, 3100, 3100, 3100, 3100, 3100, 3100, 3100, 3100, 3100, 3100, 3100 ] }, { "label": "Loss to Lease", "amounts": [ -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, -50 ] }, { "label": "Vacancy Loss", "amounts": [ -1500, -1500, -1500, -1500, -1500, -1500, -1500, -1500, -1500, -1500, -1500, -1500 ] }, { "label": "Concessions", "amounts": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] }, { "label": "Rent Collected", "amounts": [ 1550, 1550, 1550, 1550, 1550, 1550, 1550, 1550, 1550, 1550, 1550, 1550 ] } ] } } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "asOf": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "units": { "type": "array", "items": { "type": "object", "properties": { "unit": { "type": "string", "minLength": 1, "maxLength": 240, "description": "Unique unit key within the property. Include the building in this key for repeated unit numbers." }, "tenant": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 240 }, { "type": "null" } ] }, "status": { "type": "string", "enum": [ "occupied", "vacant", "model", "down", "unknown" ] }, "futureLease": { "description": "A future lease record. Keep a separate row for the unit’s current status.", "type": "boolean" }, "monthToMonth": { "description": "Verified month-to-month lease. The lease end may be omitted.", "type": "boolean" }, "squareFeet": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000000 }, { "type": "null" } ] }, "moveIn": { "description": "Actual move-in date, separate from the lease start.", "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "leaseStart": { "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "leaseEnd": { "anyOf": [ { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "type": "null" } ] }, "marketRent": { "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "contractRent": { "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "concessions": { "description": "Monthly concession with the source sign. Use a consistent sign across units. Enter zero when verified.", "anyOf": [ { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "charges": { "description": "Monthly charges keyed by source charge code.", "type": "object", "propertyNames": { "type": "string", "minLength": 1, "maxLength": 240 }, "additionalProperties": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 } }, "balance": { "description": "Balance with the source sign convention.", "anyOf": [ { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "chargeRows": { "type": "array", "items": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "rentChargeCodes": { "description": "Source charge codes summed into the monthly contract rent.", "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 240 } } }, "required": [ "unit", "status", "row" ], "additionalProperties": false } }, "occupancy": { "type": "object", "properties": { "totalUnits": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "occupied": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "vacant": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "model": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "down": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "unresolved": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "physicalRate": { "description": "Occupied units divided by all listed units, including model and down units. Null when current occupancy cannot be established for all units.", "type": [ "number", "null" ] }, "economic": { "type": "array", "items": { "type": "object", "properties": { "month": { "type": "string", "pattern": "^\\d{4}-(0[1-9]|1[0-2])$" }, "rate": { "description": "Cash rent collected divided by reported GPR.", "type": [ "number", "null" ] }, "rentCollected": { "type": [ "number", "null" ] }, "grossPotentialRent": { "type": [ "number", "null" ] }, "lineRefs": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "label": { "type": "string", "minLength": 1, "maxLength": 240 }, "code": { "type": "string", "minLength": 1, "maxLength": 240 } }, "required": [ "row", "label" ], "additionalProperties": false } } }, "required": [ "month", "rate", "rentCollected", "grossPotentialRent", "lineRefs" ], "additionalProperties": false } } }, "required": [ "totalUnits", "occupied", "vacant", "model", "down", "unresolved", "physicalRate", "economic" ], "additionalProperties": false }, "rents": { "type": "object", "properties": { "totalMarketRent": { "type": [ "number", "null" ] }, "occupiedMarketRent": { "type": [ "number", "null" ] }, "inPlaceRent": { "type": [ "number", "null" ] }, "lossToLease": { "description": "Occupied market rent minus occupied monthly contract rent.", "type": [ "number", "null" ] }, "vacancyAtMarketRent": { "type": [ "number", "null" ] }, "concessions": { "description": "Total monthly occupied-unit concessions as a positive deduction. Null when the source signs are mixed or amounts are incomplete.", "type": [ "number", "null" ] } }, "required": [ "totalMarketRent", "occupiedMarketRent", "inPlaceRent", "lossToLease", "vacancyAtMarketRent", "concessions" ], "additionalProperties": false }, "leaseExpirations": { "type": "array", "items": { "type": "object", "properties": { "month": { "type": "string", "pattern": "^\\d{4}-(0[1-9]|1[0-2])$" }, "unitRefs": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "unit": { "type": "string" } }, "required": [ "row", "unit" ], "additionalProperties": false } } }, "required": [ "month", "unitRefs" ], "additionalProperties": false } }, "t12": { "type": "object", "properties": { "months": { "minItems": 12, "maxItems": 12, "type": "array", "items": { "type": "string", "pattern": "^\\d{4}-(0[1-9]|1[0-2])$" } }, "lines": { "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string", "minLength": 1, "maxLength": 240 }, "code": { "type": "string", "minLength": 1, "maxLength": 240 }, "category": { "type": "string", "enum": [ "grossPotentialRent", "lossToLease", "vacancy", "concessions", "badDebt", "rentCollected", "otherIncome", "expenses", "noi", "unmapped" ] }, "amounts": { "minItems": 12, "maxItems": 12, "type": "array", "items": { "anyOf": [ { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, { "type": "null" } ] }, "description": "Monthly amounts in the same currency as the rent roll. Null means unavailable." }, "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "deduction": { "type": "object", "properties": { "signConvention": { "type": "string", "enum": [ "negative", "positive", "zero", "ambiguous", "unavailable" ] }, "amounts": { "minItems": 12, "maxItems": 12, "type": "array", "items": { "type": [ "number", "null" ] }, "description": "Monthly contra-revenue amounts as positive deductions. A declared sign preserves opposite-sign reversals and gains." } }, "required": [ "signConvention", "amounts" ], "additionalProperties": false } }, "required": [ "label", "category", "amounts", "row" ], "additionalProperties": false } } }, "required": [ "months", "lines" ], "additionalProperties": false }, "comparisons": { "type": "array", "items": { "type": "object", "properties": { "month": { "type": "string", "pattern": "^\\d{4}-(0[1-9]|1[0-2])$" }, "field": { "type": "string", "enum": [ "grossPotentialRent", "lossToLease", "vacancy", "concessions", "rentCollected" ] }, "status": { "type": "string", "enum": [ "match", "discrepancy", "needs_review" ] }, "expected": { "type": [ "number", "null" ] }, "actual": { "type": [ "number", "null" ] }, "difference": { "description": "T12 actual less rent roll. Present for a comparable month with both amounts, complete caller declarations and no detected contradiction.", "type": [ "number", "null" ] }, "reason": { "type": "string" }, "unitRefs": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "unit": { "type": "string" } }, "required": [ "row", "unit" ], "additionalProperties": false } }, "lineRefs": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "label": { "type": "string", "minLength": 1, "maxLength": 240 }, "code": { "type": "string", "minLength": 1, "maxLength": 240 } }, "required": [ "row", "label" ], "additionalProperties": false } }, "source": { "type": "string", "format": "uri" } }, "required": [ "month", "field", "status", "expected", "actual", "difference", "reason", "unitRefs", "lineRefs", "source" ], "additionalProperties": false } }, "columnMapping": { "type": "object", "properties": { "rentRoll": { "type": "object", "properties": { "headerRow": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "sheet": { "type": "string" }, "mapped": { "type": "array", "items": { "type": "object", "properties": { "column": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "header": { "type": "string" }, "field": { "type": "string" } }, "required": [ "column", "header", "field" ], "additionalProperties": false } }, "unmapped": { "type": "array", "items": { "type": "object", "properties": { "column": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "header": { "type": "string" } }, "required": [ "column", "header" ], "additionalProperties": false } } }, "required": [ "headerRow", "mapped", "unmapped" ], "additionalProperties": false }, "t12": { "type": "object", "properties": { "headerRow": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "sheet": { "type": "string" }, "mapped": { "type": "array", "items": { "type": "object", "properties": { "column": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "header": { "type": "string" }, "field": { "type": "string" } }, "required": [ "column", "header", "field" ], "additionalProperties": false } }, "unmapped": { "type": "array", "items": { "type": "object", "properties": { "column": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "header": { "type": "string" } }, "required": [ "column", "header" ], "additionalProperties": false } } }, "required": [ "headerRow", "mapped", "unmapped" ], "additionalProperties": false } }, "additionalProperties": false }, "findings": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "expected": { "type": "string" }, "actual": { "type": "string" }, "source": { "type": "string", "format": "uri" }, "unitRefs": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "unit": { "type": "string" } }, "required": [ "row", "unit" ], "additionalProperties": false } }, "rows": { "type": "array", "items": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } } }, "required": [ "rule", "expected", "actual", "source" ], "additionalProperties": false } }, "missingDeclarations": { "type": "array", "items": { "type": "string", "enum": [ "rentRoll.asOf", "rentRoll.property", "t12.property", "t12.statementType", "t12.columnsAreMonthlyActuals", "rentBasis" ] }, "description": "Request fields that must be declared to confirm the comparison." }, "needs_review": { "type": "boolean" }, "sources": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "version": { "type": "string" } }, "required": [ "url", "version" ], "additionalProperties": false } } }, "required": [ "asOf", "units", "occupancy", "rents", "leaseExpirations", "t12", "comparisons", "columnMapping", "findings", "missingDeclarations", "needs_review", "sources" ], "additionalProperties": false } ``` ## demurrage.audit Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "invoices": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "invoice": { "type": "object", "properties": { "number": { "type": "string", "maxLength": 400 }, "issuer": { "type": "string", "maxLength": 400 }, "issuerType": { "type": "string", "enum": [ "ocean_common_carrier", "marine_terminal_operator", "nvocc", "other" ] }, "billedParty": { "type": "string", "maxLength": 400 }, "billedPartyType": { "type": "string", "enum": [ "ocean_common_carrier", "marine_terminal_operator", "nvocc", "other" ] }, "liabilityBasis": { "type": "string", "maxLength": 400 }, "direction": { "type": "string", "enum": [ "import", "export" ] }, "chargeType": { "type": "string", "enum": [ "demurrage", "detention" ] }, "billsOfLading": { "maxItems": 50, "type": "array", "items": { "type": "string", "maxLength": 400 } }, "container": { "type": "string", "maxLength": 400 }, "dischargePort": { "type": "string", "maxLength": 400 }, "invoiceDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "dueDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "freeDays": { "type": "integer", "minimum": 0, "maximum": 730 }, "freeTimeStart": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "freeTimeEnd": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "availabilityDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "earliestReturnDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "chargedDates": { "maxItems": 730, "type": "array", "items": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." } }, "billedDays": { "type": "integer", "minimum": 0, "maximum": 730 }, "ratesCents": { "description": "Daily rates applied to the billed dates, in USD cents.", "maxItems": 32, "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "description": "USD cents." } }, "amountCents": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "description": "USD cents." }, "rateRule": { "type": "string", "maxLength": 400 }, "disputeContact": { "type": "string", "maxLength": 400 }, "disputeInstructions": { "description": "Dispute method shown on the invoice. Include the public website address or the destination of any QR code or digital watermark.", "type": "string", "maxLength": 400 }, "disputeRequestDays": { "type": "integer", "minimum": 0, "maximum": 730 }, "disputeResolutionDays": { "type": "integer", "minimum": 0, "maximum": 730 }, "certifiesFmcCompliance": { "type": "boolean" }, "certifiesIssuerDidNotContribute": { "type": "boolean" }, "correctsWrongBilledParty": { "type": "boolean" }, "documentText": { "description": "Text from the invoice and its attachments. Labeled dates in this text are hints for review. Enter structured dates in ISO YYYY-MM-DD format.", "type": "string", "maxLength": 32000 }, "notes": { "description": "Additional free-text notes about the invoice.", "type": "string", "maxLength": 400 } }, "required": [ "issuerType", "billedPartyType", "direction", "chargeType" ], "additionalProperties": false, "description": "One invoice for one container and charge type. Extract required information from all sections and attachments before omitting an absent field." }, "structuredFieldsComplete": { "description": "Set to true after confirming that the structured fields capture all relevant information from the invoice, its attachments, shipment records, and the applicable tariff. Without this confirmation, any non-empty free text requires review, including invoice identifiers, names, text fields, and evidence references.", "type": "boolean" }, "events": { "description": "Import demurrage runs from discharge or availability to gate-out. Import detention defaults to gate-out through empty return. Export demurrage starts at full gate-in and uses the tariff's exportDemurrage rules. Export detention defaults to empty pickup through full gate-in.", "type": "object", "properties": { "discharge": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "availability": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "earliestReturn": { "description": "Published earliest receipt date (ERD) for the export booking, from an independent record. Actual gate-in may precede it.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "erdChanges": { "description": "Published terminal ERD changes for this export detention shipment, in announcement order. For a same-day pickup or return, include the change only if announced while the shipper held the container. Use an empty array if records confirm no change.", "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "announcedOn": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Facility-local date the terminal publicly announced the change." }, "previousErd": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "newErd": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." } }, "required": [ "announcedOn", "previousErd", "newErd" ], "additionalProperties": false } }, "gateOut": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "emptyReturn": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "emptyPickup": { "description": "Export equipment pickup.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "fullGateIn": { "description": "Delivery of the full export container to the terminal.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "vesselLoad": { "description": "Export container loaded on vessel.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "loadedOnOriginalVessel": { "description": "Whether loading records confirm the container loaded on the originally scheduled vessel and voyage. Without this fact, a documented roll indicates a missed original voyage. Departure dates alone do not identify the voyage.", "type": "boolean" }, "cargoCutoff": { "description": "Last date for full gate-in on the originally booked export voyage.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "scheduledSailDate": { "description": "Scheduled departure date of the originally booked vessel.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "actualSailDate": { "description": "Actual departure date of the vessel carrying this container.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "rolls": { "description": "Documented, non-overlapping periods attributable to an export vessel roll. Start and end dates are inclusive.", "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "startDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "endDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "responsibility": { "type": "string", "enum": [ "carrier", "customer", "unknown" ] }, "resolutionDate": { "description": "Date the customer resolved the cause. Null means the cause was still unresolved at the end of the roll period.", "anyOf": [ { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, { "type": "null" } ] }, "newScheduledSailDate": { "description": "Scheduled departure of the replacement vessel booked on startDate. Supply each replacement schedule when the tariff uses a scheduled sailing cutoff.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] } }, "required": [ "startDate", "endDate", "responsibility" ], "additionalProperties": false } }, "lateDocumentation": { "description": "Documented periods when the shipper's late paperwork delayed an export container. Start and end dates are inclusive.", "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "startDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "endDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." } }, "required": [ "startDate", "endDate" ], "additionalProperties": false } }, "blockedDays": { "default": [], "description": "Days of verified full-day inability to move this container for this charge, including lack of any authorized alternate facility or appointment.", "maxItems": 730, "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "reason": { "type": "string", "enum": [ "terminal_closed", "container_unavailable", "appointment_unavailable" ] }, "reference": { "type": "string", "maxLength": 400 } }, "required": [ "date", "reason" ], "additionalProperties": false } } }, "additionalProperties": false }, "terms": { "type": "object", "properties": { "reference": { "type": "string", "minLength": 1, "maxLength": 400, "description": "Applicable tariff, contract or terminal schedule reference." }, "freeDays": { "type": "integer", "minimum": 0, "maximum": 730 }, "freeDayBasis": { "type": "string", "enum": [ "calendar", "business" ] }, "freeTimeStartsAfter": { "description": "Tariff milestone for starting free time. gate_in uses events.fullGateIn and empty_pickup uses events.emptyPickup. If omitted for import demurrage, compare discharge and availability when both are recorded. Other charges use their default milestones.", "type": "string", "enum": [ "discharge", "availability", "gate_in", "empty_pickup" ] }, "countBlockedFreeDays": { "description": "Whether verified blocked days count toward free time. Defaults to true for calendar-day free time and false for business-day free time.", "type": "boolean" }, "chargeDayBasis": { "type": "string", "enum": [ "calendar", "business" ] }, "countBlockedChargeDays": { "description": "Whether verified blocked days count after free time under the tariff. Defaults to true for calendar-day charges and false for business-day charges.", "type": "boolean" }, "includeStartDay": { "type": "boolean", "description": "True to begin counting on the milestone date, false to begin the following day." }, "includeEndDay": { "type": "boolean", "description": "Whether the day the charge period ends can be charged." }, "exportDemurrage": { "description": "Export demurrage rules transcribed from the supplied tariff for the circumstances of this shipment.", "type": "object", "properties": { "chargeableCauses": { "description": "Complete list of causes the tariff permits after free time. An empty array means none apply. Omit if the tariff is unclear. Days with conflicting chargeable causes require review.", "maxItems": 3, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "early_receipt" }, "requiresOriginalVessel": { "default": true, "description": "Whether early receipt requires loading on the originally scheduled vessel and voyage. Set to false if the tariff permits the charge regardless of voyage.", "type": "boolean" } }, "required": [ "kind" ], "additionalProperties": false, "description": "Charge dates before the published ERD when full gate-in preceded that ERD and the original-vessel condition is met." }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shipper_roll" }, "maxDaysAfterResolution": { "description": "Calendar days chargeable after the shipper resolves the cause. Omit for an uncapped rule.", "type": "integer", "minimum": 0, "maximum": 730 } }, "required": [ "kind" ], "additionalProperties": false, "description": "Charge days attributable to a documented customer-caused roll. With a scheduled sailing cutoff, this can include days before the roll, after free time, on the affected booking." }, { "type": "object", "properties": { "kind": { "type": "string", "const": "late_documentation" } }, "required": [ "kind" ], "additionalProperties": false, "description": "Charge dates attributable to the shipper's late documentation." } ] } }, "endsAt": { "description": "Tariff milestone ending export demurrage. Supply when recording a scheduled or actual departure date. Without either date, the default is vessel load.", "type": "string", "enum": [ "vessel_load", "scheduled_sail", "earlier_of_load_and_scheduled_sail", "actual_sail" ] } }, "additionalProperties": false }, "exportDetention": { "type": "object", "properties": { "extendFreeTimeOnErdChange": { "type": "boolean", "description": "Whether the tariff adds working days from the previous ERD through the day before the new ERD for a postponement announced while the shipper holds the container within free time." } }, "required": [ "extendFreeTimeOnErdChange" ], "additionalProperties": false }, "weekend": { "default": [ 6, 7 ], "description": "ISO weekday numbers excluded in business-day mode.", "maxItems": 7, "type": "array", "items": { "type": "integer", "minimum": 1, "maximum": 7 } }, "usHolidays": { "description": "Include national or state public holidays in business-day mode. Dataset covers 2020–2035.", "anyOf": [ { "type": "string", "const": "US" }, { "type": "string", "pattern": "^US-[A-Z]{2}$" } ] }, "holidays": { "default": [], "description": "Additional holidays excluded in business-day mode.", "maxItems": 100, "type": "array", "items": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." } }, "tiers": { "minItems": 1, "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "fromChargedDay": { "type": "integer", "minimum": 1, "maximum": 730 }, "rateCents": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "description": "USD cents." } }, "required": [ "fromChargedDay", "rateCents" ], "additionalProperties": false } } }, "required": [ "reference", "freeDays", "freeDayBasis", "chargeDayBasis", "includeStartDay", "includeEndDay", "tiers" ], "additionalProperties": false }, "evidence": { "description": "Independent records for checking stated invoice details. Use the same names, reference and dispute details where they match. Certification booleans describe whether the certified facts are true.", "type": "object", "properties": { "billsOfLading": { "maxItems": 50, "type": "array", "items": { "type": "string", "maxLength": 400 } }, "container": { "type": "string", "maxLength": 400 }, "dischargePort": { "type": "string", "maxLength": 400 }, "invoiceDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "dueDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "disputeContact": { "type": "string", "maxLength": 400 }, "disputeInstructions": { "description": "Dispute method shown on the invoice. Include the public website address or the destination of any QR code or digital watermark.", "type": "string", "maxLength": 400 }, "certifiesFmcCompliance": { "type": "boolean" }, "certifiesIssuerDidNotContribute": { "type": "boolean" }, "liableParty": { "description": "Use the same legal entity names as on the invoice when they match.", "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 400 }, "reference": { "type": "string", "minLength": 1, "maxLength": 400, "description": "Independent evidence identifying the sole party liable for this charge." }, "basis": { "description": "Liability basis documented by the independent evidence.", "type": "string", "minLength": 1, "maxLength": 400 } }, "required": [ "name", "reference" ], "additionalProperties": false }, "upstreamInvoiceDate": { "description": "Issue date of the invoice received by the NVOCC.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "lastIncurredDate": { "description": "Independently documented last date this charge was incurred.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ] }, "agreedResolutionDays": { "description": "A longer resolution period agreed by both parties.", "type": "integer", "minimum": 0, "maximum": 730 } }, "additionalProperties": false } }, "required": [ "invoice" ], "additionalProperties": false } } }, "required": [ "invoices" ], "additionalProperties": false, "examples": [ { "invoices": [ { "structuredFieldsComplete": true, "invoice": { "number": "DD-260529", "issuer": "Harbor Shipping", "issuerType": "ocean_common_carrier", "billedParty": "Atlas Imports", "billedPartyType": "other", "liabilityBasis": "Consignee under service contract SC-208", "direction": "import", "chargeType": "demurrage", "billsOfLading": [ "HSUS00814" ], "container": "MSCU1234566", "dischargePort": "USLAX", "invoiceDate": "2026-05-29", "dueDate": "2026-06-28", "freeDays": 2, "freeTimeStart": "2026-05-20", "freeTimeEnd": "2026-05-21", "availabilityDate": "2026-05-20", "chargedDates": [ "2026-05-22", "2026-05-23", "2026-05-24", "2026-05-25" ], "billedDays": 4, "ratesCents": [ 15000, 25000 ], "amountCents": 80000, "rateRule": "SC-208 section 12", "disputeContact": "billing@example.com", "disputeInstructions": "https://example.com/disputes", "disputeRequestDays": 30, "disputeResolutionDays": 30, "certifiesFmcCompliance": true, "certifiesIssuerDidNotContribute": true }, "events": { "discharge": "2026-05-19", "availability": "2026-05-20", "gateOut": "2026-05-25", "blockedDays": [ { "date": "2026-05-24", "reason": "terminal_closed", "reference": "Gate schedule" } ] }, "terms": { "reference": "SC-208 section 12", "freeDays": 2, "freeDayBasis": "calendar", "freeTimeStartsAfter": "availability", "chargeDayBasis": "calendar", "includeStartDay": true, "includeEndDay": true, "tiers": [ { "fromChargedDay": 1, "rateCents": 15000 }, { "fromChargedDay": 3, "rateCents": 25000 } ] }, "evidence": { "liableParty": { "name": "Atlas Imports", "reference": "SC-208" } } } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "regulation": { "type": "object", "properties": { "version": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "part541": { "type": "string", "format": "uri" }, "incentivePrinciple": { "type": "string", "format": "uri" }, "removedPartyRestriction": { "type": "string", "format": "uri" } }, "required": [ "version", "part541", "incentivePrinciple", "removedPartyRestriction" ], "additionalProperties": false }, "invoices": { "type": "array", "items": { "type": "object", "properties": { "invoiceNumber": { "type": [ "string", "null" ] }, "container": { "type": [ "string", "null" ] }, "status": { "type": "string", "enum": [ "no_findings", "needs_review", "dispute_identified" ] }, "paymentObligation": { "type": "string", "enum": [ "eliminated", "grounds_for_dispute", "undetermined" ], "description": "Elimination requires a conclusive defect and either an input with only structured values or structuredFieldsComplete set to true. Unconfirmed free text yields grounds_for_dispute with needs_review." }, "issuanceDeadline": { "anyOf": [ { "type": "object", "properties": { "basis": { "type": "string" }, "startDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "deadline": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "basis", "startDate", "deadline" ], "additionalProperties": false }, { "type": "null" } ] }, "calculation": { "anyOf": [ { "type": "object", "properties": { "chargeableDays": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "charges": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "rateCents": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "cause": { "description": "The tariff-authorized cause attributed to this export demurrage day.", "type": "string", "enum": [ "early_receipt", "shipper_roll", "late_documentation" ] } }, "required": [ "date", "rateCents" ], "additionalProperties": false } }, "unbilledChargeableDates": { "type": "array", "items": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "amountCents": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "overchargeCents": { "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] } }, "required": [ "chargeableDays", "charges", "unbilledChargeableDates", "amountCents", "overchargeCents" ], "additionalProperties": false }, { "type": "null" } ], "description": "Recalculation of billed dates under the supplied tariff or contract. Unbilled chargeable dates do not affect the calculated amount or overcharge." }, "dayLedger": { "description": "Day-by-day tariff attribution for the audited period and any billed dates outside it. A needs_review entry can leave the calculation or issuance deadline unresolved.", "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "kind": { "type": "string", "const": "chargeable" }, "cause": { "type": "string", "enum": [ "early_receipt", "shipper_roll", "late_documentation", "import_demurrage", "import_detention", "export_detention" ] } }, "required": [ "date", "kind", "cause" ], "additionalProperties": false }, { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "kind": { "type": "string", "const": "excluded" }, "cause": { "type": "string", "enum": [ "before_period", "after_period", "start_day_excluded", "free_time", "non_business_day", "blocked_day", "carrier_roll", "no_chargeable_cause" ] } }, "required": [ "date", "kind", "cause" ], "additionalProperties": false }, { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^[12]" } ], "description": "Local calendar date, year 1000–2999." }, "kind": { "type": "string", "const": "needs_review" }, "cause": { "type": "string", "enum": [ "missing_sail_date", "multiple_chargeable_causes" ] } }, "required": [ "date", "kind", "cause" ], "additionalProperties": false } ] } }, "calculationAlternatives": { "description": "Amounts under each possible start event when the tariff milestone is unspecified and the schedules differ.", "type": "array", "items": { "type": "object", "properties": { "freeTimeStartsAfter": { "type": "string", "enum": [ "discharge", "availability", "gate_in", "empty_pickup" ] }, "amountCents": { "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ], "description": "Recalculated amount for billed dates. Null when billed dates were not supplied." } }, "required": [ "freeTimeStartsAfter", "amountCents" ], "additionalProperties": false } }, "findings": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string" }, "effect": { "type": "string", "enum": [ "no_payment_obligation", "potential_dispute", "needs_review" ] }, "location": { "type": "string", "description": "Field path relative to the corresponding invoices array entry." }, "expected": { "type": "string" }, "actual": { "type": "string" }, "section": { "type": "string" }, "source": { "type": "string", "format": "uri" } }, "required": [ "code", "effect", "location", "expected", "actual", "section", "source" ], "additionalProperties": false } }, "disputeLetter": { "description": "Requests clarification when paymentObligation is grounds_for_dispute.", "type": [ "string", "null" ] } }, "required": [ "invoiceNumber", "container", "status", "paymentObligation", "issuanceDeadline", "calculation", "findings", "disputeLetter" ], "additionalProperties": false } } }, "required": [ "regulation", "invoices" ], "additionalProperties": false } ``` ## payapp.check Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "current": { "anyOf": [ { "type": "object", "properties": { "summary": { "type": "object", "properties": { "originalContractSum": { "type": "number", "minimum": 0, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "netChangeOrders": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "contractSumToDate": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "totalCompletedAndStored": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "retainage": { "oneOf": [ { "type": "object", "properties": { "completedWorkRate": { "type": "number", "minimum": 0, "maximum": 100, "multipleOf": 0.0001, "description": "Percentage points, e.g. 10 for 10%." }, "storedMaterialsRate": { "type": "number", "minimum": 0, "maximum": 100, "multipleOf": 0.0001, "description": "Percentage points, e.g. 10 for 10%." }, "mode": { "type": "string", "const": "fixed" }, "completedWork": { "description": "Reported G702 line 5a amount.", "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, "storedMaterials": { "description": "Reported G702 line 5b amount.", "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, "total": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "G702 line 5 total." } }, "required": [ "mode", "total" ], "additionalProperties": false }, { "type": "object", "properties": { "mode": { "type": "string", "const": "variable" }, "total": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "G702 line 5 total, from G703 column I." } }, "required": [ "mode", "total" ], "additionalProperties": false } ] }, "earnedLessRetainage": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "previousCertificates": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "currentPaymentDue": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "balanceToFinish": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "G702 line 9, including retainage." } }, "required": [ "originalContractSum", "netChangeOrders", "contractSumToDate", "totalCompletedAndStored", "retainage", "earnedLessRetainage", "previousCertificates", "currentPaymentDue", "balanceToFinish" ], "additionalProperties": false }, "continuationSheet": { "oneOf": [ { "type": "object", "properties": { "format": { "type": "string", "const": "json" }, "lines": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "item": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Stable G703 item identifier." }, "description": { "type": "string", "minLength": 1, "maxLength": 500 }, "scheduledValue": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "previousWork": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "currentWork": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "storedMaterials": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "totalCompletedAndStored": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "percentComplete": { "description": "Percentage points, e.g. 50 for 50%.", "type": "number" }, "balanceToFinish": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "retainage": { "description": "G703 column I for variable retainage.", "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 } }, "required": [ "item", "description", "scheduledValue", "previousWork", "currentWork", "storedMaterials" ], "additionalProperties": false } } }, "required": [ "format", "lines" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "csv" }, "text": { "type": "string", "minLength": 1, "maxLength": 524288, "description": "CSV text with a header and up to 500 item rows." } }, "required": [ "format", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "xlsx" }, "base64": { "type": "string", "minLength": 1, "maxLength": 699052, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Base64 XLSX up to 512 KiB. Recalculate formulas before saving." }, "sheet": { "description": "Worksheet name. Defaults to the first worksheet.", "type": "string", "minLength": 1, "maxLength": 31 } }, "required": [ "format", "base64" ], "additionalProperties": false } ], "description": "For CSV and XLSX, start with a single header row using the JSON line field names or G703 labels. Include only SOV item rows. Include item, description, and G703 columns C–I including percent complete. Missing financial columns and unrecognized headers require review. Use 0 for empty amounts in columns D–F. Use percentage points in CSV and Excel percentage cells in XLSX." }, "percentDecimals": { "description": "Displayed G703 percent precision. Defaults to 2. Use 0 for whole percentages.", "type": "integer", "minimum": 0, "maximum": 4 } }, "required": [ "summary", "continuationSheet" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "xlsx" }, "base64": { "type": "string", "minLength": 1, "maxLength": 699052, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Base64 XLSX up to 512 KiB. Recalculate formulas before saving." }, "percentDecimals": { "description": "Displayed G703 percent precision. Defaults to 2. Use 0 for whole percentages.", "type": "integer", "minimum": 0, "maximum": 4 } }, "required": [ "format", "base64" ], "additionalProperties": false, "description": "Workbook with sheets named G702 and G703. In G702 use columns A–C for line number, amount, and optional Excel percentage rate. Include lines 1–9 and use 5 for total retainage. Include 5a and/or 5b for fixed retainage. Use the reported amounts on lines 5a and 5b or, when those amounts are blank, the total of G703 column I. A rate without either source requires review of the eligible base. In G703 use a single header row for columns A–I including percent complete, followed by SOV items. Missing financial columns and unrecognized headers require review." } ] }, "previous": { "description": "Prior certified application. Its G703 supplies the approved SOV and its G702 line 6 supplies the current line 7. For variable retainage, carry forward the prior holdback, including when stored materials move into completed work. Infer the rates on newly billed work and materials from column I or the remaining G702 line 5 amount. An amount covering both work and stored materials implies a blended rate.", "anyOf": [ { "type": "object", "properties": { "summary": { "type": "object", "properties": { "originalContractSum": { "type": "number", "minimum": 0, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "netChangeOrders": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "contractSumToDate": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "totalCompletedAndStored": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "retainage": { "oneOf": [ { "type": "object", "properties": { "completedWorkRate": { "type": "number", "minimum": 0, "maximum": 100, "multipleOf": 0.0001, "description": "Percentage points, e.g. 10 for 10%." }, "storedMaterialsRate": { "type": "number", "minimum": 0, "maximum": 100, "multipleOf": 0.0001, "description": "Percentage points, e.g. 10 for 10%." }, "mode": { "type": "string", "const": "fixed" }, "completedWork": { "description": "Reported G702 line 5a amount.", "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, "storedMaterials": { "description": "Reported G702 line 5b amount.", "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 }, "total": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "G702 line 5 total." } }, "required": [ "mode", "total" ], "additionalProperties": false }, { "type": "object", "properties": { "mode": { "type": "string", "const": "variable" }, "total": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "G702 line 5 total, from G703 column I." } }, "required": [ "mode", "total" ], "additionalProperties": false } ] }, "earnedLessRetainage": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "previousCertificates": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "currentPaymentDue": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "balanceToFinish": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "G702 line 9, including retainage." } }, "required": [ "originalContractSum", "netChangeOrders", "contractSumToDate", "totalCompletedAndStored", "retainage", "earnedLessRetainage", "previousCertificates", "currentPaymentDue", "balanceToFinish" ], "additionalProperties": false }, "continuationSheet": { "oneOf": [ { "type": "object", "properties": { "format": { "type": "string", "const": "json" }, "lines": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "item": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Stable G703 item identifier." }, "description": { "type": "string", "minLength": 1, "maxLength": 500 }, "scheduledValue": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "previousWork": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "currentWork": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "storedMaterials": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "totalCompletedAndStored": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "percentComplete": { "description": "Percentage points, e.g. 50 for 50%.", "type": "number" }, "balanceToFinish": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." }, "retainage": { "description": "G703 column I for variable retainage.", "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01 } }, "required": [ "item", "description", "scheduledValue", "previousWork", "currentWork", "storedMaterials" ], "additionalProperties": false } } }, "required": [ "format", "lines" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "csv" }, "text": { "type": "string", "minLength": 1, "maxLength": 524288, "description": "CSV text with a header and up to 500 item rows." } }, "required": [ "format", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "xlsx" }, "base64": { "type": "string", "minLength": 1, "maxLength": 699052, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Base64 XLSX up to 512 KiB. Recalculate formulas before saving." }, "sheet": { "description": "Worksheet name. Defaults to the first worksheet.", "type": "string", "minLength": 1, "maxLength": 31 } }, "required": [ "format", "base64" ], "additionalProperties": false } ], "description": "For CSV and XLSX, start with a single header row using the JSON line field names or G703 labels. Include only SOV item rows. Include item, description, and G703 columns C–I including percent complete. Missing financial columns and unrecognized headers require review. Use 0 for empty amounts in columns D–F. Use percentage points in CSV and Excel percentage cells in XLSX." }, "percentDecimals": { "description": "Displayed G703 percent precision. Defaults to 2. Use 0 for whole percentages.", "type": "integer", "minimum": 0, "maximum": 4 } }, "required": [ "summary", "continuationSheet" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "type": "string", "const": "xlsx" }, "base64": { "type": "string", "minLength": 1, "maxLength": 699052, "format": "base64", "contentEncoding": "base64", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Base64 XLSX up to 512 KiB. Recalculate formulas before saving." }, "percentDecimals": { "description": "Displayed G703 percent precision. Defaults to 2. Use 0 for whole percentages.", "type": "integer", "minimum": 0, "maximum": 4 } }, "required": [ "format", "base64" ], "additionalProperties": false, "description": "Workbook with sheets named G702 and G703. In G702 use columns A–C for line number, amount, and optional Excel percentage rate. Include lines 1–9 and use 5 for total retainage. Include 5a and/or 5b for fixed retainage. Use the reported amounts on lines 5a and 5b or, when those amounts are blank, the total of G703 column I. A rate without either source requires review of the eligible base. In G703 use a single header row for columns A–I including percent complete, followed by SOV items. Missing financial columns and unrecognized headers require review." } ] }, "retainageChange": { "description": "New retainage rates for an agreed change or release, in percentage points. Use 0 for each released category. Fixed rates must match these values. For variable retainage these rates set the minimum amount on each item.", "type": "object", "properties": { "completedWorkRate": { "type": "number", "minimum": 0, "maximum": 100, "multipleOf": 0.0001, "description": "Percentage points, e.g. 10 for 10%." }, "storedMaterialsRate": { "type": "number", "minimum": 0, "maximum": 100, "multipleOf": 0.0001, "description": "Percentage points, e.g. 10 for 10%." } }, "required": [ "completedWorkRate", "storedMaterialsRate" ], "additionalProperties": false }, "changeOrders": { "description": "All approved changes through the current period. Omitting this list carries forward the prior approved SOV and net change when available.", "maxItems": 500, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 100 }, "amount": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Total approved amount, including signed deductions." }, "reflectedInPrevious": { "description": "With a prior application, set true for orders already included in its approved SOV and false for new orders. An unknown period requires review.", "type": "boolean" }, "item": { "description": "G703 item receiving the full amount. Defaults to the order ID.", "type": "string", "minLength": 1, "maxLength": 100 } }, "required": [ "id", "amount" ], "additionalProperties": false }, { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 100 }, "amount": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Total approved amount, including signed deductions." }, "reflectedInPrevious": { "description": "With a prior application, set true for orders already included in its approved SOV and false for new orders. An unknown period requires review.", "type": "boolean" }, "allocations": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "item": { "type": "string", "minLength": 1, "maxLength": 100 }, "amount": { "type": "number", "minimum": -1000000000, "maximum": 1000000000, "multipleOf": 0.01, "description": "Signed USD to the cent." } }, "required": [ "item", "amount" ], "additionalProperties": false }, "description": "Signed amounts by G703 item. The amounts must sum to the order total." } }, "required": [ "id", "amount", "allocations" ], "additionalProperties": false } ] } } }, "required": [ "current" ], "additionalProperties": false, "examples": [ { "current": { "summary": { "originalContractSum": 12000, "netChangeOrders": 0, "contractSumToDate": 12000, "totalCompletedAndStored": 4500, "retainage": { "mode": "fixed", "completedWorkRate": 10, "storedMaterialsRate": 5, "completedWork": 350, "storedMaterials": 50, "total": 400 }, "earnedLessRetainage": 4100, "previousCertificates": 0, "currentPaymentDue": 4100, "balanceToFinish": 7900 }, "continuationSheet": { "format": "json", "lines": [ { "item": "03-100", "description": "Concrete formwork", "scheduledValue": 12000, "previousWork": 0, "currentWork": 3500, "storedMaterials": 1000, "totalCompletedAndStored": 4500, "percentComplete": 37.5, "balanceToFinish": 7500 } ] } } } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "edition": { "type": "number", "const": 1992 }, "sources": { "type": "object", "properties": { "G702": { "type": "string" }, "G703": { "type": "string" }, "G702Instructions": { "type": "string" } }, "required": [ "G702", "G703", "G702Instructions" ], "additionalProperties": false }, "needs_review": { "type": "boolean" }, "findings": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string", "enum": [ "unmapped_header", "missing_header", "calculation_mismatch", "scheduled_value_mismatch", "overbilling", "undefined_percent", "carry_forward_mismatch", "prior_item_missing", "stored_materials_reduction", "retainage_reduction", "retainage_rate_drift", "retainage_rate_ambiguous", "retainage_mode_changed", "retainage_missing", "amount_out_of_range", "change_order_missing", "change_order_unmapped", "change_order_period_unknown", "change_order_history_mismatch", "change_order_allocation_mismatch" ] }, "severity": { "type": "string", "enum": [ "mismatch", "needs_review" ] }, "form": { "type": "string", "enum": [ "G702", "G703" ] }, "column": { "type": "string", "description": "G702 line, G703 column, or one-based position of an unrecognized header." }, "application": { "type": "string", "enum": [ "current", "previous" ] }, "skippedChecks": { "description": "Checks blocked by a missing G703 header.", "type": "array", "items": { "type": "string" } }, "row": { "description": "Current JSON line number or spreadsheet row/CSV record, one-based.", "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "item": { "type": "string" }, "changeOrderId": { "type": "string" }, "expected": { "type": [ "number", "string", "null" ] }, "actual": { "type": [ "number", "string", "null" ] } }, "required": [ "rule", "severity", "form", "column", "expected", "actual" ], "additionalProperties": false } }, "lines": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "item": { "type": "string" }, "description": { "type": "string" }, "scheduledValue": { "type": "number" }, "previousWork": { "type": "number" }, "currentWork": { "type": "number" }, "storedMaterials": { "type": "number" }, "totalCompletedAndStored": { "type": "number" }, "percentComplete": { "type": [ "number", "null" ] }, "balanceToFinish": { "type": "number" }, "retainage": { "type": [ "number", "null" ] } }, "required": [ "row", "item", "description", "scheduledValue", "previousWork", "currentWork", "storedMaterials", "totalCompletedAndStored", "percentComplete", "balanceToFinish", "retainage" ], "additionalProperties": false } }, "summary": { "type": "object", "properties": { "originalContractSum": { "type": "number" }, "netChangeOrders": { "type": [ "number", "null" ] }, "contractSumToDate": { "type": [ "number", "null" ] }, "totalCompletedAndStored": { "type": [ "number", "null" ] }, "retainage": { "type": "object", "properties": { "completedWork": { "type": [ "number", "null" ] }, "storedMaterials": { "type": [ "number", "null" ] }, "total": { "type": [ "number", "null" ] } }, "required": [ "completedWork", "storedMaterials", "total" ], "additionalProperties": false }, "earnedLessRetainage": { "type": [ "number", "null" ] }, "previousCertificates": { "type": "number" }, "currentPaymentDue": { "type": [ "number", "null" ] }, "balanceToFinish": { "type": [ "number", "null" ] } }, "required": [ "originalContractSum", "netChangeOrders", "contractSumToDate", "totalCompletedAndStored", "retainage", "earnedLessRetainage", "previousCertificates", "currentPaymentDue", "balanceToFinish" ], "additionalProperties": false } }, "required": [ "edition", "sources", "needs_review", "findings", "lines", "summary" ], "additionalProperties": false } ``` ## otapayout.reconcile Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "otaReports": { "minItems": 1, "maxItems": 3, "type": "array", "items": { "type": "object", "properties": { "csv": { "type": "string", "minLength": 1, "maxLength": 524288, "description": "English Airbnb Earnings, Booking.com Reconciliation API v1, or Vrbo CSV text. The headers identify the format." }, "slashDateOrder": { "default": "mdy", "description": "Order for slash dates in Airbnb and Vrbo reports.", "type": "string", "enum": [ "mdy", "dmy" ] } }, "required": [ "csv" ], "additionalProperties": false }, "description": "One report per OTA. Include complete payout groups." }, "bankCsv": { "type": "string", "minLength": 1, "maxLength": 524288, "description": "One account's bank CSV. Use bankColumns to declare its column meanings when they are not covered by a built-in profile." }, "bankColumns": { "type": "object", "properties": { "date": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Booking date or timestamp column." }, "slashDateOrder": { "type": "string", "enum": [ "mdy", "dmy" ] }, "amount": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Amount column. Without direction, a positive amount is an incoming credit." }, "currency": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Three-letter currency code column." }, "description": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Bank transfer description column." }, "reference": { "description": "Transfer reference column, when separate from the description.", "type": "string", "minLength": 1, "maxLength": 200 }, "counterparty": { "description": "Bank-reported sender of an incoming credit.", "type": "string", "minLength": 1, "maxLength": 200 }, "direction": { "description": "Recognizes standard credit/debit codes and additional incomingValues. Negative amounts are debits. Unknown codes and negative credits require review.", "type": "object", "properties": { "column": { "type": "string", "minLength": 1, "maxLength": 200 }, "incomingValues": { "minItems": 1, "maxItems": 20, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 100 } } }, "required": [ "column", "incomingValues" ], "additionalProperties": false }, "status": { "description": "Omit only for exports containing booked transactions exclusively.", "type": "object", "properties": { "column": { "type": "string", "minLength": 1, "maxLength": 200 }, "completedValues": { "minItems": 1, "maxItems": 20, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 100 } } }, "required": [ "column", "completedValues" ], "additionalProperties": false }, "ignored": { "description": "List any other columns whose values do not affect the reconciliation.", "maxItems": 200, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 } } }, "required": [ "date", "amount", "currency", "description" ], "additionalProperties": false } }, "required": [ "otaReports", "bankCsv" ], "additionalProperties": false, "examples": [ { "otaReports": [ { "csv": "Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00" } ], "bankCsv": "Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED", "bankColumns": { "date": "Date", "amount": "Amount", "description": "Description", "currency": "Currency", "reference": "Reference", "counterparty": "Sender", "status": { "column": "State", "completedValues": [ "COMPLETED" ] } } } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "reservationCount": { "type": "integer", "minimum": 0, "maximum": 100 }, "reports": { "type": "array", "items": { "type": "object", "properties": { "file": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "description": "One-based index in otaReports." }, "format": { "type": "string", "enum": [ "airbnb-earnings-en-2025", "booking-reconciliation-en-v1", "vrbo-payout-summary-en-2026", "vrbo-payment-history-en-2026", "vrbo-bank-deposits-en-2026" ] }, "source": { "type": "string" }, "channel": { "type": "string", "enum": [ "airbnb", "booking", "vrbo" ] } }, "required": [ "file", "format", "source", "channel" ], "additionalProperties": false } }, "payouts": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "File and payout record number joined by a colon." }, "file": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "description": "One-based CSV record number, including the header." }, "date": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "reference": { "type": "string" }, "reported": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "lineTotal": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "expected": { "description": "Reported payout total or sum of single-currency detail lines.", "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "lines": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "type": { "type": "string" }, "kind": { "type": "string", "enum": [ "reservation", "adjustment", "other" ], "description": "Normalized transaction category." }, "needs_review": { "description": "The source transaction type is unrecognized.", "type": "boolean", "const": true }, "reservationId": { "type": "string" }, "transactionId": { "type": "string" }, "transactionDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "guest": { "type": "string" }, "checkIn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "checkOut": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "net": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "breakdown": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "gross": { "type": "string" }, "hostFee": { "type": "string" }, "processingFee": { "type": "string" }, "commissionTax": { "type": "string" }, "deductions": { "type": "string" }, "cleaningFee": { "type": "string" }, "petFee": { "type": "string" }, "resortFee": { "type": "string" }, "taxWithheld": { "type": "string" }, "taxRemittedByOta": { "type": "string" }, "taxPassedToHost": { "type": "string" }, "occupancyTax": { "type": "string" }, "coHostPayout": { "type": "string" }, "adjustment": { "type": "string" }, "exchangeRate": { "type": "string" }, "otherItems": { "description": "Additional monetary columns or transaction types with their original amount signs.", "type": "array", "items": { "type": "object", "properties": { "column": { "type": "string" }, "amount": { "type": "string" } }, "required": [ "column", "amount" ], "additionalProperties": false } }, "calculatedNet": { "description": "Net reconstructed from the reported monetary breakdown.", "type": "string" } }, "required": [ "currency" ], "additionalProperties": false, "description": "Reported amounts preserve the source signs. Absent fields were unavailable." } }, "required": [ "row", "type", "kind", "net", "breakdown" ], "additionalProperties": false } }, "status": { "type": "string", "enum": [ "matched", "suggested", "not_received", "no_deposit_expected", "needs_review" ] }, "match": { "type": "object", "properties": { "deposit": { "type": "object", "properties": { "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "date": { "description": "Bank booking date, when available.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "description": { "type": "string" }, "reference": { "type": "string" }, "amount": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false } }, "required": [ "row", "description", "amount" ], "additionalProperties": false }, "method": { "type": "string", "enum": [ "reference", "amount_date_channel", "batched_amount_date_channel" ] }, "amountDifference": { "description": "Bank deposit minus expected payout in the same currency.", "type": "string" }, "impliedExchangeRate": { "description": "Bank currency units per payout currency unit based on the two reported amounts.", "type": "string" } }, "required": [ "deposit", "method" ], "additionalProperties": false }, "issues": { "type": "array", "items": { "type": "string" } }, "candidateDepositRows": { "type": "array", "items": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } } }, "required": [ "key", "file", "row", "date", "lines", "status", "issues", "candidateDepositRows" ], "additionalProperties": false } }, "unmatchedDeposits": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "date": { "description": "Bank booking date, when available.", "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "description": { "type": "string" }, "reference": { "type": "string" }, "amount": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "candidatePayoutKeys": { "type": "array", "items": { "type": "string" } }, "candidatePayoutGroups": { "description": "Each exact amount allocation found for this deposit. A singleton is one possible allocation.", "type": "array", "items": { "type": "array", "items": { "type": "string" } } }, "issues": { "type": "array", "items": { "type": "string" } } }, "required": [ "row", "description", "amount", "candidatePayoutKeys" ], "additionalProperties": false }, "description": "Bank deposits without a confirmed link, including suggested allocations and debits that require review." }, "unallocatedLines": { "type": "array", "items": { "type": "object", "properties": { "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "type": { "type": "string" }, "kind": { "type": "string", "enum": [ "reservation", "adjustment", "other" ], "description": "Normalized transaction category." }, "needs_review": { "description": "The source transaction type is unrecognized.", "type": "boolean", "const": true }, "reservationId": { "type": "string" }, "transactionId": { "type": "string" }, "transactionDate": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "guest": { "type": "string" }, "checkIn": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "checkOut": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "net": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "breakdown": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "gross": { "type": "string" }, "hostFee": { "type": "string" }, "processingFee": { "type": "string" }, "commissionTax": { "type": "string" }, "deductions": { "type": "string" }, "cleaningFee": { "type": "string" }, "petFee": { "type": "string" }, "resortFee": { "type": "string" }, "taxWithheld": { "type": "string" }, "taxRemittedByOta": { "type": "string" }, "taxPassedToHost": { "type": "string" }, "occupancyTax": { "type": "string" }, "coHostPayout": { "type": "string" }, "adjustment": { "type": "string" }, "exchangeRate": { "type": "string" }, "otherItems": { "description": "Additional monetary columns or transaction types with their original amount signs.", "type": "array", "items": { "type": "object", "properties": { "column": { "type": "string" }, "amount": { "type": "string" } }, "required": [ "column", "amount" ], "additionalProperties": false } }, "calculatedNet": { "description": "Net reconstructed from the reported monetary breakdown.", "type": "string" } }, "required": [ "currency" ], "additionalProperties": false, "description": "Reported amounts preserve the source signs. Absent fields were unavailable." }, "file": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "row", "type", "kind", "net", "breakdown", "file" ], "additionalProperties": false } }, "adjustments": { "type": "array", "items": { "type": "object", "properties": { "file": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "row": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "reservationId": { "type": "string" }, "payoutKey": { "type": "string" }, "amount": { "type": "object", "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount": { "type": "string", "description": "Exact decimal amount in currency units." } }, "required": [ "currency", "amount" ], "additionalProperties": false }, "priorPayoutCandidates": { "type": "array", "items": { "type": "string" } }, "needs_review": { "type": "boolean" } }, "required": [ "file", "row", "amount", "priorPayoutCandidates", "needs_review" ], "additionalProperties": false } }, "needs_review": { "type": "boolean" } }, "required": [ "reservationCount", "reports", "payouts", "unmatchedDeposits", "unallocatedLines", "adjustments", "needs_review" ], "additionalProperties": false } ``` ## frereporting.generate Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "reportId": { "type": "string", "minLength": 1, "maxLength": 46, "pattern": "^[\\p{L}\\p{N}_+/-]+(?: [\\p{L}\\p{N}_+/-]+)*$", "description": "Transmission ID prefix. Generated IDs append -TX or -PAY." }, "createdAt": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:Z)|(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d)$" }, { "pattern": "^20\\d{2}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d$" } ], "description": "Local France date and time YYYY-MM-DDTHH:mm:ss, without an offset." }, "checkedAt": { "description": "Control clock in France local time. Defaults to the current time.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:Z)|(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d)$" }, { "pattern": "^20\\d{2}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d$" } ] }, "type": { "default": "IN", "type": "string", "enum": [ "IN", "RE" ] }, "platform": { "type": "object", "properties": { "id": { "type": "string", "minLength": 4, "maxLength": 4 }, "name": { "type": "string", "minLength": 1, "maxLength": 150 } }, "required": [ "id", "name" ], "additionalProperties": false, "description": "Matricule and registered name of the Plateforme Agréée." }, "declarant": { "type": "object", "properties": { "siren": { "type": "string", "pattern": "^\\d{9}$" }, "name": { "type": "string", "minLength": 1, "maxLength": 150 }, "role": { "type": "string", "enum": [ "seller", "buyer" ] }, "vatRegime": { "type": "string", "enum": [ "normal_monthly", "normal_quarterly", "simplified", "franchise" ] }, "vatOnDebits": { "description": "Whether the seller opted for VAT on debits.", "type": "boolean" } }, "required": [ "siren", "name", "role", "vatRegime" ], "additionalProperties": false }, "reportingDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ], "description": "A date in the selected VAT period. Transaction and payment periods are derived independently." }, "transactions": { "default": [], "maxItems": 2000, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "vatTotalEur": { "description": "Required for non-EUR transactions. Use the converted total VAT in EUR.", "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$" }, "taxPointCode": { "type": "string", "enum": [ "3", "5", "29", "35", "72", "432" ] }, "kind": { "type": "string", "const": "b2c" }, "category": { "type": "string", "enum": [ "TLB1", "TPS1", "TNT1", "TMA1" ] }, "taxes": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "rate": { "type": "number", "minimum": 0, "maximum": 100 }, "taxableAmount": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$", "description": "Taxable base in the transaction currency." }, "vatAmount": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$", "description": "VAT amount in EUR, including for non-EUR transactions." }, "taxableAmountEur": { "description": "Converted taxable base in EUR for checking VAT on non-EUR transactions.", "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$" } }, "required": [ "rate", "taxableAmount", "vatAmount" ], "additionalProperties": false } }, "count": { "default": 1, "description": "Number of transactions represented by the row. Defaults to one.", "type": "integer", "minimum": 0, "maximum": 999999999 } }, "required": [ "date", "currency", "kind", "category", "taxes" ], "additionalProperties": false }, { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "vatTotalEur": { "description": "Required for non-EUR transactions. Use the converted total VAT in EUR.", "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$" }, "taxPointCode": { "type": "string", "enum": [ "3", "5", "29", "35", "72", "432" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 35, "pattern": "^[\\p{L}\\p{N}_+/-]+(?: [\\p{L}\\p{N}_+/-]+)*$" }, "invoiceType": { "type": "string", "enum": [ "261", "380", "381", "384", "386", "389", "393", "396", "471", "472", "473", "500", "501", "502", "503" ] }, "frame": { "type": "string", "enum": [ "B1", "S1", "M1", "B2", "S2", "M2", "B4", "S4", "M4", "S5", "S6", "B7", "S7" ] }, "seller": { "type": "object", "properties": { "scheme": { "type": "string", "enum": [ "0002", "0223", "0227", "0228", "0229" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 18 }, "vatId": { "type": "string", "minLength": 1, "maxLength": 18 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "scheme", "id", "country" ], "additionalProperties": false }, "buyer": { "type": "object", "properties": { "scheme": { "type": "string", "enum": [ "0002", "0223", "0227", "0228", "0229" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 18 }, "vatId": { "type": "string", "minLength": 1, "maxLength": 18 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "scheme", "id", "country" ], "additionalProperties": false }, "sellerTaxRepresentativeVatId": { "type": "string", "minLength": 1, "maxLength": 18 }, "dueDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "referencedInvoices": { "maxItems": 25, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 35, "pattern": "^[\\p{L}\\p{N}_+/-]+(?: [\\p{L}\\p{N}_+/-]+)*$" }, "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] } }, "required": [ "id", "date" ], "additionalProperties": false } }, "delivery": { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "location": { "type": "object", "properties": { "lineOne": { "type": "string", "minLength": 1, "maxLength": 255 }, "city": { "type": "string", "minLength": 1, "maxLength": 255 }, "postalCode": { "type": "string", "minLength": 1, "maxLength": 10 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "lineOne", "city", "postalCode", "country" ], "additionalProperties": false } }, "additionalProperties": false }, "invoicePeriod": { "type": "object", "properties": { "start": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "end": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] } }, "required": [ "start", "end" ], "additionalProperties": false }, "taxes": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "rate": { "type": "number", "minimum": 0, "maximum": 100 }, "taxableAmount": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$", "description": "Decimal string with up to 2 fractional digits; an amount is limited to 19 positions excluding the dot." }, "vatAmount": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$", "description": "Decimal string with up to 2 fractional digits; an amount is limited to 19 positions excluding the dot." }, "category": { "type": "string", "enum": [ "S", "E", "AE", "K", "G", "O", "Z" ] }, "exemptionCode": { "type": "string", "minLength": 1, "maxLength": 30 }, "exemptionReason": { "type": "string", "minLength": 1, "maxLength": 1024 } }, "required": [ "rate", "taxableAmount", "vatAmount" ], "additionalProperties": false } }, "kind": { "type": "string", "const": "international_sale" } }, "required": [ "date", "currency", "id", "invoiceType", "frame", "seller", "buyer", "taxes", "kind" ], "additionalProperties": false }, { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "vatTotalEur": { "description": "Required for non-EUR transactions. Use the converted total VAT in EUR.", "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$" }, "taxPointCode": { "type": "string", "enum": [ "3", "5", "29", "35", "72", "432" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 35, "pattern": "^[\\p{L}\\p{N}_+/-]+(?: [\\p{L}\\p{N}_+/-]+)*$" }, "invoiceType": { "type": "string", "enum": [ "261", "380", "381", "384", "386", "389", "393", "396", "471", "472", "473", "500", "501", "502", "503" ] }, "frame": { "type": "string", "enum": [ "B1", "S1", "M1", "B2", "S2", "M2", "B4", "S4", "M4", "S5", "S6", "B7", "S7" ] }, "seller": { "type": "object", "properties": { "scheme": { "type": "string", "enum": [ "0002", "0223", "0227", "0228", "0229" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 18 }, "vatId": { "type": "string", "minLength": 1, "maxLength": 18 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "scheme", "id", "country" ], "additionalProperties": false }, "buyer": { "type": "object", "properties": { "scheme": { "type": "string", "enum": [ "0002", "0223", "0227", "0228", "0229" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 18 }, "vatId": { "type": "string", "minLength": 1, "maxLength": 18 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "scheme", "id", "country" ], "additionalProperties": false }, "sellerTaxRepresentativeVatId": { "type": "string", "minLength": 1, "maxLength": 18 }, "dueDate": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "referencedInvoices": { "maxItems": 25, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 35, "pattern": "^[\\p{L}\\p{N}_+/-]+(?: [\\p{L}\\p{N}_+/-]+)*$" }, "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] } }, "required": [ "id", "date" ], "additionalProperties": false } }, "delivery": { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "location": { "type": "object", "properties": { "lineOne": { "type": "string", "minLength": 1, "maxLength": 255 }, "city": { "type": "string", "minLength": 1, "maxLength": 255 }, "postalCode": { "type": "string", "minLength": 1, "maxLength": 10 }, "country": { "type": "string", "pattern": "^[A-Z]{2}$" } }, "required": [ "lineOne", "city", "postalCode", "country" ], "additionalProperties": false } }, "additionalProperties": false }, "invoicePeriod": { "type": "object", "properties": { "start": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "end": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] } }, "required": [ "start", "end" ], "additionalProperties": false }, "taxes": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "rate": { "type": "number", "minimum": 0, "maximum": 100 }, "taxableAmount": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$", "description": "Decimal string with up to 2 fractional digits; an amount is limited to 19 positions excluding the dot." }, "vatAmount": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,2})?$", "description": "Decimal string with up to 2 fractional digits; an amount is limited to 19 positions excluding the dot." }, "category": { "type": "string", "enum": [ "S", "E", "AE", "K", "G", "O", "Z" ] }, "exemptionCode": { "type": "string", "minLength": 1, "maxLength": 30 }, "exemptionReason": { "type": "string", "minLength": 1, "maxLength": 1024 } }, "required": [ "rate", "taxableAmount", "vatAmount" ], "additionalProperties": false } }, "kind": { "type": "string", "const": "international_acquisition" } }, "required": [ "date", "currency", "id", "invoiceType", "frame", "seller", "buyer", "taxes", "kind" ], "additionalProperties": false } ] } }, "payments": { "default": [], "description": "Reportable service receipts only, excluding VAT on debits and reverse-charge operations.", "maxItems": 2000, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "amounts": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "rate": { "type": "number", "minimum": 0, "maximum": 100 }, "amountEur": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,6})?$", "description": "Decimal string with up to 6 fractional digits; an amount is limited to 19 positions excluding the dot." } }, "required": [ "rate", "amountEur" ], "additionalProperties": false } }, "kind": { "type": "string", "const": "b2c" } }, "required": [ "date", "amounts", "kind" ], "additionalProperties": false }, { "type": "object", "properties": { "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] }, "amounts": { "minItems": 1, "maxItems": 30, "type": "array", "items": { "type": "object", "properties": { "rate": { "type": "number", "minimum": 0, "maximum": 100 }, "amountEur": { "type": "string", "maxLength": 20, "pattern": "^-?[0-9]+(?:\\.[0-9]{1,6})?$", "description": "Decimal string with up to 6 fractional digits; an amount is limited to 19 positions excluding the dot." } }, "required": [ "rate", "amountEur" ], "additionalProperties": false } }, "kind": { "type": "string", "const": "international_sale" }, "invoice": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 35, "pattern": "^[\\p{L}\\p{N}_+/-]+(?: [\\p{L}\\p{N}_+/-]+)*$" }, "date": { "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, { "pattern": "^20" } ] } }, "required": [ "id", "date" ], "additionalProperties": false } }, "required": [ "date", "amounts", "kind", "invoice" ], "additionalProperties": false } ] } } }, "required": [ "reportId", "createdAt", "platform", "declarant", "reportingDate" ], "additionalProperties": false, "examples": [ { "reportId": "POS-202609-2", "createdAt": "2026-09-21T09:15:00", "checkedAt": "2026-09-21T10:10:00", "platform": { "id": "0001", "name": "Example PA" }, "declarant": { "siren": "123456789", "name": "Exemple SARL", "role": "seller", "vatRegime": "normal_monthly" }, "reportingDate": "2026-09-15", "transactions": [ { "kind": "b2c", "date": "2026-09-15", "currency": "EUR", "category": "TLB1", "taxes": [ { "rate": 20, "taxableAmount": "32.00", "vatAmount": "6.40" } ] } ] } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean", "description": "Whether the XML passed the applicable local XSD and business-rule checks. Review flags identify discrepancies or checks that need additional information." }, "specification": { "type": "object", "properties": { "version": { "type": "string", "const": "3.2" }, "date": { "type": "string", "const": "2026-04-30" }, "url": { "type": "string", "const": "https://www.impots.gouv.fr/specifications-externes-b2b" } }, "required": [ "version", "date", "url" ], "additionalProperties": false }, "lineCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Submitted transaction or receipt rows used for pricing, at $0.10 per started block of 100." }, "issues": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "needs_review" ] }, "rule": { "type": "string" }, "section": { "type": "string" }, "path": { "type": "string" }, "expected": { "type": "string" }, "actual": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "sourceRows": { "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } }, "required": [ "severity", "rule", "section", "path", "expected", "actual" ], "additionalProperties": false } }, "reports": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "transactions", "payments" ] }, "id": { "type": "string" }, "period": { "type": "object", "properties": { "start": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" }, "end": { "type": "string", "format": "date", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" } }, "required": [ "start", "end" ], "additionalProperties": false }, "xml": { "type": "string" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "rows": { "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "description": "Zero-based source row indexes for each XML invoice or aggregate, in XML order." } }, "required": [ "rows" ], "additionalProperties": false } } }, "required": [ "kind", "id", "period", "xml", "groups" ], "additionalProperties": false } } }, "required": [ "valid", "specification", "lineCount", "issues", "reports" ], "additionalProperties": false } ``` ## frereporting.validate Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "xml": { "type": "string", "minLength": 1, "maxLength": 1048576 }, "vatRegime": { "type": "string", "enum": [ "normal_monthly", "normal_quarterly", "simplified", "franchise" ] }, "vatOnDebits": { "description": "Whether the seller opted for VAT on debits.", "type": "boolean" }, "checkedAt": { "description": "Control clock in France local time. Defaults to the current time.", "type": "string", "allOf": [ { "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:Z)|(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d)$" }, { "pattern": "^20\\d{2}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d$" } ] } }, "required": [ "xml" ], "additionalProperties": false, "examples": [ { "xml": "", "vatRegime": "normal_monthly" } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "valid": { "type": "boolean", "description": "Whether the XML passed the applicable local XSD and business-rule checks. Review flags identify discrepancies or checks that need additional information." }, "specification": { "type": "object", "properties": { "version": { "type": "string", "const": "3.2" }, "date": { "type": "string", "const": "2026-04-30" }, "url": { "type": "string", "const": "https://www.impots.gouv.fr/specifications-externes-b2b" } }, "required": [ "version", "date", "url" ], "additionalProperties": false }, "lineCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Submitted transaction or receipt rows used for pricing, at $0.10 per started block of 100." }, "issues": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "needs_review" ] }, "rule": { "type": "string" }, "section": { "type": "string" }, "path": { "type": "string" }, "expected": { "type": "string" }, "actual": { "type": "string" }, "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "sourceRows": { "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } }, "required": [ "severity", "rule", "section", "path", "expected", "actual" ], "additionalProperties": false } } }, "required": [ "valid", "specification", "lineCount", "issues" ], "additionalProperties": false } ```