get product list
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item.get_list' \
--header 'X-Frappe-Csrf-Token: 2080d7c5952833b5080de1f93012ae019731aa00e79f93ae787869f3' \
--header 'Cookie: sid=f5fa31ebf6901e99fc7fda974a3c6e524949bc38e551a39544d7d0e2; full_name=Ha%20Duy%20Lam; sid=f5fa31ebf6901e99fc7fda974a3c6e524949bc38e551a39544d7d0e2; system_user=yes; user_id=lamhd%40gmail.com; user_image=' \
--header 'Content-Type: application/json' \
--data '{
  "limit_start" : 0,
  "limit_page_length": 0
}'

get product final version
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item.get_list' \
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
--header 'Cookie: sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; full_name=phuoc; sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; system_user=no; user_id=vodanh.2901%40gmail.com; user_image=https%3A//secure.gravatar.com/avatar/753a0e2601b9bd87aed417e2ad123bf8%3Fd%3D404%26s%3D200' \
--header 'Content-Type: application/json' \
--data '{
  "limit_start" : 0,
  "limit_page_length": 0,
  "item_group" : ["CẨM THẠCH [ Marble ]"],
  "brand" : ["TEST 1"],
  "item_attribute" : [
    {
        "attribute": "Màu sắc",
        "attribute_value" : "Nhạt"
    }
  ],
  "search_keyword" : "chề lính"
}'

get product attribute list
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item_attribute.get_list' \
--header 'X-Frappe-Csrf-Token: 13c271e0e58dcad9bcc0053cad0057540eb0675bb7052c2cc1a815b2' \
--header 'Cookie: sid=d9ddd3862832f12901ef4c0d77d6891cd08ef851a254b7d56c857724; full_name=Ha%20Duy%20Lam; sid=d9ddd3862832f12901ef4c0d77d6891cd08ef851a254b7d56c857724; system_user=yes; user_id=lamhd%40gmail.com; user_image=' \
--header 'Content-Type: application/json' \
--data '{
  "filters": {"is_group": 0},
  "limit_page_length": 0
}'

get product brand
curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
--header 'X-Frappe-Csrf-Token: 52e3deff2accdc4d990312508dff6be0ecae61e01da837f00b2bfae9' \
--header 'Cookie: sid=723d7a4c28209a1c5451d2dce1f7232c04addb2e040a273f3a56ea77; full_name=PublicAPI; sid=723d7a4c28209a1c5451d2dce1f7232c04addb2e040a273f3a56ea77; system_user=no; user_id=public_api%40dbiz.com; user_image=' \
--header 'Content-Type: application/json' \
--data '{
  "doctype": "Brand",
  "fields": ["name"],
  "limit_page_length": 0
}'

get product group
curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
--header 'X-Frappe-Csrf-Token: 52e3deff2accdc4d990312508dff6be0ecae61e01da837f00b2bfae9' \
--header 'Cookie: sid=723d7a4c28209a1c5451d2dce1f7232c04addb2e040a273f3a56ea77; full_name=PublicAPI; sid=723d7a4c28209a1c5451d2dce1f7232c04addb2e040a273f3a56ea77; system_user=no; user_id=public_api%40dbiz.com; user_image=' \
--header 'Content-Type: application/json' \
--data '{
  "doctype": "Item Group",
  "fields": ["item_group_name","name"],
  "filters": {"is_group": 0, "custom_published" : 1},
  "limit_page_length": 0
}'

get product detail
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.item.get_detail' \
--header 'X-Frappe-Csrf-Token: 4989ff095956a891bbae0944a1483097b6eb06f1080961f7164a7e17' \
--header 'Cookie: sid=42ab54811fb7eadc8c67a6651c68519c8655e9b3e7b797628dcd0b88; full_name=PublicAPI; sid=723d7a4c28209a1c5451d2dce1f7232c04addb2e040a273f3a56ea77; system_user=no; user_id=public_api%40dbiz.com; user_image=' \
--header 'Content-Type: application/json' \
--data '{
  "name" : "GIB20 G02"
}'


