JournalTransaction

JournalTransaction represents a journal transaction, or journal entry, that manually records a transaction among accounts.

Type

General entity

Fields

Field name

Type

Writable

Required

Description

date

string

The transaction date in YYYY-MM-DD format.

description

string

The transaction details and description.

The header date and description are brought over to the entries as their respective dates and descriptions.

  • The debit and credit amounts in an entry are mutually exclusive, meaning that either of

    them must contain a value while the other is set to null.

  • The total debit and credit amounts within a transaction must be equivalent.

Sample

{
"date_created": 1567675559050,
"date_updated": 1567677935953,
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"date": "2019-08-31",
"description": "Withholding tax submission for August 2019.",
"entries": [
{
"date_created": 1567675559052,
"date_updated": 1567677936057,
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"date": "2019-08-31",
"debit_amount": null,
"credit_amount": 3120.00000,
"account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "1102",
"name": "Savings Account (CITI Bank)",
"type": "ASSET_CURRENT",
"_id": "29475175-ad6c-433b-9653-02152a0b4590"
},
"description": "Withholding tax submission for August 2019.",
"_id": "53492281-7ec7-4634-a48f-02f1b05d9fa0"
},
{
"date_created": 1567675559051,
"date_updated": 1567677936060,
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"date": "2019-08-31",
"debit_amount": 3120.00000,
"credit_amount": null,
"account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "2181",
"name": "Withholding Tax Payable (WTH-3)",
"type": "LIABILITY_CURRENT",
"_id": "f4fe88aa-e1e9-4440-9cbf-b44b93b3414d"
},
"description": "Withholding tax submission for August 2019.",
"_id": "6a65fc07-7775-4161-a8bc-2581e8fc6d13"
}
],
"_id": "f134e2b3-6303-49cc-9253-22cd378f5232",
"_links": {
"self": {
"href": "https://api.pymlo.com/v1/businesses/a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1/accounting/journalTransactions/f134e2b3-6303-49cc-9253-22cd378f5232"
}
}
}