Products

POST {{api-domain}}/crm/v4/Products/upsert

To upsert records in the Products module.

Request Body

{"data"=>[{"Product_Category"=>"Hardware", "Description"=>"This is a sample product", "Vendor_Name"=>{"name"=>"Vendor2", "id"=>"{{vendor-id}}"}, "Sales_Start_Date"=>"2021-01-22", "Subproducts"=>[{"Discount"=>nil, "Rate"=>20, "Amount"=>20, "Parent_Id"=>{"name"=>"Sample Product1", "id"=>"{{product_id}}"}, "Quantity"=>1, "id"=>"4150868000004382023", "Vendor"=>{"name"=>"Zylker", "id"=>"{{vendor-id}}"}, "Add_on_name"=>{"name"=>"Sample 2", "id"=>"4150868000003278032"}}], "Manufacturer"=>"AltvetPet Inc.", "Support_Expiry_Date"=>"2021-01-31", "Product_Name"=>"Sample Product1", "Support_Start_Date"=>"2021-01-23", "Usage_Unit"=>"Box", "Qty_Ordered"=>12, "Qty_in_Stock"=>20, "Sales_End_Date"=>"2021-01-31", "Unit_Price"=>100}]}