HisabKitab
  1. Journal Transaction
HisabKitab
  • Third Party APIs
    • How to Generate ApiKey ?
    • Account Master
      • Ledger Groups
        • List of All Groups
        • Create Group
        • Create Batch Groups
        • Edit Group
        • Update Group
        • Delete Group
      • Ledgers
        • Create Ledger
          • Customer Ledger
          • Supplier Ledger
          • Bank Ledger
          • Capital Ledger
          • Cash Ledger
          • Income Ledger
          • Expense Ledger
          • Fixed Asset Ledger
          • Investment Ledger
          • Loan and Advance (Asset) Ledger
          • Misc Assets Ledger
          • Other Current Assets Ledger
          • Taxes - GST Ledger
          • Taxes - TDS Ledger
          • Taxes - TCS Ledger
          • Provisions Ledger
          • Reserve and Surplus Ledger
          • Secured Loan Ledger
          • Unsecured Loan Ledger
          • Stock In Hand Ledger
          • Other Current Liabilities Ledger
          • TDS Receivable Ledger
          • TCS Receivable Ledger
        • Ledger Detail
        • List of all Ledgers
        • Edit Ledger
        • Update Ledger
        • Delete Ledger
        • Delete Ledger Media
        • Add Location(Fixed Asset )
        • Check Unique GST Number
        • Check Unique GST Number with Ledger
        • Holding & Profit Ratio
        • Ledger TDS tax Data
        • Ledger TCS tax Data
    • Item Master
      • Item Groups
        • List of all groups
        • Create Group
        • Create Batch Groups
        • Edit Group
        • Update Group
        • Delete Group
      • Items
        • Item Form Details
        • List of items
        • Create Good Item
        • Create Service Item
        • Edit Item
        • Update Item
        • Delete Item
      • Unit of Measurement
        • List of Unit of Measurement
        • Create Unit of Measurement
        • Edit Unit of Measurement
        • Update Unit of Measurement
        • Delete Unit of Measurement
    • Broker Master
      • List of Brokers
      • Create Broker
      • Edit Broker
      • Update Broker
      • Delete Broker
    • Transport Master
      • List of Transport
      • Create Transport
      • Edit Transport
      • Update Transport
      • Delete Transport
    • Cess Rate
      • List of Cess Rate
      • Create Cess Rate
      • Edit Cess Rate
      • Update Cess Rate
      • Delete Cess Rate
    • Dispatch Address
      • List of Dispatch Address
      • Create Dispatch Address
      • Edit Dispatch Address
      • Update Dispatch Address
      • Delete Dispatch Address
    • Shipping Address
      • List of Shipping Addresses
      • Create Shipping Address
      • Edit Shipping Address
      • Update Shipping Address
      • Delete Shipping Address
    • Comman APIs
      • Company Details
      • Countries
      • States
      • Cities
      • Gst Rates
      • Classification-nature-type
    • Configuration
      • Sale
        • Sale Configuration
        • Update Configuration
        • Update Configuration with Type
      • Sale Return
        • Sale Return Configuration
        • Update Configuration
        • Update Configuration with Type
      • Income Debit Note
        • Debit Note Configuration
        • Update Configuration
        • Update Configuration with Type
      • Income Credit Note
        • Credit Note Configuration
        • Update Configuration
        • Update Configuration with Type
      • Estimate Quote
        • Estimate Configuration
        • Update Configuration with Type
        • Update Configuration
      • Delivery Challan
        • Delivery Challan Configuration
        • Update Configuration
        • Update Configuration with Type
      • Purchase
        • Purchase Configuration
        • Update Configuration
        • Update Configuration with Type
      • Purchase Return
        • Purchase Return Configuration
        • Update Configuration
        • Update Configuration with Type
      • Expense Credit Note
        • Expense Credit Note Configuration
        • Update Configuration
        • Update Configuration with Type
      • Expense Debit Note
        • Expense Debit Note Configuration
        • Update Configuration
        • Update Configuration with Type
      • Purchase Order
        • Purchase Order Configuration
        • Update Configuration
        • Update Configuration with Type
    • Sale Transactions
      • List of Transactions
      • Next Invoice Number
      • Create Item Sale
      • Create Accounting Sale
      • Edit Sale
      • Update Sale
      • Duplicate Sale
      • Delete Sale
      • Get Sale For Sale Return
      • Create Challan From Sale Invoice
    • Sale Return Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Sale Return
      • Create Accounting Sale Return
      • Edit Sale Return
      • Update Sale Return
      • Duplicate Sale Return
      • Delete Sale Return
    • Income Debit Note Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Debit Note
      • Create Accounting Debit Note
      • Edit Debit Note
      • Update Debit Note
      • Duplicate Debit Note
      • Delete Debit Note
    • Income Credit Note Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Credit Note
      • Create Accounting Credit Note
      • Edit Credit Note
      • Update Credit Note
      • Duplicate Credit Note
      • Delete Credit Note
    • Estimate Quote Transaction
      • List of Transactions
      • Next Estimate Number
      • Create Item Estimate
      • Create Accounting Estimate
      • Edit Estimate
      • Update Estimate
      • Duplicate Estimate
      • Create Sale From Estimate
      • Delete Estimate
    • Delivery Challan Transaction
      • List of Transactions
      • Next Challan Number
      • Create Delivery Challan
      • Edit Delivery Challan
      • Update Delivery Challan
      • Duplicate Delivery Challan
      • Create Sale From Delivery Challan
      • Delete Delivery Challan
    • Purchase Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Purchase
      • Create Accounting Purchase
      • Edit purchase
      • Update purchase
      • Duplicate purchase
      • Get purchase For purchase Return
      • Delete purchase
    • Purchase Return Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Purchase Return
      • Create Accounting Purchase Return
      • Edit purchase Return
      • Update purchase Return
      • Duplicate purchase Return
      • Delete purchase Return
    • Expense Credit Note Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Expense Credit Note
      • Create Accounting Expense Credit Note
      • Edit Expense Credit Note
      • Update Expense Credit Note
      • Duplicate Expense Credit Note
      • Delete Expense Credit Note
    • Expense Debit Note Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Expense Debit Note
      • Create Accounting Expense Debit Note
      • Edit Expense Debit Note
      • Update Expense Debit Note
      • Duplicate Expense Debit Note
      • Delete Expense Debit Note
    • Purchase Order Transaction
      • List of Transactions
      • Next Invoice Number
      • Create Item Purchase Order
      • Create Accounting Purchase Order
      • Edit purchase Order
      • Update Purchase Order
      • Duplicate purchase Order
      • Delete purchase Order
      • Book Purchase Order
    • Receipt Transaction
      • List of Receipts
      • Next invoice number
      • Create Receipt
      • Edit Receipt
      • Update Receipt
      • Delete Receipt
    • Payment Transaction
      • List of Payments
      • Next invoice number
      • Create Payment
      • Edit Payment
      • Update Payment
      • Delete Payment
    • Journal Transaction
      • List of Journals
        GET
      • Next invoice number
        GET
      • Create Journal
        POST
      • Edit Journal
        GET
      • Update Journal
        POST
      • Delete Journal
        DELETE
  1. Journal Transaction

