Developer Center

GL Accounts API

Last Updated: Oct 03, 2018 02:39PM CEST

URL

/api/glaccounts
/api/glaccounts/{id}

Description

Allows you to retrieve gl accounts by type or specific gl accounts along with their balance. Balance for the gl accounts can be taken from the current moment or from a date range.

Methods

GET GL Accounts

Allows retrieving a list or specific gl accounts.

Parameters

type The type of GL accounts to retrieve(Required if no account id is provided).
  • ASSET
  • LIABILITY
  • EQUITY
  • INCOME
  • EXPENSE
from From (start) date to compute the account balance on
to To (end) date to compute the account balance on
branchID The branch ID on which to calculate/filter the gl accounts balances

Usage examples

//get all the asset accounts for the organizations
GET /api/glaccounts?type=ASSET

//get the account 100001 with the current balance
GET /api/glaccounts/100001
 
//get the account 100001 with its balance change between these dates
GET /api/glaccounts/100001?from=2012-06-01&to=2012-07-01

Samples responses:

//response containing the the asset accounts
[
   {
      "encodedKey":"402832b43809601c01380963ab52035a",
      "creationDate":"2012-06-20T12:15:23+0200",
      "lastModifiedDate":"2012-06-20T12:15:23+0200",
      "balance":"32000",
      "description":"GL Account test description",
      "glCode":"100001",
      "type":"ASSET",
      "usage":"DETAIL",
      "name":"Loan Product Portfolio",
      "activated":true,
      "allowManualJournalEntries":true
   },
   {
      "encodedKey":"402832b43809601c01380963ab55035b",
      "creationDate":"2012-06-20T12:15:23+0200",
      "lastModifiedDate":"2012-06-20T12:15:23+0200",
      "glCode":"100002",
      "balance":"30000"
      "description":"GL Account test description"
      "type":"ASSET",
      "usage":"DETAIL",
      "name":"Cash On Hand",
      "activated":true,
      "allowManualJournalEntries":true
   },
   {
      "encodedKey":"402832b43809601c01380963ab6f0364",
      "creationDate":"2012-06-20T12:15:23+0200",
      "lastModifiedDate":"2012-06-20T12:15:23+0200",
      "glCode":"100011",
      "balance":"2000"
      "description":"GL Account test description"
      "type":"ASSET",
      "usage":"DETAIL",
      "name":"Overdraft Product Portfolio",
      "activated":true,
      "allowManualJournalEntries":true
   }
]

//response for an individual account and its balance
{
   "encodedKey":"402832b43809601c01380963ab52035a",
   "creationDate":"2012-06-20T12:15:23+0200",
   "lastModifiedDate":"2012-06-20T12:15:23+0200",
   "glCode":"100001",
   "balance":"15000"
   "description":"GL Account test description"
   "type":"ASSET",
   "usage":"DETAIL",
   "name":"Loan Product Portfolio",
   "activated":true,
   "allowManualJournalEntries":true,
   "balance":"1900"
}

support@mambu.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete