Warning! Construction underway! Amatino is in an 'alpha' state. Not all features are operational. See roadmap

Primary
Account
Entity
Transaction
Derived
Balance
Ledger
Performance
Position
Recursive Balance
Recursive Ledger
Tree
Ancillary
Custom Unit
Entry
Global Unit
Global Unit List
Ledger Row
Session
Side
Tx Version List
Tree Node
Object
Retrieve
User

Type

Double-entry accounting divides accounts into five fundamental types: Assets, liabilities, equities, incomes and expenses. Throughout Amatino, these five constants are referred to as Types.

You will most often encounter Types when creating Accounts. Erstwhile, most of the work that Types do occurs behind the scenes, and you won't need to interact with them directly.

While you can retrieve the five Types with a GET request, they are unchanging and it is safe to hard-code them into your application.

Under the hood, Types allow Amatino to maintain the Fundamental Double-Entry Equality.

The Type Object

Type objects are returned with the following structure

Root Type

JSON Array

Object Structure

description Either assets, liability, equity, income or expense
key "name"
example "asset"
type JSON String

Retrieve Type

API Path /constants/account_types
HTTP Method GET
Description Descr. Retrieve the Amatino Type constants

Required Headers

Key X-Signature
Value Your Session signature
Example "yxATCPRKAAXHNiPctNQPHEGGVJF"...
Key X-Session-ID
Value An an integer Session ID
Example 7449059267091272858

Required URL Parameters

None.

Required JSON Data

None.

Returns

Root Type

JSON Array

Object

Type