Add a Journal Entry

POST https://us-central1-appgregator.cloudfunctions.net/jurnalID/journal_entries/

Query Parameters

Name
Type
Description

name*

String

ft-4

connection_name*

String

intrapreneur-jurnalid-1

Headers

Name
Type
Description

x-api-key*

String

U2Fsd...

{
    "journal_entry": {
        "id": 532245862,
        "custom_id": "JE07",
        "transaction_no": "JE07",
        "token": "m5CawrOXeV2Z4bHci7H6TA",
        "memo": "memo journal entry",
        "source": "appstore_codebayu22@gmail.com",
        "deleted_at": null,
        "deletable": true,
        "editable": true,
        "audited_by": null,
        "transaction_date": "15/06/2022",
        "transaction_status": {
            "id": 2,
            "name": "Closed",
            "name_bahasa": "Selesai"
        },
        "transaction_account_lines": [
            {
                "id": 524897523,
                "description": null,
                "debit": 40000,
                "credit": 0,
                "credit_currency_format": "Rp.  0,00",
                "debit_currency_format": "Rp.  40.000,00",
                "line_tax": {
                    "id": null,
                    "name": null,
                    "rate": null,
                    "children": []
                },
                "account": {
                    "id": 61810308,
                    "name": "Cash",
                    "number": "1-10001",
                    "category": {
                        "id": 3,
                        "name": "Cash & Bank"
                    }
                },
                "expense": {
                    "id": null,
                    "transaction_no": null,
                    "original_amount": 0,
                    "remaining": 0,
                    "original_amount_currency_format": "0,00",
                    "remaining_currency_format": "0,00"
                }
            },
            {
                "id": 524897525,
                "description": null,
                "debit": 0,
                "credit": 40000,
                "credit_currency_format": "Rp.  40.000,00",
                "debit_currency_format": "Rp.  0,00",
                "line_tax": {
                    "id": null,
                    "name": null,
                    "rate": null,
                    "children": []
                },
                "account": {
                    "id": 61810337,
                    "name": "Bank Loans",
                    "number": "2-20400",
                    "category": {
                        "id": 10,
                        "name": "Other Current Liabilities"
                    }
                },
                "expense": {
                    "id": null,
                    "transaction_no": null,
                    "original_amount": 0,
                    "remaining": 0,
                    "original_amount_currency_format": "0,00",
                    "remaining_currency_format": "0,00"
                }
            }
        ],
        "total_debit": 40000,
        "total_credit": 40000,
        "total_debit_currency_format": "Rp.  40.000,00",
        "total_credit_currency_format": "Rp.  40.000,00",
        "attachments": [],
        "tags": [
            {
                "id": 6176573,
                "name": "tag1"
            },
            {
                "id": 6176574,
                "name": "tag2"
            }
        ],
        "tags_string": "tag1, tag2",
        "locked": false,
        "is_reconciled": false,
        "created_at": "2022-08-10T04:46:24.513Z",
        "updated_at": "2022-08-10T04:46:24.513Z",
        "currency_code": "IDR"
    }
}
Body JSON
{
  "journal_entry": {
    "transaction_date": "15-06-2022",
    "transaction_no": "JE07",
    "memo": "memo journal entry",
    "custom_id": "JE07",
    "transaction_account_lines_attributes": [
      {
        "account_name": "Cash",
        "debit": 40000
      },
      {
        "account_name": "Bank Loans",
        "credit": 40000
      }
    ],
    "tags": [
      "tag1",
      "tag2"
    ]
  }
}
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/journal_entries?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
  "journal_entry": {
    "transaction_date": "15-06-2022",
    "transaction_no": "JE07",
    "memo": "memo journal entry",
    "custom_id": "JE07",
    "transaction_account_lines_attributes": [
      {
        "account_name": "Cash",
        "debit": 40000
      },
      {
        "account_name": "Bank Loans",
        "credit": 40000
      }
    ],
    "tags": [
      "tag1",
      "tag2"
    ]
  }
}'

Last updated