HisabKitab
  1. Purchase 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
        • Create Batch Ledgers
        • Ledger Detail
        • List of all Ledgers
        • Edit Ledger
        • Update Ledger
        • Delete Ledger
        • Delete Batch Ledgers
        • 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
        • Create Batch Items
        • Item Form Details
        • List of items
        • Create Good Item
        • Create Service Item
        • Edit Item
        • Update Item
        • Delete Batch Items
        • Delete Item
      • Unit of Measurement
        • Create Batch Unit of Measurements
        • List of Unit of Measurement
        • Create Unit of Measurement
        • Edit Unit of Measurement
        • Update Unit of Measurement
        • Delete Batch Items unit of measurements
        • 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
        GET
      • Next Invoice Number
        GET
      • Create Item Purchase
        POST
      • Create Accounting Purchase
        POST
      • Edit purchase
        GET
      • Update purchase
        POST
      • Duplicate purchase
        GET
      • Get purchase For purchase Return
        GET
      • Delete purchase
        DELETE
    • 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
      • Next invoice number
      • Create Journal
      • Edit Journal
      • Update Journal
      • Delete Journal
  1. Purchase Transaction

Update purchase

POST
https://app.hisabkitab.co/third-party/purchase-transactions/{id}
This API allows users to update the details of an existing purchase transaction.

Request#

The API uses a POST request to update the details of a purchase transaction. The transaction ID is passed as a parameter in the URL, and the updated details are included in the request body.

Response#

The API returns the updated details of the purchase transaction, confirming that the changes have been successfully applied.

Request

Authorization
Add parameter in header
ApiKey
Example:
ApiKey: ********************
Path Params

Body Params application/json

