> ## 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

Text identifier with a limit of 128 characters, no control characters, and no leading or trailing whitespace.

## Schema ID

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

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| Code | <ul><li>Length at most 128</li></ul> | `GOBL-CBC-CODE-01` Codes must be no longer than 128 characters |
| Code | <ul><li>Matches `^[^\s\x00-\x1f\x7f-\x9f]([^\x00-\x1f\x7f-\x9f]*[^\s\x00-\x1f\x7f-\x9f])?$`</li></ul> | `GOBL-CBC-CODE-02` Codes must not contain control characters or leading or trailing whitespace |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.