Schema ID
https://gobl.org/draft-0/org/identity
Properties
| Title | Property | Type | Description |
|---|---|---|---|
| UUID | uuid | string | Universally Unique Identifier. |
| Label | label | string | Optional label useful for non-standard identities to give a bit more context. |
| Scope | scope | cbc.Key | Context in which the identity is meant to be used. |
| Country | country | l10n.ISOCountryCode | Country from which the identity was issued. |
| Key | key | cbc.Key | Uniquely classifies the identity, used instead of a type. |
| Type | type | cbc.Code | Type of code being represented, usually specific to a particular context, country, or tax regime. Cannot be used alongside the key. |
| Code | code | cbc.Code | Value of the identity. |
| Description | description | string | Details about what the code means or implies. |
| Extensions | ext | tax.Extensions | Additional structured information about the identity. |
Scope Values
| Value | Description |
|---|---|
tax | Tax |
legal | Legal |
Validation Rules
| Field | Test | Validation Code / Message |
|---|---|---|
| Identity |
| GOBL-ORG-IDENTITY-03Identity must have either a key or type defined, but not both |
code |
| GOBL-ORG-IDENTITY-01Identity code must be provided |
scope |
| GOBL-ORG-IDENTITY-02Identity scope when provided must be either ‘tax’ or ‘legal’ |