Create Journal

POST
https://app.hisabkitab.co/third-party/journal-transactions
This API is used to create a new journal transaction, recording both debit and credit entries in the accounting system. Each journal entry includes ledger selection, amount specification, and optional invoice linking for the selected party ledger.

Request#

The request is a POST method and requires a body containing the journal transaction details.

Response#

Upon successful creation, the API returns a response containing the details of the newly created journal transaction, confirming that the debit and credit amounts are balanced.

Request

Authorization
Add parameter in header
ApiKey
Example:
ApiKey: ********************
Body Params multipart/form-data
voucher_number
string 
required
The voucher number is a unique identifier assigned to the journal transaction. get it from Next Invoice Number.
Example:
6
date
string 
required
This field represents the date on which the journal transaction is recorded, formatted as DD-MM-YYYY.
Example:
13-02-2025
debit_credit_type[]
array[string]
required
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"]
ledger_id[]
array[string]
required
The ledger ID refers to the unique identifier assigned to each account involved in the transaction.
Example:
["2702","25718"]
amount[]
array[string]
required
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"]
debit_total
number 
optional
The total debit amount represents the sum of all debit transactions recorded in the journal entry.
Example:
85000.00
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.00
is_manage_debit_transaction
boolean 
optional
A flag that indicates whether the system should automatically allocate debits to invoices.
Example:
1
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"]
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.00","10642.00"]
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.
Example:
0
is_manage_credit_transaction[25718][]
array[string]
optional
This flag determines whether the system should auto-manage credit transactions.
Example:
1
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.00
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
upload_journal_invoice
file 
optional
The upload journal invoice process allows users to attach invoices related to a journal transaction.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.hisabkitab.co/third-party/journal-transactions' \
--header 'ApiKey;' \
--form 'voucher_number="6"' \
--form 'date="13-02-2025"' \
--form 'debit_credit_type[]="1"' \
--form 'debit_credit_type[]="2"' \
--form 'ledger_id[]="2702"' \
--form 'ledger_id[]="25718"' \
--form 'amount[]="1500"' \
--form 'amount[]="1500"' \
--form 'debit_total="85000.00"' \
--form 'credit_total="85000.00"' \
--form 'is_manage_debit_transaction="1"' \
--form 'debit_ledger_id[2702][]="2702"' \
--form 'debit_ledger_id[2702][]="2702"' \
--form 'debit_transaction_id[2702][]="890"' \
--form 'debit_transaction_id[2702][]="7503"' \
--form 'debit_invoice_number[2702][]="6"' \
--form 'debit_invoice_number[2702][]="16"' \
--form 'debit_bill_type[2702][]="1"' \
--form 'debit_bill_type[2702][]="1"' \
--form 'debit_paid_amount[2702][]="785.00"' \
--form 'debit_paid_amount[2702][]="10642.00"' \
--form 'debit_discount_amount[2702][]="0"' \
--form 'debit_discount_amount[2702][]="0"' \
--form 'debit_rounding_amount[2702][]="0"' \
--form 'debit_rounding_amount[2702][]="0"' \
--form 'narration="0"' \
--form 'is_manage_credit_transaction[25718][]="1"' \
--form 'credit_ledger_id[25718][]="25718"' \
--form 'credit_transaction_id[25718][]="12418"' \
--form 'credit_invoice_number[25718][]="14"' \
--form 'credit_bill_type[25718][]="1"' \
--form 'credit_received_amount[25718][]="505.00"' \
--form 'credit_discount_amount[25718][]="0"' \
--form 'credit_rounding_amount[25718][]="0"' \
--form 'upload_journal_invoice=@""'

