HisabKitab
  1. Payment 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
        GET
      • Next invoice number
        GET
      • Create Payment
        POST
      • Edit Payment
        GET
      • Update Payment
        POST
      • Delete Payment
        DELETE
    • Journal Transaction
      • List of Journals
      • Next invoice number
      • Create Journal
      • Edit Journal
      • Update Journal
      • Delete Journal
  1. Payment Transaction

Update Payment

POST
https://app.hisabkitab.co/third-party/payment-transactions/{id}
These API enables users to modify an existing payment transaction, ensuring accurate financial records and proper payment tracking.

Request#

This API uses a POST request, and the request body must contain the updated details of the payment transaction, such as the payment voucher number, amount, payment mode, and ledger information. The request URL includes the unique ID of the payment transaction that needs to be updated.

Response#

Upon a successful update, the API returns the modified payment details along with a success message, confirming that the payment transaction has been updated successfully.

Request

Authorization
Add parameter in header
ApiKey
Example:
ApiKey: ********************
Path Params
id
integer 
required
It will be the ID of the payment transaction you want to update.
Example:
1
Body Params multipart/form-data
payment_voucher_number
string 
required
A unique identifier is assigned to each payment transaction. This number ensures that each payment has a distinct record in the system.
Example:
3
date
string 
required
The date on which the payment transaction is recorded, formatted as DD-MM-YYYY.
Example:
13-02-2025
bank_cash_ledger_id
integer 
required
A unique identifier for the bank or cash ledger from which the payment is being made. This helps categorize the payment as coming from a bank account, petty cash, or any other source.
Example:
4
total_paid_amount
number 
required
The total sum of all payments made in this transaction, covering multiple invoices or bills.
Example:
11771.00
ledger_id
integer 
required
The unique identifier of the party (vendor/supplier) receiving the payment.
Example:
2
narration
string 
optional
A brief textual description of the payment transaction. It helps provide context for why the payment was made.
is_manage_transaction
boolean 
optional
A flag (0 or 1) indicating whether the system should automatically allocate payments to invoices based on outstanding amounts.
Example:
1
payment_mode
integer 
optional
Specifies the method used for payment, such as cash, bank transfer, or online transaction.
Example:
2
pc_transaction_item_id[]
array[string]
optional
Example:
9
transaction_id[]
array[string]
optional
A list of unique transaction IDs linking this payment to specific invoices. Each ID represents a separate financial transaction.
Example:
6
invoice_number[]
array[string]
optional
A list of invoice numbers associated with the payment. This helps track which invoices are being settled with the current transaction.
Example:
8
bill_type[]
array[string]
optional
Indicates the type of bill or transaction being settled, where: 1 = Purchase, 2 = Sale Return, 3 = income credit note, 4 = expense credit note, and 5 = Receipt Transaction. This categorization helps in accurately classifying financial transactions within the accounting system.
Example:
1
paid_amount[]
array[string]
optional
The specific amount paid for each respective invoice or bill.
Example:
11771.00
discount_amount[]
array[string]
optional
The discount applied to the payment for each invoice. If no discount is applied, the value remains "0".
Example:
0
rounding_amount[]
array[string]
optional
The rounding adjustment applied to the payment to maintain accuracy in financial calculations.
Example:
0
upload_receipt_invoice
file 
optional
The field is used to attach a digital copy of the payment invoice as proof of the 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/payment-transactions/1' \
--header 'ApiKey;' \
--form 'payment_voucher_number="3"' \
--form 'date="13-02-2025"' \
--form 'bank_cash_ledger_id="4"' \
--form 'total_paid_amount="11771.00"' \
--form 'ledger_id="2"' \
--form 'narration=""' \
--form 'is_manage_transaction="1"' \
--form 'payment_mode="2"' \
--form 'pc_transaction_item_id[]="9"' \
--form 'transaction_id[]="6"' \
--form 'invoice_number[]="8"' \
--form 'bill_type[]="1"' \
--form 'paid_amount[]="11771.00"' \
--form 'discount_amount[]="0"' \
--form 'rounding_amount[]="0"' \
--form 'upload_receipt_invoice=@""'

Responses

🟢200Update Payment
application/json
Body
data
object 
required
id
integer 
required
A unique ID assigned to each payment transaction to differentiate it from others.
company_id
integer 
required
The ID of the company making the payment helps to associate transactions with specific business entities.
date
string 
required
The date when the payment transaction was recorded.
payment_voucher_number
string 
required
The reference number assigned to the payment transaction, often formatted with a prefix to indicate the type of transaction (e.g., "sale/25128").
is_default_created_by_transaction
boolean 
required
A flag that indicates whether this payment was auto-generated as part of another transaction, such as a sale or purchase.
bank_cash_ledger_id
string 
required
The ID of the bank or cash ledger from which the payment was made.
ledger_id
string 
required
The ID of the party ledger (customer, vendor, or account) associated with the receipt transaction.
total_paid_amount
number 
required
The total amount paid in the transaction.
narration
string 
required
An optional field that stores additional notes or descriptions related to the transaction.
is_manage_transaction
boolean 
required
The field is a boolean value that indicates whether the payment transaction is directly associated with invoice settlement.
payment_mode
string 
required
Indicates how the payment was received, such as Cash, Bank Transfer, Cheque, or Digital Payment.
reference_number
string 
required
Stores a reference number for transactions involving bank transfers, UPI, or cheques.
via_api
boolean 
required
is_import
boolean 
required
created_by
integer 
required
A unique identifier of the user who created the transaction.
created_at
string 
required
The date and time indicating when the record was initially created in the system,
updated_at
string 
required
The date and time indicating when the record was last modified or updated in the system.
deleted_by
integer 
required
This field records the ID of the user who deleted the transaction.
deleted_at
string 
required
Stores the date and time when the transaction was deleted.
success
boolean 
required
message
string 
required
Example
{
    "data": {
        "id": 1,
        "company_id": 6,
        "date": "2025-02-12T18:30:00.000000Z",
        "payment_voucher_number": "3",
        "is_default_created_by_transaction": false,
        "bank_cash_ledger_id": "4",
        "ledger_id": "2",
        "total_paid_amount": "11771.00",
        "narration": null,
        "is_manage_transaction": true,
        "payment_mode": "2",
        "reference_number": null,
        "via_api": true,
        "is_import": 0,
        "created_by": 8,
        "created_at": "2025-02-13T10:30:43.000000Z",
        "updated_at": "2025-02-13T10:43:29.000000Z",
        "deleted_by": null,
        "deleted_at": null
    },
    "success": true,
    "message": "Payment Transaction updated successfully"
}
Modified at 2025-04-03 10:23:37
Previous
Edit Payment
Next
Delete Payment
Built with