DocumentRef is used to describe an existing document or a specific part of it’s contents.

Schema ID

https://gobl.org/draft-0/org/document-ref

Properties

TitlePropertyTypeReq.Description
UUIDuuidstringUniversally Unique Identifier.
Typetypecbc.KeyType of the document referenced.
Issue Dateissue_datecal.DateIssueDate reflects the date the document was issued.
Seriesseriescbc.CodeSeries the referenced document belongs to.
Codecodecbc.CodetrueSource document’s code or other identifier.
Currencycurrencycurrency.CodeCurrency used in the document, if different from the parent’s currency.
Lineslinesarray of integerLine index numbers inside the document, if relevant.
Identitiesidentitiesarray of org.IdentityList of additional codes, IDs, or SKUs which can be used to identify the document or its contents, agreed upon by the supplier and customer.
Periodperiodcal.PeriodTax period in which the referred document had an effect required by some tax regimes and formats.
ReasonreasonstringHuman readable description on why this reference is here or needs to be used.
DescriptiondescriptionstringAdditional details about the document.
Stampsstampsarray of head.StampSeals of approval from other organizations that may need to be listed.
URLurlstringLink to the source document.
Taxtaxtax.TotalTax total breakdown from the original document in the provided currency. Should only be included if required by a specific tax regime or addon.
Payablepayablenum.AmountPayable is the total amount that is payable in the referenced document. Only needed for specific tax regimes or addons. This may also be used in some scenarios to determine the proportion of the referenced document that has been paid, and calculate the remaining amount due and taxes.
Extensionsexttax.ExtensionsExtensions for additional codes that may be required.
Metametacbc.MetaMeta contains additional information about the document.