POST
request to update an existing item in the system. It allows users to modify items.ApiKey: ********************
{
"item_name": "Set SER1", // create Goods type item
"group_id": "118",
"item_type": "1",
"primary_unit_of_measurement": "29",
"secondary_unit_of_measurement": null,
"conversion_rate": null,
"decimal_places": "2",
"sku": null,
"description": null,
"is_description_same_as_item_name": 1,
"is_gst_applicable": "1",
"gst_tax_id": "10",
"hsn_sac_code": "1001",
"is_rcm_applicable": "0",
"gst_cess_rate": 136,
"mrp": 100,
"sale_price": 100,
"sale_price_type": 2, // 1 = with GST, 2 = without GST
"discount_type": 1,
"discount": 0,
"income_ledger_id": 1196,
"purchase_price": null,
"purchase_price_type": 2, // 1 = with GST, 2 = without GST
"purchase_discount_type": 1,
"purchase_discount_value": 0,
"expense_ledger_id": 1197,
"decimal_places_for_rate": 3,
"quantity_unit": "6",
"quantity": null,
"rate": null,
"opening_balance_type": 2,
"item_image": null
}
// {
// "item_name": "Set Service item", // create Service type item
// "group_id": "12296",
// "item_type": "2",
// "primary_unit_of_measurement": "29",
// "secondary_unit_of_measurement": null,
// "conversion_rate": null,
// "decimal_places": "2",
// "description": null,
// "is_description_same_as_item_name": 1,
// "is_gst_applicable": "1",
// "gst_tax_id": "10",
// "hsn_sac_code": "1001",
// "is_rcm_applicable": "0",
// "gst_cess_rate": 136,
// "sale_price": 100,
// "sale_price_type": 2, // 1 = with GST, 2 = without GST
// "discount_type": 1,
// "discount": 0,
// "income_ledger_id": 1196,
// "purchase_price": null,
// "purchase_price_type": 2, // 1 = with GST, 2 = without GST
// "purchase_discount_type": 1,
// "purchase_discount_value": 0,
// "expense_ledger_id": 1197,
// "decimal_places_for_rate": 3,
// "quantity_unit": "6",
// "quantity": null,
// "rate": null,
// "opening_balance_type": 2
// }
curl --location --request POST 'https://app.hisabkitab.co/third-party/items/1' \
--header 'Content-Type: application/json' \
--header 'ApiKey;' \
--data-raw '{
"item_name": "Set SER1", // create Goods type item
"group_id": "118",
"item_type": "1",
"primary_unit_of_measurement": "29",
"secondary_unit_of_measurement": null,
"conversion_rate": null,
"decimal_places": "2",
"sku": null,
"description": null,
"is_description_same_as_item_name": 1,
"is_gst_applicable": "1",
"gst_tax_id": "10",
"hsn_sac_code": "1001",
"is_rcm_applicable": "0",
"gst_cess_rate": 136,
"mrp": 100,
"sale_price": 100,
"sale_price_type": 2, // 1 = with GST, 2 = without GST
"discount_type": 1,
"discount": 0,
"income_ledger_id": 1196,
"purchase_price": null,
"purchase_price_type": 2, // 1 = with GST, 2 = without GST
"purchase_discount_type": 1,
"purchase_discount_value": 0,
"expense_ledger_id": 1197,
"decimal_places_for_rate": 3,
"quantity_unit": "6",
"quantity": null,
"rate": null,
"opening_balance_type": 2,
"item_image": null
}
// {
// "item_name": "Set Service item", // create Service type item
// "group_id": "12296",
// "item_type": "2",
// "primary_unit_of_measurement": "29",
// "secondary_unit_of_measurement": null,
// "conversion_rate": null,
// "decimal_places": "2",
// "description": null,
// "is_description_same_as_item_name": 1,
// "is_gst_applicable": "1",
// "gst_tax_id": "10",
// "hsn_sac_code": "1001",
// "is_rcm_applicable": "0",
// "gst_cess_rate": 136,
// "sale_price": 100,
// "sale_price_type": 2, // 1 = with GST, 2 = without GST
// "discount_type": 1,
// "discount": 0,
// "income_ledger_id": 1196,
// "purchase_price": null,
// "purchase_price_type": 2, // 1 = with GST, 2 = without GST
// "purchase_discount_type": 1,
// "purchase_discount_value": 0,
// "expense_ledger_id": 1197,
// "decimal_places_for_rate": 3,
// "quantity_unit": "6",
// "quantity": null,
// "rate": null,
// "opening_balance_type": 2
// }'
{
"data": {
"id": 3,
"company_id": 6,
"item_name": "Softek",
"group_id": "118",
"item_type": "1",
"model_id": 2,
"model_type": "App\\Models\\Master\\ItemMasterGoods",
"sku": null,
"units_of_array": [
{
"id": 1,
"name": "PIECES",
"code": "PCS",
"full_name": "PCS-PIECES",
"is_default": true,
"for_gst_use_name": null,
"company_id": null,
"created_at": "2023-02-10T04:22:56.000000Z",
"updated_at": "2023-02-10T04:22:56.000000Z"
}
],
"model": {
"id": 2,
"unit_of_measurement": 1,
"alternate_unit": null,
"secondary_unit_of_measurement": null,
"decimal_places": 2,
"sale_price_type": 2,
"selling_price_with_gst": 118,
"selling_price_without_gst": 100,
"purchase_price_type": 2,
"purchase_price_with_gst": null,
"purchase_price_without_gst": null,
"decimal_places_for_rate": 3,
"conversion_rate": null,
"is_gst_applicable": true,
"hsn_sac_code": "1001",
"description": "Set SER1",
"is_description_same_as_item_name": true,
"is_rcm_applicable": false,
"gst_tax_id": 1,
"gst_cess_rate": 136,
"income_ledger_id": 1196,
"expense_ledger_id": 1197,
"quantity_unit": 6,
"quantity": 1000,
"rate": 100,
"mrp": 100,
"purchase_discount_type": 1,
"discount_type": 1,
"purchase_discount_value": null,
"discount_value": null,
"opening_balance": null,
"method_of_stock_valuation": null,
"conversion_of_unit": null,
"gst_tax_rate": 18,
"cess_rate": null,
"gst_tax": {
"id": 10,
"name": "18%",
"tax_rate": 18,
"company_id": null,
"created_at": "2023-02-10T04:22:55.000000Z",
"updated_at": "2023-02-10T04:22:55.000000Z"
},
"gst_gst_cess_rate": null,
"via_api": 0,
"created_at": "2025-02-11T09:56:20.000000Z",
"updated_at": "2025-02-11T10:06:32.000000Z"
},
"item_image": "",
"media": [],
"via_api": false,
"is_import": false,
"created_at": "2025-02-11T09:56:20.000000Z",
"updated_at": "2025-02-11T10:06:32.000000Z"
},
"success": true,
"message": "Item Master Updated Successfully."
}