POST
request to update an existing expense credit note transaction. The transaction ID should be specified in the URL, and the updated transaction data should be included in the request body.ApiKey: ********************
{
"voucher_number": "4",
"voucher_date": "14-01-2025",
"supplier_id": 2702,
"gstin": "06AAKCA6445Q1Z2",
"supplier_purchase_return_number": null,
"supplier_purchase_return_date": null,
"original_inv_no": null, // purchase transaction id
"original_inv_date": null,
"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,
"shipping_gstin": 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": null,
"brokerage_for_sale": null,
"brokerage_on_value_type": 1
},
"transport_details": {
"transport_id": null,
"transporter_document_number": null,
"transporter_document_date": null,
"transporter_vehicle_number": null
},
"eway_bill_details": {
"eway_bill_number": null,
"eway_bill_date": null
},
"other_details": {
"po_no": "FASG522",
"po_date": "10-12-2024",
"credit_period": "30",
"credit_period_type": 2
},
"expense_cn_item_type": 2,
"items": [
{
"item_id": 93,
"additional_description": "test",
"ledger_id": 848,
"unit_id": 29,
"quantity": 1,
"mrp": null,
"rpu": 100,
"with_tax": 0,
"discount_type": 1,
"discount_value": null,
"discount_type_2": 1,
"discount_value_2": null,
"gst_id": 10,
"cess" : 0,
"total": 100
},
{
"item_id": 7673,
"additional_description": "test",
"ledger_id": 1197,
"unit_id": 29,
"quantity": 1,
"mrp": null,
"rpu": 100,
"with_tax": 0,
"discount_type": 1,
"discount_value": null,
"discount_type_2": 1,
"discount_value_2": null,
"gst_id": 10,
"cess" : 0,
"total": 100
}
],
// "ledgers": [
// {
// "ledger_id": 79973,
// "additional_description": "test",
// "rpu": 1000,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 1000
// },
// {
// "ledger_id": 79968,
// "additional_description": "test",
// "rpu": 500,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 500
// }
// ],
"main_classification_nature_type": "Interstate Purchase Taxable",
"is_rcm_applicable": 0,
"narration": "Expense credit note",
"gross_value": 200,
"additional_charges": [
{
"ac_ledger_id": 79970,
"ac_type": 1,
"ac_value": 500,
"ac_gst_rate_id": 12,
"ac_total_without_tax": 500
}
],
"taxable_value": 200,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"tcs_details": {
"tcs_tax_id": 80097,
"tcs_rate": 1,
"tcs_amount": 100
},
"tds_details": {
"tds_tax_id": null,
"tds_rate": null,
"tds_amount": null
},
"add_less": [
{
"al_ledger_id": 104221,
"al_is_show_in_print": 0,
"al_type": 1,
"al_value": 100
}
],
"rounding_amount": 0,
"grand_total": 200,
"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": 0,
"is_gst_na": 1,
"is_round_off_not_changed": false
}
curl --location --request POST 'https://app.hisabkitab.co/third-party/expense-credit-note/1' \
--header 'Content-Type: application/json' \
--header 'ApiKey;' \
--data-raw '{
"voucher_number": "4",
"voucher_date": "14-01-2025",
"supplier_id": 2702,
"gstin": "06AAKCA6445Q1Z2",
"supplier_purchase_return_number": null,
"supplier_purchase_return_date": null,
"original_inv_no": null, // purchase transaction id
"original_inv_date": null,
"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,
"shipping_gstin": 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": null,
"brokerage_for_sale": null,
"brokerage_on_value_type": 1
},
"transport_details": {
"transport_id": null,
"transporter_document_number": null,
"transporter_document_date": null,
"transporter_vehicle_number": null
},
"eway_bill_details": {
"eway_bill_number": null,
"eway_bill_date": null
},
"other_details": {
"po_no": "FASG522",
"po_date": "10-12-2024",
"credit_period": "30",
"credit_period_type": 2
},
"expense_cn_item_type": 2,
"items": [
{
"item_id": 93,
"additional_description": "test",
"ledger_id": 848,
"unit_id": 29,
"quantity": 1,
"mrp": null,
"rpu": 100,
"with_tax": 0,
"discount_type": 1,
"discount_value": null,
"discount_type_2": 1,
"discount_value_2": null,
"gst_id": 10,
"cess" : 0,
"total": 100
},
{
"item_id": 7673,
"additional_description": "test",
"ledger_id": 1197,
"unit_id": 29,
"quantity": 1,
"mrp": null,
"rpu": 100,
"with_tax": 0,
"discount_type": 1,
"discount_value": null,
"discount_type_2": 1,
"discount_value_2": null,
"gst_id": 10,
"cess" : 0,
"total": 100
}
],
// "ledgers": [
// {
// "ledger_id": 79973,
// "additional_description": "test",
// "rpu": 1000,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 1000
// },
// {
// "ledger_id": 79968,
// "additional_description": "test",
// "rpu": 500,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 500
// }
// ],
"main_classification_nature_type": "Interstate Purchase Taxable",
"is_rcm_applicable": 0,
"narration": "Expense credit note",
"gross_value": 200,
"additional_charges": [
{
"ac_ledger_id": 79970,
"ac_type": 1,
"ac_value": 500,
"ac_gst_rate_id": 12,
"ac_total_without_tax": 500
}
],
"taxable_value": 200,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"tcs_details": {
"tcs_tax_id": 80097,
"tcs_rate": 1,
"tcs_amount": 100
},
"tds_details": {
"tds_tax_id": null,
"tds_rate": null,
"tds_amount": null
},
"add_less": [
{
"al_ledger_id": 104221,
"al_is_show_in_print": 0,
"al_type": 1,
"al_value": 100
}
],
"rounding_amount": 0,
"grand_total": 200,
"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": 0,
"is_gst_na": 1,
"is_round_off_not_changed": false
}'
{
"data": {
"expense_credit_note_transaction": {
"id": 1,
"company_id": 6,
"voucher_number": "4",
"payment_mode": null,
"payment_type_ledger_id": null,
"voucher_date": "2025-01-13T18:30:00.000000Z",
"original_inv_no": null,
"original_inv_date": null,
"supplier_purchase_return_number": null,
"supplier_purchase_return_date": null,
"supplier_id": 3,
"gstin": null,
"broker_id": null,
"brokerage_for_sale": null,
"brokerage_on_value_type": 1,
"transport_id": null,
"transporter_document_number": null,
"transporter_document_date": null,
"transporter_vehicle_number": null,
"expense_cn_item_type": 2,
"shipping_freight": null,
"packing_charge": null,
"tcs_tax_id": null,
"tcs_rate": 1,
"tcs_amount": 100,
"cgst": 0,
"sgst": 0,
"igst": 0,
"shipping_freight_with_gst": 0,
"packing_charge_with_gst": 0,
"shipping_freight_sgst_amount": null,
"shipping_freight_cgst_amount": null,
"shipping_freight_igst_amount": null,
"packing_charge_sgst_amount": null,
"packing_charge_cgst_amount": null,
"packing_charge_igst_amount": null,
"rounding_amount": 0,
"total": 200,
"grand_total": 200,
"taxable_value": 200,
"gross_value": 200,
"payment_status": "Unpaid",
"due_amount": 200,
"narration": "Expense credit note",
"term_and_condition": null,
"is_gst_enabled": 0,
"is_gst_na": 1,
"is_cgst_sgst_igst_calculated": 0,
"is_rcm_applicable": false,
"pass_tds_entry": 0,
"tds_pan": null,
"tds_taxable_value": null,
"ledger_of_tds": null,
"tds_rate": null,
"tds_amount": null,
"cess": 0,
"shipping_gstin": null,
"shipping_name": null,
"is_round_off_not_changed": false,
"paid_amount": 0,
"payment_details": [],
"payment_transaction_item": [],
"journal_transaction_item": [],
"expense_credit_note_items": [
{
"id": 3,
"expense_cn_id": 1,
"item_id": 2,
"additional_description": "test",
"unit_id": 1,
"quantity": 1,
"mrp": null,
"with_tax": false,
"rpu_with_gst": null,
"rpu_without_gst": 100,
"discount_type": 1,
"discount_value": null,
"discount_type_2": 1,
"discount_value_2": null,
"total_discount_amount": 0,
"gst_id": 10,
"gst_tax_percentage": 18,
"total": 100,
"ledger_id": 7,
"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": 0,
"classification_nature_type": null,
"consolidating_items_to_invoice": "0",
"cess_rate": 0,
"cess_amount": 0,
"taxable_amount": 0,
"created_at": "2025-02-12T10:56:03.000000Z",
"updated_at": "2025-02-12T10:56:03.000000Z"
},
{
"id": 4,
"expense_cn_id": 1,
"item_id": 8,
"additional_description": "test",
"unit_id": 1,
"quantity": 1,
"mrp": null,
"with_tax": false,
"rpu_with_gst": null,
"rpu_without_gst": 100,
"discount_type": 1,
"discount_value": null,
"discount_type_2": 1,
"discount_value_2": null,
"total_discount_amount": 0,
"gst_id": 10,
"gst_tax_percentage": 18,
"total": 100,
"ledger_id": 9,
"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": 0,
"classification_nature_type": null,
"consolidating_items_to_invoice": "0",
"cess_rate": 0,
"cess_amount": 0,
"taxable_amount": 0,
"created_at": "2025-02-12T10:56:03.000000Z",
"updated_at": "2025-02-12T10:56:03.000000Z"
}
],
"via_api": false,
"is_import": false,
"created_by": 8,
"created_at": "2025-02-12T10:51:29.000000Z",
"updated_at": "2025-02-12T10:56:03.000000Z",
"deleted_by": null,
"deleted_at": null
}
},
"success": true,
"message": "Expense credit note Transaction Updated Successfully"
}