These API allows users to modify an existing journal transaction and requires the transaction ID in the URL to specify which journal transaction needs to be updated.
The request is a POST method, and the request body must include the updated transaction details such as debit and credit ledger entries, invoice settlements, narration, and other relevant fields.
The API returns a success message along with a confirmation flag indicating that the journal transaction details have been successfully updated.
Request
Authorization
Add parameter in header
ApiKey
Example:
ApiKey: ********************
Path Params
id
integerÂ
required
It will be the ID of the journal transaction you want to update.
Example:
1
Body Params multipart/form-data
date
stringÂ
required
This field represents the date on which the journal transaction is recorded, formatted as DD-MM-YYYY.
Example:
13-02-2025
voucher_number
stringÂ
required
The voucher number is a unique identifier assigned to the journal transaction.
Example:
6
debit_credit_type[]
array[string]
optional
This field indicates whether the ledger transaction is a debit (1) or credit (2). Debit transactions generally represent expenses or asset additions, while credit transactions signify revenue or liability increases.
Example:
["1","2","2"]
debit_credit_type_id[]
array[string]
optional
This field holds the unique ID of debit or credit transactions that have been recorded in the journal entry using multiple ledgers.
Example:
["6634","6635"]
ledger_id[]
array[string]
optional
The ledger ID refers to the unique identifier assigned to each account involved in the transaction.
Example:
["2702","25718"]
amount[]
array[string]
optional
The amount[] field represents the value assigned by the user for each ledger in the transaction. It ensures that the total debit and credit amounts remain balanced(same).
Example:
["1500","1500"]
append_debit_id
stringÂ
optional
This field contains the unique identifier for the debit transaction that has been recorded using a specific ledger in the journal entry.
Example:
1
append_credit_id
stringÂ
optional
This field contains the unique identifier for the credit transaction that has been recorded using a specific ledger in the journal entry.
Example:
2
debit_total
numberÂ
optional
The total debit amount represents the sum of all debit transactions recorded in the journal entry.
Example:
85000
credit_total
numberÂ
optional
This field holds the total amount of credits in the journal entry, ensuring that it matches the corresponding debits.
Example:
85000
is_manage_credit_transaction[25718][]
array[string]
optional
This flag determines whether the system should auto-manage credit transactions.
Example:
1
cr_transaction_id[25718][]
array[string]
optional
This field represents the unique identifier for a credit transaction associated with the ledger ID in the journal transaction.
Example:
1697
credit_ledger_id[25718][]
array[string]
optional
The credit ledger ID (credit_ledger_id[ledger_id][]) represents the account that will receive the credit entry.
Example:
25718
credit_transaction_id[25718][]
array[string]
optional
A unique identifier assigned to each credit transaction.
Example:
12418
credit_invoice_number[25718][]
array[string]
optional
This field contains the invoice number linked to the credit transaction.
Example:
14
credit_bill_type[25718][]
array[string]
optional
This field specifies the type of bill that is being settled in the transaction. It helps categorize the financial entry based on its nature, such as sale, purchase return, payment, debit note, or credit note.
Example:
1
credit_received_amount[25718][]
array[string]
optional
The amount credited to an invoice as part of the transaction. It represents the portion of the total receivable amount that has been collected.
Example:
505
credit_discount_amount[25718][]
array[string]
optional
Any discount applied to the credit transaction is recorded in this field.
Example:
0
credit_rounding_amount[25718][]
array[string]
optional
This field stores any rounding adjustments applied to the credit transaction.
Example:
0
is_manage_credit_transaction[2702][]
stringÂ
optional
This flag determines whether the system should auto-manage credit transactions.
Example:
1
dr_transaction_id[2702][]
array[string]
optional
This field represents the unique identifier for a debit transaction associated with the ledger ID in the journal transaction.
Example:
["1477","1478"]
debit_ledger_id[2702][]
array[string]
optional
This debit_ledger_id[ledger_id][] specifies the ledger ID associated with each debit transaction. It ensures that the transaction is correctly linked to the appropriate account in the financial system.
Example:
["2702","2702"]
edit_transaction_id[2702][]
array[string]
optional
This field contains the ledger ID that has been added as either a debit or credit entry in the journal transaction.
Example:
["2702","2702"]
debit_transaction_id[2702][]
array[string]
optional
The transaction ID (debit_transaction_id[ledger_id][]) represents a unique identifier for each debit transaction.
Example:
["890","7503"]
debit_invoice_number[2702][]
array[string]
optional
This debit_invoice_number[ledger_id][] field contains the invoice number associated with a debit transaction.
Example:
["6","16"]
debit_bill_type[2702][]
array[string]
optional
The bill type determines the nature of the debit transaction, such as purchase invoices, expense notes, or other financial documents.
Example:
["1","1"]
debit_paid_amount[2702][]
array[string]
optional
This field represents the amount debited for a specific invoice. It is the portion of the total payable amount that has been settled.
Example:
["785","10642"]
debit_discount_amount[2702][]
array[string]
optional
If any discount is applied to a debit transaction, it is recorded in this field.
Example:
["0","0"]
debit_rounding_amount[2702][]
array[string]
optional
This field accounts for rounding adjustments applied to a debit transaction. Minor rounding differences occur due to currency conversions or decimal approximations.
Example:
["0","0"]
narration
stringÂ
optional
The field is used to provide a brief description of the journal transaction.