POST
request to update an existing purchase return transaction.ApiKey: ********************
{
"voucher_number": "4",
"voucher_date": "10-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": "10-07-2024",
"billing_address": {
"address_1": "2121, 3RD FLOOR, RADHA RAMAN TEXTILE MARKET",
"address_2": "KADODARA ROAD",
"country_id": 1,
"state_id": 2,
"city_id": 1,
"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": 1,
"state_id": 2,
"city_id": 1,
"pin_code": "395008"
},
"broker_details": {
"broker_id": 2,
"brokerage_for_sale": 1,
"brokerage_on_value_type": 1
},
"transport_details": {
"transport_id": 1,
"transporter_document_number": "212",
"transporter_document_date": "12-10-2024",
"transporter_vehicle_number": "GJ05-SG-1234"
},
"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
},
"pr_item_type": 2,
"items": [
{
"item_id": 1,
"additional_description": "test",
"ledger_id": 3,
"unit_id": 1,
"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": 2,
"additional_description": "test",
"ledger_id": 4,
"unit_id": 1,
"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": 1,
// "additional_description": "test",
// "rpu": 100,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 100
// },
// {
// "ledger_id": 2,
// "additional_description": "test",
// "rpu": 100,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 100
// }
// ],
"main_classification_nature_type": "Interstate Purchase Taxable",
"is_rcm_applicable": 0,
"gross_value": 200,
"narration": null,
"additional_charges": [],
// "additional_charges": [
// {
// "ac_ledger_id": 1,
// "ac_type": 1,
// "ac_value": 100,
// "ac_gst_rate_id": 12,
// "ac_total": 100
// }
// ],
"taxable_value": 200,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"tcs_details": {
"tcs_tax_id": null,
"tcs_rate": 1,
"tcs_amount": 100
},
"tds_details": {
"tds_tax_id": null,
"tds_rate": null,
"tds_amount": null
},
// "add_less": [
// {
// "al_ledger_id":5,
// "al_is_show_in_print": false,
// "al_type": 1,
// "al_value": 100
// }
// ],
"rounding_amount": 0,
"grand_total": 200,
// "payment_details": [
// {
// "pd_ledger_id": 7,
// "pd_date": "16-10-2024",
// "pd_amount": 400,
// "pd_mode": 3592,
// "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/purchase-return-transactions/1' \
--header 'Content-Type: application/json' \
--header 'ApiKey;' \
--data-raw '{
"voucher_number": "4",
"voucher_date": "10-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": "10-07-2024",
"billing_address": {
"address_1": "2121, 3RD FLOOR, RADHA RAMAN TEXTILE MARKET",
"address_2": "KADODARA ROAD",
"country_id": 1,
"state_id": 2,
"city_id": 1,
"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": 1,
"state_id": 2,
"city_id": 1,
"pin_code": "395008"
},
"broker_details": {
"broker_id": 2,
"brokerage_for_sale": 1,
"brokerage_on_value_type": 1
},
"transport_details": {
"transport_id": 1,
"transporter_document_number": "212",
"transporter_document_date": "12-10-2024",
"transporter_vehicle_number": "GJ05-SG-1234"
},
"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
},
"pr_item_type": 2,
"items": [
{
"item_id": 1,
"additional_description": "test",
"ledger_id": 3,
"unit_id": 1,
"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": 2,
"additional_description": "test",
"ledger_id": 4,
"unit_id": 1,
"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": 1,
// "additional_description": "test",
// "rpu": 100,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 100
// },
// {
// "ledger_id": 2,
// "additional_description": "test",
// "rpu": 100,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "gst_id": 12,
// "cess" : 0,
// "total": 100
// }
// ],
"main_classification_nature_type": "Interstate Purchase Taxable",
"is_rcm_applicable": 0,
"gross_value": 200,
"narration": null,
"additional_charges": [],
// "additional_charges": [
// {
// "ac_ledger_id": 1,
// "ac_type": 1,
// "ac_value": 100,
// "ac_gst_rate_id": 12,
// "ac_total": 100
// }
// ],
"taxable_value": 200,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"tcs_details": {
"tcs_tax_id": null,
"tcs_rate": 1,
"tcs_amount": 100
},
"tds_details": {
"tds_tax_id": null,
"tds_rate": null,
"tds_amount": null
},
// "add_less": [
// {
// "al_ledger_id":5,
// "al_is_show_in_print": false,
// "al_type": 1,
// "al_value": 100
// }
// ],
"rounding_amount": 0,
"grand_total": 200,
// "payment_details": [
// {
// "pd_ledger_id": 7,
// "pd_date": "16-10-2024",
// "pd_amount": 400,
// "pd_mode": 3592,
// "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": {
"purchase_return_transaction": {
"id": 1,
"company_id": 6,
"voucher_number": "4",
"payment_mode": null,
"payment_type_ledger_id": null,
"voucher_date": "2025-01-09T18:30:00.000000Z",
"original_inv_no": null,
"original_inv_date": "2024-07-09T18:30:00.000000Z",
"supplier_purchase_return_number": null,
"supplier_purchase_return_date": null,
"supplier_id": 3,
"gstin": null,
"broker_id": 2,
"brokerage_for_sale": 1,
"brokerage_on_value_type": 1,
"transport_id": 1,
"transporter_document_number": "212",
"transporter_document_date": "2024-10-11T18:30:00.000000Z",
"transporter_vehicle_number": "GJ05-SG-1234",
"eway_bill_number": null,
"eway_bill_date": null,
"pr_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": null,
"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": [],
"receipt_transaction_item": [],
"journal_transaction_item": [],
"purchase_return_items": [
{
"id": 1,
"purchase_return_id": 2777,
"item_id": 5,
"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": 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": 0,
"classification_nature_type": null,
"consolidating_items_to_invoice": "0",
"cess_rate": 0,
"cess_amount": 0,
"taxable_amount": 0,
"created_at": "2025-02-12T09:41:07.000000Z",
"updated_at": "2025-02-12T09:41:07.000000Z"
},
{
"id": 2,
"purchase_return_id": 1,
"item_id": 5,
"additional_description": "test",
"unit_id": 219,
"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": 6,
"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-12T09:41:07.000000Z",
"updated_at": "2025-02-12T09:41:07.000000Z"
}
],
"via_api": false,
"is_import": false,
"created_by": 8,
"created_at": "2025-02-12T09:40:08.000000Z",
"updated_at": "2025-02-12T09:41:07.000000Z",
"deleted_by": null,
"deleted_at": null
},
"transaction_id": 1
},
"success": true,
"message": "Purchase Return Transaction Updated Successfully"
}