POST
request to update the details of an existing purchase order. The order ID must be provided in the URL, and the updated data must be sent in the request body.ApiKey: ********************
{
"title": 1,
"order_number": "4",
"order_date": "12-02-2025",
"party_ledger_id": 2702,
"valid_for": 10,
"valid_for_type": 1,
"gstin": "37AAGAA2385M1ZE",
"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": null,
"brokerage_for_sale": null,
"brokerage_on_value_type": null
},
"transport_details": {
"transport_id": null,
"transporter_document_number": null,
"transporter_document_date": null
},
"order_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
}
],
// "ledgers": [
// {
// "ledger_id": 79968,
// "additional_description": "test",
// "rpu_with_gst": 100,
// "rpu_without_gst": 100,
// "gst_id": 10,
// "gst_tax_percentage": 10,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "total": 1000
// }
// ],
"gross_value": 100,
"narration": "Hello World",
"additional_charges": [
{
"ac_ledger_id": 79971,
"ac_type": 1,
"ac_value": 100,
"ac_total": 100
}
],
"taxable_value": 100,
"add_less": [
{
"al_ledger_id": 7655,
"al_is_show_in_print": 0,
"al_type": 1,
"al_value": 100
}
],
"main_classification_nature_type": "Interstate Purchase Taxable",
"is_rcm_applicable": 0,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"rounding_amount": null,
"grand_total": 100,
"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-order-transactions/1' \
--header 'Content-Type: application/json' \
--header 'ApiKey;' \
--data-raw '{
"title": 1,
"order_number": "4",
"order_date": "12-02-2025",
"party_ledger_id": 2702,
"valid_for": 10,
"valid_for_type": 1,
"gstin": "37AAGAA2385M1ZE",
"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": null,
"brokerage_for_sale": null,
"brokerage_on_value_type": null
},
"transport_details": {
"transport_id": null,
"transporter_document_number": null,
"transporter_document_date": null
},
"order_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
}
],
// "ledgers": [
// {
// "ledger_id": 79968,
// "additional_description": "test",
// "rpu_with_gst": 100,
// "rpu_without_gst": 100,
// "gst_id": 10,
// "gst_tax_percentage": 10,
// "with_tax": 0,
// "discount_type": 1,
// "discount_value": null,
// "discount_type_2": 1,
// "discount_value_2": null,
// "total": 1000
// }
// ],
"gross_value": 100,
"narration": "Hello World",
"additional_charges": [
{
"ac_ledger_id": 79971,
"ac_type": 1,
"ac_value": 100,
"ac_total": 100
}
],
"taxable_value": 100,
"add_less": [
{
"al_ledger_id": 7655,
"al_is_show_in_print": 0,
"al_type": 1,
"al_value": 100
}
],
"main_classification_nature_type": "Interstate Purchase Taxable",
"is_rcm_applicable": 0,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"rounding_amount": null,
"grand_total": 100,
"is_gst_enabled": 0,
"is_cgst_sgst_igst_calculated": 0,
"is_gst_na": 1,
"is_round_off_not_changed": false
}'
{
"data": {
"purchase_order_transaction": {
"id": 1,
"company_id": 6,
"title": 1,
"order_number": "4",
"full_order_number": "4",
"order_type": 2,
"order_date": "2025-02-11T18:30:00.000000Z",
"valid_for": 10,
"valid_for_type": 1,
"valid_till_date": "2025-12-11T18:30:00.000000Z",
"party_ledger_id": 5,
"gstin": null,
"broker_id": null,
"brokerage": null,
"brokerage_on_value_type": null,
"transport_id": null,
"transporter_document_number": null,
"transporter_document_date": null,
"transporter_vehicle_number": null,
"shipping_name": null,
"shipping_gstin": null,
"shipping_freight": null,
"shipping_freight_with_gst": 0,
"shipping_freight_cgst_amount": null,
"shipping_freight_sgst_amount": null,
"shipping_freight_igst_amount": null,
"packing_charge": null,
"packing_charge_with_gst": 0,
"packing_charge_cgst_amount": null,
"packing_charge_sgst_amount": null,
"packing_charge_igst_amount": null,
"cgst": 0,
"sgst": 0,
"igst": 0,
"cess": 0,
"round_off_amount": null,
"total": 100,
"grand_total": 100,
"taxable_value": 100,
"gross_value": 100,
"narration": "Hello World",
"is_gst_enabled": 0,
"is_gst_na": 1,
"is_cgst_sgst_igst_calculated": 0,
"status": "Open",
"is_round_off_not_changed": false,
"transaction_items": [
{
"id": 1,
"transactions_id": 1,
"item_id": 5,
"ledger_id": 848,
"additional_description": "test",
"unit_id": 1,
"quantity": 1,
"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,
"cess_rate": 0,
"cess_amount": 0,
"classification_igst_tax": null,
"classification_cgst_tax": null,
"classification_sgst_tax": null,
"classification_cess_tax": null,
"classification_is_rcm_applicable": 0,
"classification_nature_type": null,
"consolidating_items_to_invoice": "0",
"taxable_value": 100,
"created_at": "2025-02-12T12:41:55.000000Z",
"updated_at": "2025-02-12T12:41:55.000000Z"
}
],
"via_api": false,
"created_by": 8,
"created_at": "2025-02-12T12:40:55.000000Z",
"updated_at": "2025-02-12T12:41:55.000000Z"
}
},
"success": true,
"message": "Purchase Order Transaction Updated Successfully."
}