Product Updation ALL Fields Edit For Admin user
unknown
plain_text
a month ago
6.3 kB
1
Indexable
Never
{ "current_user": "usr_01HBDZSP5G814WPBRFBF8RGEXJ", // needed "product_type": "online",// needed "title": "newSupplierProduct", //optional ( send only when it was updated) "brand": { "id": "product_brand_01HE0B21853CGM7851XYNWVPD1"//optional ( send only when it was updated) }, "categories": [//optional ( send only when it was updated) { "id": "pro_cat_01HCEHB6PZMMESA8X00WSDYGB5" } ], "sub_category": {//optional ( send only when it was updated) "id": "pro_sub_cat_01HCEHB6Q0W1W4TFB9CWDV66ZQ" }, "sub_sub_category": {//optional ( send only when it was updated) "id": "pro_child_cat_01HCEHB6Q0JQW7XM31DDJNXYH3" }, "countries": {//optional ( send only when it was updated) "iso_2": "ky" }, "hs_code": "7657",//optional ( send only when it was updated) "handle": "CL-FS-CA-NE-1355", // not needed "product_code": "product_01HE0B8CDHAPH466W3KY6D9F3R",//optional ( send only when it was updated) "description": "sgdg",//optional ( send only when it was updated) "tags": [ // needed all the tags { "value": "dgfdx" } ], "images": [// needed all the images, if added new image then those image id=null { "id": "img_01HE0B8CEC7RK1TZZYM7N708P0", "createdAt": "2023-10-30T13:09:34.843Z", "updatedAt": "2023-10-30T13:09:34.843Z", "deletedAt": null, "url": "https://demo.divami.com/minio/product-images/1698671310604-test1.jpeg", "metadata": null }, { "id": "img_01HE0B8CECCHHT62EWRHXPHR6J", "createdAt": "2023-10-30T13:09:34.843Z", "updatedAt": "2023-10-30T13:09:34.843Z", "deletedAt": null, "url": "https://demo.divami.com/minio/product-images/1698671310510-apple.jpeg", "metadata": null }, { "id": "img_01HE0B8CECG929FJCJG0HT9DYA", "createdAt": "2023-10-30T13:09:34.843Z", "updatedAt": "2023-10-30T13:09:34.843Z", "deletedAt": null, "url": "https://demo.divami.com/minio/product-images/1698671310510-sample.jpeg", "metadata": null }, { "id": "img_01HE0B8CECV6RX2PW7VZBRNSVH", "createdAt": "2023-10-30T13:09:34.843Z", "updatedAt": "2023-10-30T13:09:34.843Z", "deletedAt": null, "url": "https://demo.divami.com/minio/product-images/1698671310604-test22.jpeg", "metadata": null }, { "id": "img_01HE0B8CEDAPQNR8DJH6DQ44A8", "createdAt": "2023-10-30T13:09:34.843Z", "updatedAt": "2023-10-30T13:09:34.843Z", "deletedAt": null, "url": "https://demo.divami.com/minio/product-images/1698671310605-tomato_2.jpeg", "metadata": null } ], "status": "published",//optional ( send only when it was updated) "options": [// not needed { "title": "ordering_unit" } ], "variants": [//optional ( send only when it was updated (id = '123e') or new add variant object was added (id = null) { "id": "variant_01HE0CTPNMCG3QBNHECD1EHV1E", "title": "newSupplierProduct", "inventory_quantity": 10000, "prices": [ { "amount": 400, "currency_code": "aed", "min_quantity": "60" } ], "metadata": { "selected_unit": "pro_unit_01HCEHB6R5K8B1RKNDZQ4CHY18", "selected_quantity": "88", "offer": "78", "equal_to_unit_name": "kg", "ordering_option_unit_name": "bundle", "ordering_option_value": "77" }, "options": [ { "value": "pro_unit_01HCEHB6R4J07P6GJ9PSR2QDEJ" } ] }, { "id": "variant_01HE0CTPNN6P4SASWB1PKMNCJ9", "title": "newSupplierProduct", "inventory_quantity": 10000, "prices": [ { "amount": 334, "currency_code": "aed", "min_quantity": 25 } ], "metadata": { "selected_unit": "pro_unit_01HCEHB6R5RBTHN10K8FCGCVF9", "selected_quantity": "55", "offer": "3", "equal_to_unit_name": "g", "ordering_option_unit_name": "pot", "ordering_option_value": "56" }, "options": [ { "value": "pro_unit_01HCEHB6R46TMT8R3A3563V860" } ] }, { "id": "variant_01HE27D9F4NE9Z3T4KSDQMFMPF", "title": "newSupplierProduct", "inventory_quantity": 10000, "prices": [ { "amount": 334, "currency_code": "aed", "min_quantity": 25 } ], "metadata": { "selected_unit": "pro_unit_01HCEHB6R5RBTHN10K8FCGCVF9", "selected_quantity": "55", "offer": "30", "equal_to_unit_name": "g", "ordering_option_unit_name": "pot", "ordering_option_value": "56" }, "options": [ { "value": "pro_unit_01HCEHB6R46TMT8R3A3563V860" } ] } ], "sales_channels": [],// not needed "is_deactivated": false,//optional ( send only when it was updated) "supplier": {//optional ( send only when it was updated) "id": "cus_01HCEKDB7ZHMS2J1P9E30XQP1Y" }, "metadata": {//optional ( send only when it was updated) "certifications": [ "FDA", "ISO 22000", "Halal", "Kosher" ], "product_details": [ "Gluten free", "Halal", "Organic", "Local" ] } }