> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Code

Alphanumerical text identifier with upper-case letters and limits on using special characters or whitespace to separate blocks.

## Schema ID

`https://gobl.org/draft-0/cbc/code`

## Validation Rules

| Field               | Test                                                                                         | Validation Code / Message                                                                                       |
| ------------------- | -------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| <small>Code</small> | <ul class="gobl-test"><li>Length between 0 and 64</li></ul>                                  | `GOBL-CBC-CODE-01`<br />Codes must be no longer than 64 characters                                              |
| <small>Code</small> | <ul class="gobl-test"><li>Matches ^\[A-ZÑa-z0-9]+(\[.-:/,\_& ]?\[A-ZÑa-z0-9]+)\*\$</li></ul> | `GOBL-CBC-CODE-02`<br />Codes must only contain letters, numbers, and optionally separated by .-:/,\_& or space |
