Skip to main content

Documents

Luna can manage Documents for you and natively integrate with them from the Luna runtime. This allows you to:

  • Attach Documents to all primitives in the system. This is useful for many reasons:

    • Attaching a legal document to a Contract
    • Attaching an overview of the product to a Template
    • Attaching ID docs to a Participant
  • Write Contracts that have behaviour triggered when Documents are uploaded. For example, you could:

    • Send a payment when an invoice is uploaded
    • Trigger an ID verification check when ID docs are uploaded

Documents

Documents are stored on the Luna platform at an Organization level and act as supplementary artefacts to objects that have been created in the system. They can be used to provide the corresponding legal context for a Luna agreement or they may represent documents that have been requested as part of the application/contract agreement process between the parties e.g. identification documents that can be used/have been used as part of KYC processes.

Within the system there are multiple objects against which you can attach Documents; the full list has been given below:

  • Participant
  • Contract
  • Template
  • Balance Sheet
  • Balance Sheet Account
  • Balance Sheet Entry
  • Balance Sheet Event

Relationships exist between these objects that allow Documents to passed through/inherited from one to another. For example, Documents attached to a Template will then be linked to any Contract that is an instantiation of the Template. These Documents can be retrieved via the API or viewed directly in the UI under either Contract details or Template details.

Documents can be created independently in the system, but then must be linked to specific objects.