POST
request to create a purchase transaction. The request body must include details such as the company ID, supplier ledger ID, items purchased, payment status, and transaction-related information.ApiKey: ********************
{
"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
}
],
"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
}
curl --location --request POST 'https://app.hisabkitab.co/third-party/purchase-transactions' \
--header 'Content-Type: application/json' \
--header 'ApiKey;' \
--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
}
],
"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
}'
{
"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 Created Successfully"
}