Example
{
    "voucher_number": "16",
    "voucher_date": "12-02-2025",
    "sale_number": "180",
    "date_of_invoice": "31-03-2024",
    "supplier_ledger_id": 2702,
    "purchase_order_no": null,
    "gstin": "06AAKCA6445Q1Z2",
    "billing_address": {
        "address_1": "2121, 3RD FLOOR, RADHA RAMAN TEXTILE MARKET",
        "address_2": "KADODARA ROAD",
        "country_id": 101,
        "state_id": 4030,
        "city_id": 134096,
        "pin_code": "395008"
    },
    "shipping_address": {
        "shipping_name": null,
        "address_1": "2121, 3RD FLOOR, RADHA RAMAN TEXTILE MARKET",
        "address_2": "KADODARA ROAD",
        "country_id": 101,
        "state_id": 4030,
        "city_id": 134096,
        "pin_code": "395008"
    },
    "broker_details": {
        "broker_id": 381,
        "brokerage_for_sale": 10,
        "brokerage_on_value_type": 1
    },
    "transport_details": {
        "transport_id": 86,
        "transporter_document_number": "212",
        "transporter_document_date": "12-02-2025",
        "transporter_vehicle_number": "GJ05-SG-1234"
    },
    "eway_bill_details": {
        "eway_bill_number": null,
        "eway_bill_date": null
    },
    "purchase_item_type": 2,
    "items": [
        {
            "item_id": 93,
            "additional_description": "Accounting Service description",
            "ledger_id": 848,
            "unit_id": 29,
            "quantity": 1,
            "mrp": 100,
            "rpu": 118,
            "with_tax": 1,
            "discount_type": 1,
            "discount_value": null,
            "discount_type_2": 2,
            "discount_value_2": null,
            "total_discount_amount": null,
            "gst_id": 10,
            "cess": 0,
            "total": 100
        },
        {
            "item_id": 7673,
            "additional_description": "ACTGsss description",
            "ledger_id": 1197,
            "unit_id": 29,
            "quantity": 1,
            "mrp": 100,
            "rpu": 118,
            "with_tax": 1,
            "discount_type": 1,
            "discount_value": null,
            "discount_type_2": 1,
            "discount_value_2": null,
            "total_discount_amount": null,
            "gst_id": 10,
            "cess": 0,
            "total": 100
        }
    ],
    // "ledgers": [
    //     {
    //         "ledger_id": 79973,
    //         "additional_description": "test",
    //         "rpu": 100,
    //         "with_tax": 0,
    //         "discount_type": 1,
    //         "discount_value": null,
    //         "discount_type_2": 1,
    //         "discount_value_2": null,
    //         "gst_id": 10,
    //         "total": 100
    //     },
    //     {
    //         "ledger_id": 79968,
    //         "additional_description": "test",
    //         "rpu": 100,
    //         "with_tax": 0,
    //         "discount_type": 1,
    //         "discount_value": null,
    //         "discount_type_2": 1,
    //         "discount_value_2": null,
    //         "gst_id": 10,
    //         "total": 100
    //     }
    // ],
    "main_classification_nature_type": "Interstate Purchase Taxable",
    "is_rcm_applicable": 0,
    "narration": null,
    "term_and_condition": null,
    "additional_charges": [
        {
            "ac_ledger_id": 104218,
            "ac_type": 1,
            "ac_value": 100,
            "ac_total": 100
        }
    ],
    "gross_value": 200,
    "taxable_value": 200,
    "cgst": 0,
    "sgst": 0,
    "igst": 36,
    "cess": 0,
    "tcs_details": {
        "tcs_tax_id": null,
        "tcs_rate": 1,
        "tcs_amount": null
    },
    "add_less": [
        {
            "al_ledger_id": 104221,
            "al_is_show_in_print": 0,
            "al_type": 1,
            "al_value": 100
        }
    ],
    "rounding_amount": null,
    "grand_total": 236,
    "tds_details": {
        "tds_tax_id": null,
        "tds_rate": null,
        "tds_amount": null
    },
    "payment_details": [
        {
            "pd_ledger_id": 2,
            "pd_date": "10-12-2024",
            "pd_amount": 400,
            "pd_mode": 5,
            "pd_reference_number": null
        }
    ],
    "is_gst_enabled": 0,
    "is_cgst_sgst_igst_calculated": 1, // if is_gst_enabled is 0 this always 0
    "is_gst_na": 0, // if is_gst_enabled is 0 this always 1
    "is_round_off_not_changed": false
}