Responses

🟢200Create Journal
application/json
Body
data
object 
required
id
integer 
required
A unique identifier for the journal transaction.
company_id
integer 
required
The ID of the company making the journal transaction associates with specific business entities.
voucher_number
string 
required
A sequential number assigned to the journal transaction.
date
string 
required
The date on which the journal transaction was recorded.
debit_total
number 
required
The total amount debited across all accounts in this journal transaction.
credit_total
number 
required
The total amount credited across all accounts in this journal transaction. The debit and credit totals must be equal to maintain accounting balance.
narration
string 
required
A brief description or note about the journal transaction.
is_import
boolean 
required
created_by
integer 
required
The ID of the user who recorded the journal transaction.
created_at
string 
required
The date and time indicate when the journal transaction was created.
updated_at
string 
required
The date and time indicating when the record was last modified or updated in the system.
success
boolean 
required
message
string 
required
Example
{
    "data": {
        "id": 4,
        "company_id": 6,
        "voucher_number": "6",
        "date": "2025-02-12T18:30:00.000000Z",
        "debit_total": 85000,
        "credit_total": 85000,
        "narration": "0",
        "is_import": false,
        "created_by": 8,
        "created_at": "2025-02-13T11:51:18.000000Z",
        "updated_at": "2025-02-13T11:51:18.000000Z"
    },
    "success": true,
    "message": "Journal Transaction created successfully."
}
Modified at 2025-05-05 12:02:25
Previous
Next invoice number
Next
Edit Journal
Built with