Certified Payroll Kit › Guides › eCPR V1 vs V2 fields
eCPR V1 vs V2: every field that changed
If you maintain an XML template, write the export in your payroll software, or just want to know why last month's file won't upload, this is the field-level difference between DIR's eCPR V1 and V2. It follows the Release Notes and field list in DIR's V2 guidelines and the published schema. Element names are shown without the CPR: prefix.
Two free tools for this: the eCPR XML V2 checker validates any XML file against DIR's V2 schema plus the arithmetic DIR's schema can't check, and the generator builds the V2 file from a QuickBooks, Gusto, ADP or spreadsheet export. Both run in your browser; worker data isn't uploaded.
At the top of the file
| Item | V1 | V2 |
|---|---|---|
| Namespace | The V1 schema | https://www.dir.ca.gov/Public-Works/CPR/eCPR-v2.xsd |
version | Not present | Required, first element: 2.0 (pattern "2." plus digits). Don't change it. |
| Upload setting | — | Choose "Schema Version 2.0" in DIR's upload form. A mismatch with the file fails the upload. |
Removed in V2
DIR already has these details from your registration and the project record, so V2 drops them. Delete them from templates and exports.
| V1 element | Block | In V2 |
|---|---|---|
contractorLicense (licenseType, licenseNum) | Contractor | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
contractorFEIN | Contractor | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
contractorAddress (street, city, state, zip) | Contractor | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
insuranceNum | Contractor | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
contractorEmail | Contractor | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
contractAgencyID, contractAgency | Project | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
projectName | Project | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
awardingBodyID | Project | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
projectNum, contractID | Project | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
projectLocation (description, street, city, county, state, zip) | Project | Remove. A V2 file that still contains it fails validation ("This element is not expected"). |
payrollNum, amendmentNum | Payroll | Still in the schema but system-assigned: leave empty or omit. DIR numbers payrolls and amendments (an amendment shows as "2-1"). |
Changed in V2
| Element | V1 | V2 |
|---|---|---|
contractorPWCR | Could be "NA" | Required. Exactly 10 digits, matching the PWCR on file with DIR. Missing or mismatched = hard failure. |
| Employee name | One name element | firstName and lastName required (max 56 characters each), middleName optional. A missing or misplaced name tag fails the submission. |
awardingBody | Part of project data | Optional, max 56 characters, kept for reference only. |
projectID | Project identifier | Required, numeric, must match the project registered with DIR. Mismatch = hard failure. |
Added in V2
| New element | Where | Rule |
|---|---|---|
Multiple classification elements | Employee | One per classification worked that week, each with its own days, fringes, hours and rates. At least one per employee. The name attribute must not be empty. |
employeeLevel | Classification | Exactly journeyman or apprentice, lowercase. |
apprenticeLevel | Classification | Whole number 1–10 for apprentices; empty for journeymen. |
fringePaid (paidToEmployee, paidToBenefitPlan) | Classification | Both required, true/false; at least one true. |
other deduction | Deductions | Required like the other seven; 0.0 if none. |
itin | Employee | 9 digits, as an alternative to ssn. At least one is required; SSN wins if both are filled. |
version | Top | 2.0. |
Element order in V2
The schema enforces order. A file with every value present but in the wrong order still fails, typically with "This element is not expected. Expected is ( firstName )".
- File
- version → contractorInfo (contractorName, contractorPWCR) → projectInfo (awardingBody, projectID) → payrollInfo (statementOfNP, forWeekEnding, payrollNum, amendmentNum, employees)
- employee
- firstName, lastName, middleName, address, ssn, itin, notes, classifications, payments, deductions, earnings
- classification
- craft, employeeLevel, apprenticeLevel, hrsWorkedEachDay, fringePaid, fringe, totHrs, hrlyPayRate
- deductions
- fedTax, FICA, stateTax, SDI, fundAdmin, savings, dues, other, totalDeductions
- earnings
- grossThisProject, grossAllWork, netWagePaidWeek, checkNum ("CASH" for cash payments)
V2 field rules worth knowing
| Field | Rule in V2 |
|---|---|
statementOfNP | true or false, lowercase. When true, the employees element may be left out (DIR's November 2026 schema made it optional) and any employee data is ignored. When false, at least one employee with hours above 0 is expected. |
forWeekEnding | YYYY-MM-DD, a real date, no earlier than 2010-01-07. The week is this date and the six days before it. |
day | Exactly seven per classification, ids 1–7 in order, id 7 = week ending date, consecutive real dates, even when hours are 0.0. |
| Daily hours | Straight, overtime, double time: each ≥ 0 and under 100, two decimals. All classifications combined: no more than 24 hours in one day. |
totHrs | Must equal the sum of the daily values; total above 0 unless it's a no-work week. |
| Address | street max 100 characters (raised from 40 in DIR's November 2026 update); state two uppercase letters; zip 12345 or 12345-6789. |
ssn / itin | 9 digits, no dashes. SSNs must be unique in the file; duplicates are rejected. |
notes | Optional, up to 256 characters; HTML is stripped. |
| Fringe amounts | healthWelfare, vacationHoliday, pension, training, other: all required, 0.0 if not used. |
| Rates | Base rates 0 or more and under 10,000 (DIR's November 2026 schema allows a 0 straight-time rate). Each total rate = base rate + the classification's fringe total. |
travelSubs | Employer-paid allowance, not a deduction; never included in totalDeductions. |
Fields DIR stores without recalculating
DIR's guidelines call these "source of truth" fields: stored exactly as you send them, not checked against the rest of the file. The schema can't catch a wrong value here, so check them yourself (our checker recomputes each one):
totalHrlyPayRateStraightTime,…Overtime,…Doubletime: base rate plus that classification's fringe.totalDeductions: the sum of the eight deductions, without travel or fringe.grossThisProject,grossAllWork,netWagePaidWeek.
Mapping old data to the new fields
- Split names carefully. "Garcia Lopez, Maria J." is last name "Garcia Lopez", first "Maria", middle "J." DIR says names are split to improve matching across submissions, so use the same split every week.
- Workers with two crafts used to need duplicate entries. In V2 list the worker once, with one classification per craft.
- Fringes now need a per-classification split into five categories and a paid-to flag. If your payroll only tracks one fringe total, decide the split once from your plan documents and keep it consistent.
More on the V2 switch
- eCPR V2: what changes on January 13, 2027
- V2 upload errors and how to fix them
- V2 XML from QuickBooks, Gusto and ADP
- California eCPR XML V2 overview and checker
Questions
Can I just add a version element to my V1 file?
No. V2 removes many V1 elements and changes others, so a V1 file with <CPR:version>2.0</CPR:version> still fails on the removed elements, the name fields and the new required ones.
Is contractorPWCR still allowed to be NA?
No. In V2 it is required, exactly 10 digits, and must match the PWCR number on file with DIR.
Do I still need the project name and address?
No. V2 removes projectName, the projectLocation block and the contract and agency IDs. Only the numeric projectID (required) and awardingBody (optional) remain.
How do I report a worker who did two classifications?
One employee element with two classification elements, each with its own seven days, fringes, hours and rates. Combined hours across classifications can't exceed 24 in a day.
Is there a list of valid classification names?
DIR's FAQ says no complete list is public yet. Use the names from your certified payroll records; names DIR doesn't recognise are changed to "Other".
Official DIR documents used on this page
- eCPR XML Guidelines V2: Release Notes and Full List of XML Fields
- eCPR V2 schema (XSD)
- eCPR XML Submission FAQ (V2)
- DIR project lookup
General information as of November 2026, not legal advice. DIR can update its documents; check the links above before relying on a detail.