Request Code 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/purchase-transactions/1' \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "voucher_number": "16",
    "voucher_date": "12-02-2025",
    "sale_number": "180",
    "date_of_invoice": "31-03-2024",
    "supplier_ledger_id": 2702,
    "purchase_order_no": null,
    "gstin": "06AAKCA6445Q1Z2",
    "billing_address": {
        "address_1": "2121, 3RD FLOOR, RADHA RAMAN TEXTILE MARKET",
        "address_2": "KADODARA ROAD",
        "country_id": 101,
        "state_id": 4030,
        "city_id": 134096,
        "pin_code": "395008"
    },
    "shipping_address": {
        "shipping_name": null,
        "address_1": "2121, 3RD FLOOR, RADHA RAMAN TEXTILE MARKET",
        "address_2": "KADODARA ROAD",
        "country_id": 101,
        "state_id": 4030,
        "city_id": 134096,
        "pin_code": "395008"
    },
    "broker_details": {
        "broker_id": 381,
        "brokerage_for_sale": 10,
        "brokerage_on_value_type": 1
    },
    "transport_details": {
        "transport_id": 86,
        "transporter_document_number": "212",
        "transporter_document_date": "12-02-2025",
        "transporter_vehicle_number": "GJ05-SG-1234"
    },
    "eway_bill_details": {
        "eway_bill_number": null,
        "eway_bill_date": null
    },
    "purchase_item_type": 2,
    "items": [
        {
            "item_id": 93,
            "additional_description": "Accounting Service description",
            "ledger_id": 848,
            "unit_id": 29,
            "quantity": 1,
            "mrp": 100,
            "rpu": 118,
            "with_tax": 1,
            "discount_type": 1,
            "discount_value": null,
            "discount_type_2": 2,
            "discount_value_2": null,
            "total_discount_amount": null,
            "gst_id": 10,
            "cess": 0,
            "total": 100
        },
        {
            "item_id": 7673,
            "additional_description": "ACTGsss description",
            "ledger_id": 1197,
            "unit_id": 29,
            "quantity": 1,
            "mrp": 100,
            "rpu": 118,
            "with_tax": 1,
            "discount_type": 1,
            "discount_value": null,
            "discount_type_2": 1,
            "discount_value_2": null,
            "total_discount_amount": null,
            "gst_id": 10,
            "cess": 0,
            "total": 100
        }
    ],
    // "ledgers": [
    //     {
    //         "ledger_id": 79973,
    //         "additional_description": "test",
    //         "rpu": 100,
    //         "with_tax": 0,
    //         "discount_type": 1,
    //         "discount_value": null,
    //         "discount_type_2": 1,
    //         "discount_value_2": null,
    //         "gst_id": 10,
    //         "total": 100
    //     },
    //     {
    //         "ledger_id": 79968,
    //         "additional_description": "test",
    //         "rpu": 100,
    //         "with_tax": 0,
    //         "discount_type": 1,
    //         "discount_value": null,
    //         "discount_type_2": 1,
    //         "discount_value_2": null,
    //         "gst_id": 10,
    //         "total": 100
    //     }
    // ],
    "main_classification_nature_type": "Interstate Purchase Taxable",
    "is_rcm_applicable": 0,
    "narration": null,
    "term_and_condition": null,
    "additional_charges": [
        {
            "ac_ledger_id": 104218,
            "ac_type": 1,
            "ac_value": 100,
            "ac_total": 100
        }
    ],
    "gross_value": 200,
    "taxable_value": 200,
    "cgst": 0,
    "sgst": 0,
    "igst": 36,
    "cess": 0,
    "tcs_details": {
        "tcs_tax_id": null,
        "tcs_rate": 1,
        "tcs_amount": null
    },
    "add_less": [
        {
            "al_ledger_id": 104221,
            "al_is_show_in_print": 0,
            "al_type": 1,
            "al_value": 100
        }
    ],
    "rounding_amount": null,
    "grand_total": 236,
    "tds_details": {
        "tds_tax_id": null,
        "tds_rate": null,
        "tds_amount": null
    },
    "payment_details": [
        {
            "pd_ledger_id": 2,
            "pd_date": "10-12-2024",
            "pd_amount": 400,
            "pd_mode": 5,
            "pd_reference_number": null
        }
    ],
    "is_gst_enabled": 0,
    "is_cgst_sgst_igst_calculated": 1, // if is_gst_enabled is 0 this always 0
    "is_gst_na": 0, // if is_gst_enabled is 0 this always 1
    "is_round_off_not_changed": false
}'

Responses

🟢200Update purchase
application/json
Body

Example
{
    "data": {
        "purchase_transaction": {
            "id": 1,
            "company_id": 6,
            "voucher_number": "1",
            "voucher_date": "2025-02-11T18:30:00.000000Z",
            "payment_mode": null,
            "payment_type_ledger_id": null,
            "sale_number": "2",
            "date_of_invoice": "2024-03-30T18:30:00.000000Z",
            "supplier_ledger_id": 1,
            "gstin": null,
            "broker_id": 1,
            "brokerage_for_sale": 10,
            "brokerage_on_value_type": 1,
            "transport_id": 2,
            "transporter_document_number": "212",
            "transporter_document_date": "2025-02-11T18:30:00.000000Z",
            "transporter_vehicle_number": "GJ05-SG-1234",
            "shipping_name": null,
            "shipping_gstin": null,
            "purchase_item_type": 2,
            "tcs_tax_id": null,
            "tcs_rate": 1,
            "tcs_amount": null,
            "ledger_of_tds": null,
            "tds_rate": null,
            "tds_amount": null,
            "cgst": 0,
            "sgst": 0,
            "igst": 0,
            "rounding_amount": null,
            "total": 236,
            "grand_total": 236,
            "taxable_value": 200,
            "gross_value": 200,
            "narration": null,
            "term_and_condition": null,
            "is_gst_enabled": 0,
            "cess": 0,
            "is_cgst_sgst_igst_calculated": 1,
            "is_gst_na": 0,
            "is_rcm_applicable": false,
            "created_by": 8,
            "purchase_order_no": null,
            "is_round_off_not_changed": false,
            "payment_status": "Unpaid",
            "due_amount": 236,
            "paid_amount": 0,
            "payment_transaction_item": [],
            "journal_transaction_item": [],
            "purchase_return": [],
            "debit_note": [],
            "purchase_transaction_items": [
                {
                    "id": 1,
                    "purchase_transaction_id": 1,
                    "item_id": 3,
                    "additional_description": "Accounting Service description",
                    "unit_id": 1,
                    "consolidating_items_to_invoice": "0",
                    "quantity": 1,
                    "mrp": 100,
                    "with_tax": true,
                    "rpu_with_gst": null,
                    "rpu_without_gst": 118,
                    "discount_type": 1,
                    "discount_value": null,
                    "discount_type_2": 2,
                    "discount_value_2": null,
                    "total_discount_amount": 0,
                    "gst_id": 1,
                    "gst_tax_percentage": 18,
                    "total": 100,
                    "ledger_id": 3,
                    "classification_igst_tax": null,
                    "classification_cgst_tax": null,
                    "classification_sgst_tax": null,
                    "classification_cess_tax": null,
                    "classification_is_rcm_applicable": 0,
                    "classification_is_itc_applicable": 1,
                    "classification_nature_type": null,
                    "cess_rate": 0,
                    "cess_amount": 0,
                    "taxable_amount": 0,
                    "created_at": "2025-02-12T06:28:58.000000Z",
                    "updated_at": "2025-02-12T06:28:58.000000Z"
                },
                {
                    "id": 2,
                    "purchase_transaction_id": 1,
                    "item_id": 2,
                    "additional_description": "ACTGsss description",
                    "unit_id": 1,
                    "consolidating_items_to_invoice": "0",
                    "quantity": 1,
                    "mrp": 100,
                    "with_tax": true,
                    "rpu_with_gst": null,
                    "rpu_without_gst": 118,
                    "discount_type": 1,
                    "discount_value": null,
                    "discount_type_2": 1,
                    "discount_value_2": null,
                    "total_discount_amount": 0,
                    "gst_id": 1,
                    "gst_tax_percentage": 18,
                    "total": 100,
                    "ledger_id": 1,
                    "classification_igst_tax": null,
                    "classification_cgst_tax": null,
                    "classification_sgst_tax": null,
                    "classification_cess_tax": null,
                    "classification_is_rcm_applicable": 0,
                    "classification_is_itc_applicable": 1,
                    "classification_nature_type": null,
                    "cess_rate": 0,
                    "cess_amount": 0,
                    "taxable_amount": 0,
                    "created_at": "2025-02-12T06:28:58.000000Z",
                    "updated_at": "2025-02-12T06:28:58.000000Z"
                }
            ],
            "via_api": false,
            "is_import": false,
            "created_at": "2025-02-12T06:28:58.000000Z",
            "updated_at": "2025-02-12T06:28:58.000000Z"
        },
        "is_tds_applicable": 1
    },
    "success": true,
    "message": "Purchase Transaction Updated Successfully"
}
Modified at 2025-04-03 10:08:04
Previous
Edit purchase
Next
Duplicate purchase
Built with