Twisp 101

Step 1: Create a Primary Journal

Before we begin designing accounts, we need to define a journal within which to organize transactions.

In most cases, a single Journal is enough. For Zuzu, we'll create a single "General Ledger" journal which will record all transactions.

001_CreateGLJournal

mutation CreateGeneralLedger {
  createJournal(
    input: {
      journalId: "822cb59f-ce51-4837-8391-2af3b7a5fc51"
      name: "General Ledger"
      description: "Primary journal for Zuzu."
    }
  ) {
    journalId
    name
    description
    status
  }
}

Note that Twisp ledgers come with a pre-built "Default" journal, which is ideal for single-journal ledgers. For the purposes of illustration, we'll be using a custom Journal in this tutorial.

Now that we have a journal, we can start building the components needed to support the core use cases. Let's start by modeling deposits and withdrawals.

Previous
Introduction