Get an account
GET
https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/:id
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
intrapreneur-jurnalid-1
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
{
"account": {
"id": 61810308,
"name": "Cash",
"description": null,
"number": "1-10001",
"company_id": 473256,
"custom_id": null,
"opening_balance": null,
"start_balance": null,
"active": true,
"company_tax_id": null,
"created_at": "2022-08-04T08:15:36.000Z",
"updated_at": "2022-08-04T08:15:36.000Z",
"archive": false,
"is_parent": false,
"name_without_code": "(1-10001) - Cash",
"deletable": true,
"editable": true,
"balance": "-15197500.0",
"balance_string": "(Rp. 15.197.500,00)",
"category": {
"id": 3,
"name": "Cash & Bank"
},
"company": {
"id": 473256,
"name": "pt.smar"
},
"children": [],
"parent": {
"id": null,
"name": null
},
"currency_code": "IDR",
"transactions": [
{
"date": "15/06/2016",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529098382,
"transaction_type": "Bank Transfer",
"transaction_no": "721312",
"memo": "memo goes here"
},
"debit": " 0,00",
"credit": " 750.000,00",
"balance": "- 750.000,00"
},
{
"date": "15/06/2016",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 530927414,
"transaction_type": "Bank Transfer",
"transaction_no": "INV012",
"memo": "memo goes here"
},
"debit": " 0,00",
"credit": " 750.000,00",
"balance": "- 1.500.000,00"
},
{
"date": "15/06/2016",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 530982806,
"transaction_type": "Journal Entry",
"transaction_no": "JE02",
"memo": "memo journal entry"
},
"debit": " 40.000,00",
"credit": " 0,00",
"balance": "- 1.460.000,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529059610,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing",
"memo": null
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 1.460.100,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529063668,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing2",
"memo": null
},
"debit": " 0,00",
"credit": " 5.000,00",
"balance": "- 1.465.100,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529064340,
"transaction_type": "Expense",
"transaction_no": "10002",
"memo": null
},
"debit": " 0,00",
"credit": " 6.000,00",
"balance": "- 1.471.100,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529066174,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing3",
"memo": null
},
"debit": " 0,00",
"credit": " 25.000,00",
"balance": "- 1.496.100,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529250904,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing41",
"memo": null
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 1.496.200,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529251941,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing42",
"memo": null
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 1.496.300,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529252968,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing43",
"memo": null
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 1.496.400,00"
},
{
"date": "20/08/2017",
"person": {
"id": 47156809,
"name": "PT.MAJU",
"type": "employee"
},
"transaction": {
"id": 529255587,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing44",
"memo": ""
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 1.496.500,00"
},
{
"date": "20/08/2017",
"person": {
"id": 47156809,
"name": "PT.MAJU",
"type": "employee"
},
"transaction": {
"id": 529255587,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing44",
"memo": ""
},
"debit": " 0,00",
"credit": " 900,00",
"balance": "- 1.497.400,00"
},
{
"date": "20/08/2017",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529319233,
"transaction_type": "Expense",
"transaction_no": "INV006",
"memo": null
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 1.497.500,00"
},
{
"date": "15/06/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 532245862,
"transaction_type": "Journal Entry",
"transaction_no": "JE07",
"memo": "memo journal entry"
},
"debit": " 80.000,00",
"credit": " 0,00",
"balance": "- 1.417.500,00"
},
{
"date": "05/08/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 528979997,
"transaction_type": "Expense",
"transaction_no": "1",
"memo": ""
},
"debit": " 0,00",
"credit": " 11.100.000,00",
"balance": "- 12.517.500,00"
},
{
"date": "05/08/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529071944,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing5",
"memo": null
},
"debit": " 0,00",
"credit": " 25.000,00",
"balance": "- 12.542.500,00"
},
{
"date": "05/08/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529100184,
"transaction_type": "Bank Transfer",
"transaction_no": "100",
"memo": "BAYAR MAKAN"
},
"debit": " 0,00",
"credit": " 750.000,00",
"balance": "- 13.292.500,00"
},
{
"date": "05/08/2022",
"person": {
"id": 47145876,
"name": "RONALD",
"type": "employee"
},
"transaction": {
"id": 529107247,
"transaction_type": "Expense",
"transaction_no": "INV001",
"memo": ""
},
"debit": " 0,00",
"credit": " 310.800,00",
"balance": "- 13.603.300,00"
},
{
"date": "05/08/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529192497,
"transaction_type": "Bank Withdrawal",
"transaction_no": "10001",
"memo": ""
},
"debit": " 0,00",
"credit": " 250.000,00",
"balance": "- 13.853.300,00"
},
{
"date": "05/08/2022",
"person": {
"id": 47145876,
"name": "RONALD",
"type": "employee"
},
"transaction": {
"id": 529209680,
"transaction_type": "Expense",
"transaction_no": "10003",
"memo": ""
},
"debit": " 0,00",
"credit": " 233.100,00",
"balance": "- 14.086.400,00"
},
{
"date": "05/08/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529243471,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing31",
"memo": "tes bayar"
},
"debit": " 0,00",
"credit": " 240.000,00",
"balance": "- 14.326.400,00"
},
{
"date": "05/08/2022",
"person": {
"id": null,
"name": null,
"type": null
},
"transaction": {
"id": 529244360,
"transaction_type": "Expense",
"transaction_no": "Expenses - Testing32",
"memo": "tes bayar"
},
"debit": " 0,00",
"credit": " 240.000,00",
"balance": "- 14.566.400,00"
},
{
"date": "05/08/2022",
"person": {
"id": 47156809,
"name": "PT.MAJU",
"type": "employee"
},
"transaction": {
"id": 529303472,
"transaction_type": "Bank Withdrawal",
"transaction_no": "10003",
"memo": "Dari POSTMAN"
},
"debit": " 0,00",
"credit": " 40.000,00",
"balance": "- 14.606.400,00"
},
{
"date": "05/08/2022",
"person": {
"id": 47145876,
"name": "RONALD",
"type": "employee"
},
"transaction": {
"id": 529310929,
"transaction_type": "Bank Withdrawal",
"transaction_no": "10004",
"memo": "Dari POSTMAN"
},
"debit": " 0,00",
"credit": " 40.000,00",
"balance": "- 14.646.400,00"
},
{
"date": "05/08/2022",
"person": {
"id": 47161278,
"name": "PT.BAHAGIA",
"type": "vendor"
},
"transaction": {
"id": 529326531,
"transaction_type": "Expense",
"transaction_no": "INV007",
"memo": null
},
"debit": " 0,00",
"credit": " 100,00",
"balance": "- 14.646.500,00"
}
]
}
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/61810308?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2Fsd...'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/61810308?name=ft-4&connection_name=intrapreneur-jurnalid-1',
headers: {
'x-api-key': 'U2Fsd...'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/accounts/61810308?name=ft-4&connection_name=intrapreneur-jurnalid-1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated