Overview

This page will help you get started with Ledgers.

With our ledger product, merchants have the ability to automatically track and calculate the amount of money that is due for payout to each merchant at any specific moment. This feature enables a streamlined process of managing financial transactions, reducing the need for manual calculations and tracking. In addition, it provides merchants with a clear and updated view of their financial obligations, thus ensuring timely and accurate payouts.

Accounts

An account tracks money in a particular currency. Depending on the type of the account, it could either be an asset, or liability for the merchant.

KeyTypeDescription
idstringUnique identifier for the ledger account.
namestringThe name of the ledger account. e.g. Assets
currencystringThe currency of this account
descriptionstringDescription for the account
account_typestringOne of credit_normal, debit_normal. If an account is credit_normal normal, then a credit would increase balance, if it's debit normal, debit would increase the balance. For example, liabilities accounts are credit_normal normal whereas assets accounts are debit_normal.
balancesobjectThe pending, total, and available balances for this ledger account.
metadataobjectAdditional data represented as key-value pairs for internal references

Transactions

Each transaction has either two or more entries to the ledger, to maintain double-entry accounting while making updates to the balance of the account

KeyTypeDescription
idstringUnique ID for the transaction.
descriptionstringDescription for the transaction
statusstringOne of initiated, successful, or archived.
metadataobjectAdditional data represented as key-value pairs for internal references
ledger_entriesarray objectAn array of ledger entries objects.
posted_atdatetimeThe date and time when the ledger transaction posted.
effective_atdatetimeThe time at which the ledger transaction happened for reporting purposes.

Entries

KeyTypeDescription
idstringUnique identifier for the ledger entry.
ledger_account_idstringID of the ledger account.
ledger_account_currencystringThe currency of the ledger account
ledger_account_currency_exponentintThe currency exponent of the ledger account
directionstringEither credit or debit.
amountintValue in specified currency's smallest unit. e.g. $10 would be represented as 1000. Can be any integer up to 10³⁶.
ending_balanceobjectThe ending pending, total, and available balances for this ledger account.
statusstringEqual to the state of the ledger transaction when the ledger entry was created. One of pending, total, or archived.
metadataobjectAdditional data represented as key-value pairs for internal references