Use Case for Updating Line Items in a Journal Entry

To add line items to a journal entry, include the values of required fields such as account, debit and credit amounts in the request body. Make sure the debits and credits in the journal entry balance.

          PATCH {{REST_SERVICES}}/record/v1/journalentry/<id>/
{
    "line": {
        "items": [
            {
                "account": {
                    "id": "15"
                },
                "debit": 250
            },
            {
                "account": {
                    "id": "17"
                },
                "credit": 250
            }
        ]
    }
} 

        

To update an existing line item, mention the line number in the request body.

          PATCH {{REST_SERVICES}}/record/v1/journalentry/<id>/
{
    "line": {
        "items": [
            {
                "line": 2,
                "account": {
                    "id": "15"
                },
                "debit": 1150
            },
            {
                "line": 3,
                "account": {
                    "id": "17"
                },
                "credit": 1150
            }
        ]
    }
} 

        

Related Topics

Journal Entry Use Cases
Use Case for Creating a Journal Entry
Use Cases for Approving a Journal Entry
Use Case for Creating a Reverse Journal Entry
Use Case for Retrieving Journal Entries Created After a Date

General Notices