validate_usci
Verify a China Unified Social Credit Identifier's format and check digit offline, decoding its administrative division and entity type. Passing only confirms well-formedness, not company status.
Instructions
Check whether an 18-character Unified Social Credit Identifier (USCI/USCC) from a mainland China business licence is well formed, and decode its segments. Offline arithmetic check per GB 32100-2015: verifies the character set and the mod-31 check character, and reports the registering authority, entity category and administrative division encoded in the code. Returns explicitly what a passing code does and does not establish. Does NOT query any registry and does NOT prove the company exists, is active, or is trustworthy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The identifier as printed on the licence. Whitespace, full-width spaces, hyphens and lower case are tolerated. |