Handling California entity numbers in code
Quick answer. The California entity number is the stable key for a bizfile record. The Secretary of State says newly established numbers include the letter B, so treat the value as text and never strip characters. Netstate profiles can be fetched by registration number, making it the right key for re-checks.
Strings, not integers
Integrations that parse entity numbers as integers silently corrupt newer records: the B disappears, and the lookup fails or, worse, matches a different entity. Validate that the value you store equals the value printed on the bizfile detail page. Do the same for leading characters on older numbers.
Stable across renames
A California name amendment does not issue a new entity number. That makes the number the right join key between your CRM, contracts signed under an old name and the current Netstate profile, which lists prior names. Key your records on the number and treat the name as a display field.
Numbers that look similar
Users paste the wrong identifier more often than you would expect: a federal EIN, a Statement of Information file number, a seller’s permit, a Delaware file number. Reject obvious mismatches at input. An EIN has nine digits in a 2-7 pattern; a California entity number may carry a letter. When in doubt, search by name through Netstate and let the user confirm the matched number.
Common mistakes
- Stripping letters so the value is digits only.
- Using the Statement of Information document number as the entity key.
- Keying records on legal name instead of entity number.
Questions
Why does my new entity number start with B?
The Secretary of State’s bizfile page says newly established entity numbers include the letter B. Search and store it with the letter.